Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1028 commits
Select commit Hold shift + click to select a range
7d7c78f
feat(profile): cleanup scdaemon
roddhjav Sep 25, 2025
81081b2
feat(profile): add polkit rule in pkttyagent.
roddhjav Sep 25, 2025
2b6e737
feat(profile): remove ptrac from htop, cleanup ps.
roddhjav Sep 25, 2025
e7a7cb4
feat(profile): glycin: deny more path.
roddhjav Sep 25, 2025
cb32e88
feat(profile): general update.
roddhjav Sep 25, 2025
8ffbcfc
feat(abs): improve signal and ptrace in the glycin stack.
roddhjav Sep 25, 2025
487bf85
build: add build support for apparmor 4 vs apparmor 4.1
roddhjav Sep 25, 2025
36cd3bb
feat(abs): add fontconfig-cache
roddhjav Sep 25, 2025
a9fefa0
feat(abs): rewrite fontconfig read and cache abs.
roddhjav Sep 25, 2025
99c441c
feat(profile): reduce the number of transition in some profile,
roddhjav Sep 25, 2025
37290dd
feat(profile): update userdbctl
roddhjav Sep 25, 2025
1e87a59
fix(profile): minor profile fixes.
roddhjav Sep 25, 2025
3edc598
fix(profile): linter issues.
roddhjav Sep 25, 2025
e8cb99c
fix(profile): removed moved bus abstraction.
roddhjav Sep 27, 2025
7d9df93
fix(profile): various small fixes in profiles.
roddhjav Sep 27, 2025
76cafe0
feat(profiles): add global support for glycin loaders
roddhjav Sep 27, 2025
2613cce
chore: linter fix
roddhjav Sep 27, 2025
0ef6041
tests: generalise autopkgtest path
roddhjav Sep 27, 2025
81d433f
Add allowed paths for correct generation of swap target
Sep 29, 2025
72616ed
minor fixes
valoq Oct 2, 2025
a17c93c
Update xdg-desktop-portal
JND94 Oct 4, 2025
cdc782c
Update xdg-desktop-portal-kde
JND94 Oct 4, 2025
245734b
build: add initial structure for the release process.
roddhjav Sep 30, 2025
cdb2b41
build: dev: only parse the dev profile do not reload all profiles.
roddhjav Sep 30, 2025
c785800
tests: use osinfo in vm naming
roddhjav Sep 30, 2025
0c824c8
tests(abs): allow more files by default during autopkgtest tests.
roddhjav Sep 30, 2025
706d2d3
tests(abs): add tests only mount rules for flatpak and fusermount.
roddhjav Sep 30, 2025
3fe7950
fix(abs): remobe owner requirement on /greeter-dconf-defaults
roddhjav Sep 30, 2025
21ae3c0
tests(profiles): add some tests rules.
roddhjav Sep 30, 2025
2d8d9c2
fix(profile): ensure pycompile can update all pycache.
roddhjav Sep 30, 2025
a3bbc9d
build: support comparaison in version/abi number.
roddhjav Sep 30, 2025
672ea33
build: update filter directive to use version comparison.
roddhjav Sep 30, 2025
3ad39b1
feat(tunable): precise the value of pci_id.
roddhjav Sep 30, 2025
fb7b31a
feat(abs): update paths in core bus abstraction.
roddhjav Sep 30, 2025
320d013
feat(abs): ensure gio-launch-desktop can be used in app/open.
roddhjav Sep 30, 2025
bed4086
feat(abs): add more sys input paths in the input abs.
roddhjav Sep 30, 2025
e331743
feat(abs): add missing cache path from the new fontconfig-cache abs.
roddhjav Sep 30, 2025
f063272
feat(abs): add more sys cpu paths.
roddhjav Sep 30, 2025
4703112
feat(abs): add goutputstream thumbnails.
roddhjav Sep 30, 2025
759f03b
feat(profile): add some missing rules to glycin.
roddhjav Sep 30, 2025
36161a4
feat(profile): update some gnome profiles.
roddhjav Sep 30, 2025
e6e9cc4
feat(tunable): add alias for rust utils.
roddhjav Sep 30, 2025
56e0470
feat(tunable): add rust utils paths to coreutils_path
roddhjav Oct 1, 2025
6319184
feat(profile): add more terminal from xdg-terminal-exec
roddhjav Oct 1, 2025
9dc78f1
fix(profiles): ensure @{att} does not add up /
roddhjav Oct 1, 2025
a4e89f4
feat(profile): genera profiles update.
roddhjav Oct 1, 2025
7dac74b
feat(abs): deny pycache update outside of pycompile
roddhjav Oct 1, 2025
099c8a9
doc: recommend using earlypolicy by default.
roddhjav Oct 1, 2025
beb0114
chore(profile): document the use of "network alg" for kernel crypto API
roddhjav Oct 1, 2025
6ec2d64
feat(profile): apt: various profile update.
roddhjav Oct 1, 2025
b1d34d2
build(debian): add metadata and watch files.
roddhjav Oct 2, 2025
ffb48da
doc: add documentation for the base-strict build task.
roddhjav Oct 2, 2025
8ec1107
feat(abs): restric gstreamer.
roddhjav Oct 3, 2025
ddd49e4
chore(abs): pgrep use pids instead of pid.
roddhjav Oct 3, 2025
cab9a36
feat(abs): org.freedesktop.portal Desktop: add Inhibit
roddhjav Oct 3, 2025
fbeaf73
tests(abs): add some tests only paths.
roddhjav Oct 8, 2025
1da4b03
fix: glycin: allow unix stream from anyone
roddhjav Oct 10, 2025
3b4c6c1
feat(abs): restrict bus/org.freedesktop.timedate1.
roddhjav Oct 10, 2025
76d9191
feat(abs): gnome app: add user_state_dirs program dir.
roddhjav Oct 10, 2025
5cbbf8a
doc(abs): base-strict: update documentation
roddhjav Oct 10, 2025
7591f8e
feat(abs): base-strict: remove uuidd/request by default.
roddhjav Oct 10, 2025
d0f50f0
feat(profile): small update to apt profiles.
roddhjav Oct 10, 2025
64621ce
feat(profile): update gnome profiles.
roddhjav Oct 10, 2025
e92af30
feat(profile): general update.
roddhjav Oct 10, 2025
47edb92
chore(tests): improve images and available just command.
roddhjav Oct 11, 2025
f6bb8a1
feat(abs): add gstreamer-registry.
roddhjav Oct 11, 2025
93549b9
feat(abs): all apps on gnome need cpu.max information.
roddhjav Oct 11, 2025
1df666f
feat(profile): revisit flatpak-*-helper
roddhjav Oct 12, 2025
106667d
ci: update debian container tags.
roddhjav Oct 12, 2025
14373a7
tests: update cloud-init images
roddhjav Oct 12, 2025
3d256f8
tests: add debian & ubuntu test images for autopkgtest.
roddhjav Oct 12, 2025
47923c8
tests: add autopkgtest script to run the test suite on Debian/Ubuntu vm.
roddhjav Oct 12, 2025
9398abb
tests: remove apparmor from autopkgtest as it remove the profiles.
roddhjav Oct 12, 2025
88892ef
chore: minor cosmetic on tests structure.
roddhjav Oct 12, 2025
fb1415e
tests: add command to report autopkgtest logs and rules.
roddhjav Oct 12, 2025
9b69a0f
feat(profile): add ldd_path and more autopkgtest integration.
roddhjav Oct 12, 2025
151e729
feat(profile): initial integration of rules raised during autopkgtest
roddhjav Oct 12, 2025
5ea9033
feat(abs): move all core test only path to the test abs.
roddhjav Oct 12, 2025
201e0c1
fix(build): add missing variable in default profile header.
roddhjav Oct 12, 2025
5566787
fix(profile): few issues raised by ci testing
roddhjav Oct 12, 2025
fbcb955
feat(profile): multiple minor tealks across profiles.
roddhjav Oct 12, 2025
9fb17ef
feat(aa-log): resolve binary in gnu and rust utils paths, handle efi …
roddhjav Oct 13, 2025
ea6602d
fix(profile): add missing r in uuidd/request
roddhjav Oct 13, 2025
dea5f78
ci: ignore pts/0 request as file_inherit
roddhjav Oct 13, 2025
c38024c
fix(profile): remina add attach_disconnected
roddhjav Oct 13, 2025
f260163
feat(tunable): add ghostty to the list of known terminal emulator.
roddhjav Oct 13, 2025
18877f8
tests: add the autopkgtest-update just command
roddhjav Oct 13, 2025
1f526a9
feat(profile): more missing rules raised by the autopkgtest suite.
roddhjav Oct 13, 2025
8138cf9
feat(profile): update flatpak-system-helper.
roddhjav Oct 13, 2025
e3fd065
fix: linter issues.
roddhjav Oct 13, 2025
ca2c941
doc: add documentation for the autopkgtest test suite.
roddhjav Oct 13, 2025
f85802f
Update ollama
curiosityseeker Oct 14, 2025
cac75c7
Update okular
curiosityseeker Oct 21, 2025
37c02ef
feat(abs): flatpak: initial version of flatpak devices core abs.
roddhjav Oct 15, 2025
3bdbab4
feat(abs): flatpak: initial version of flatpak shared core abs.
roddhjav Oct 15, 2025
7254f43
feat(abs): flatpak: initial version of flatpak platform core abs.
roddhjav Oct 15, 2025
edef284
feat(abs): flatpak: initial version of flatpak sockets core abs.
roddhjav Oct 15, 2025
38ebe1a
feat(abs): flatpak: initial version of flatpak baseapp core abs.
roddhjav Oct 15, 2025
c4f0d51
feat(abs): flatpak: initial version of flatpak filesystem core.
roddhjav Oct 15, 2025
7bb3b7e
feat(abs): flatpak: initial version of flatpak app abs.
roddhjav Oct 15, 2025
7f464b8
feat(profile): flatpak: initial version fapp.
roddhjav Oct 15, 2025
e28a7c8
feat(profile): flatpak: initial version fbwrap.
roddhjav Oct 15, 2025
41aa50d
feat(profile): update flatpak to the new fapp / fbrwap profiles.
roddhjav Oct 15, 2025
5d1b5a1
feat(abs): add initial version of bluetooth-observe
roddhjav Oct 15, 2025
0f3aa1d
feat(abs): add initial version of accounts-observe
roddhjav Oct 15, 2025
7ae35d7
feat(abs): add initial version of modem-manager-observe.
roddhjav Oct 15, 2025
c220f17
build: justfile: differentiate distribution release and pkg version.
roddhjav Oct 18, 2025
f04b2cc
fix(test): missing release var in packer files.
roddhjav Oct 18, 2025
b1fe219
test(abs): also add the tests abs to the base completion.
roddhjav Oct 18, 2025
ffd285d
feat(profile_: various improvment from autopkgtest
roddhjav Oct 18, 2025
0ca4b12
feat(abs): input: ensure joystick are covered.
roddhjav Oct 18, 2025
410ca9e
feat(profile): more fixes reported by autopkgtest
roddhjav Oct 19, 2025
2d46af1
fix(build): do not ignore our version of the who profile.
roddhjav Oct 19, 2025
c6217b2
tests: autopkgtest, update test paths.
roddhjav Oct 19, 2025
19f244d
fix: linter issues.
roddhjav Oct 19, 2025
d6e710e
tests(check): add a new transition check.
roddhjav Oct 19, 2025
6571d4a
feat(profile): update integration with the new flatpak profile.
roddhjav Oct 19, 2025
36af909
feat(profile): update old flatpak-app profile.
roddhjav Oct 19, 2025
6eab07c
feat(abs): restrict sys path for usb devices.
roddhjav Oct 19, 2025
a8c0ecb
feat(profile): general update.
roddhjav Oct 19, 2025
3d361fd
feat(abs): cleanup gstreamer abs.
roddhjav Oct 19, 2025
65d92b9
fix(profile): fix remina, again.
roddhjav Oct 19, 2025
69374cd
feat(abs): mime: conditional mime files.
roddhjav Oct 19, 2025
eb9b2b0
feat(profile): various small profiles update.
roddhjav Oct 19, 2025
9b8d53d
feat(abs): update base electron & chromium abs.
roddhjav Oct 19, 2025
f6c5f52
feat(abs): dbus: rewrite org.freedesktop.systemd1 and login bus abs.
roddhjav Oct 19, 2025
6a5d5cf
feat(abs): remove old org.freedesktop.Accounts abs in favor of accoun…
roddhjav Oct 19, 2025
3898bb9
feat(abs): initial version of screen-inhibit
roddhjav Oct 19, 2025
6fcea8b
fix(profile): use of att in xdg-desktop-portal.
roddhjav Oct 19, 2025
39c9771
feat(profile): improve opensuse and kde integration.
roddhjav Oct 19, 2025
14d2f97
fix(profile): mkinitcpio
roddhjav Oct 19, 2025
0b110a8
fix(profile): ntfsfix
roddhjav Oct 19, 2025
38045d5
fix: linter.
roddhjav Oct 19, 2025
370b8b6
feat(abs): add org.freedesktop.systemd1.Manager
roddhjav Oct 19, 2025
7c6034f
feat(profile): use accounts-observe instead of the talk directive.
roddhjav Oct 19, 2025
28178f6
build: ensure fapp & fbwrap are not enabled on apparmor < 4.1
roddhjav Oct 19, 2025
b2b984c
feat(abs): update flatpak devices.
roddhjav Oct 21, 2025
ce15ea4
feat(abs): update some dbus interfaces definition.
roddhjav Oct 21, 2025
d95e4ae
feat(profile): update gnome profiles.
roddhjav Oct 21, 2025
ff25d6e
chore: fix linter issues
roddhjav Oct 21, 2025
5826e91
fix(profile): ensure thunderbird can forward documents
roddhjav Oct 21, 2025
be0b307
feat(abs): add hwmon
roddhjav Oct 21, 2025
2a98a87
Update cupsd
curiosityseeker Oct 23, 2025
9117532
Corret Tor Browser temp file name pattern
myrslint Oct 23, 2025
c2c3fc0
feat(abs): various flatpak tweak
roddhjav Oct 23, 2025
21a943a
fix(profile): vesktop.
roddhjav Oct 23, 2025
0f6e891
fix(profile): relax what program can be opened from some selected pro…
roddhjav Oct 23, 2025
e83c880
fix(profile): vesktop (2).
roddhjav Oct 23, 2025
fb83e5c
feat(abs): minor abs improvement.
roddhjav Oct 24, 2025
3aa780d
feat(abs): minor update.
roddhjav Oct 24, 2025
cb72429
feat(profile): update iio-sensor-proxy
roddhjav Oct 24, 2025
dee0b86
tests: update autopkgtests script.
roddhjav Oct 24, 2025
155f88c
feat(abs): add poppler to the desktop abs.
roddhjav Oct 24, 2025
c4c841d
feat(profile): improve flatpak integration with the system.
roddhjav Oct 24, 2025
ce40dc2
feat(abs): update bus abs.
roddhjav Oct 24, 2025
6aaa6e7
fix: linter.
roddhjav Oct 25, 2025
ba95f61
add to mesa.d/complete new cache dir
no-madsoul Oct 26, 2025
608c467
update mpv profile with mesa cache dir and scripts in etc
no-madsoul Oct 26, 2025
ed2a8a7
fix: keep fapp and fbwrap in complain mode for now.
roddhjav Nov 2, 2025
7db7a62
fix(profile): add support for new pid file.
roddhjav Nov 2, 2025
c42dba1
fix: main.flags.
roddhjav Nov 2, 2025
dece4cf
refractor(abs): move bus abs into session or systemd dir.
roddhjav Oct 25, 2025
f89612e
refractor(abs): update abs path to the new location.
roddhjav Oct 25, 2025
2fb89d5
feat(abs): add com.canonical.AppMenu.Registrar.
roddhjav Oct 25, 2025
e35f84f
feat(abs): add com.canonical.dbusmenu.
roddhjav Oct 25, 2025
5ce0d65
feat(abs): add org.ayatana.NotificationItem
roddhjav Oct 25, 2025
9f57a72
feat(abs): add org.freedesktop.portal.NetworkMonitor
roddhjav Oct 25, 2025
5446462
feat(abs): add org.kde.JobView
roddhjav Oct 25, 2025
53f78ec
feat(abs): rewrite org.freedesktop.NetworkManager
roddhjav Oct 25, 2025
a50a6f4
feat(abs): add app-indicator.
roddhjav Oct 25, 2025
6315e32
feat(tunable): update pp profiles.
roddhjav Oct 25, 2025
c307188
feat(abs): basic bus profiles improvment.
roddhjav Oct 25, 2025
4a8b5da
feat(abs): improve some dbus based abs.
roddhjav Oct 25, 2025
ec986a6
feat(abs): improve hwmon.
roddhjav Oct 25, 2025
085a55f
feat(abs): graphics: give more info on gpu state.
roddhjav Oct 25, 2025
6a40136
feat(abs): add fonts-strict.
roddhjav Oct 25, 2025
a4541db
feat(abs): add power-profiles.
roddhjav Oct 25, 2025
1ecb95a
feat(abs): add notification, app-indicator and portal Desktop to desk…
roddhjav Oct 25, 2025
be4ca9b
feat(abs): add portal.Settings to desktop.
roddhjav Oct 25, 2025
ac9c7d0
feat(profile): remove bus-session in profile with the desktop abs
roddhjav Oct 26, 2025
9b4604d
feat(abs): remove redundant abs.
roddhjav Oct 26, 2025
9e87906
fix(abs): open: gio-launch-desktop as ix should have priority over ot…
roddhjav Oct 26, 2025
6764d68
feat(profile): minor tweak on flatpak profiles.
roddhjav Oct 26, 2025
7959af5
feat(abs): improve bus abs.
roddhjav Oct 26, 2025
c87285d
feat(abs): update the wine abstraction.
roddhjav Oct 26, 2025
9d2db47
chore: document the deprecation of flatpak-app.
roddhjav Oct 26, 2025
b0e7530
feat(abs): rewrite common app
roddhjav Oct 26, 2025
580c35a
feat(profile): update out use of bus abstractions to the last changes.
roddhjav Oct 26, 2025
4d8d783
feat(abs): electron: deny and document some common proc paths.
roddhjav Oct 26, 2025
38f93ce
fix: linter issue.
roddhjav Oct 26, 2025
6029274
fix(profile): ptyxis can start any program with systemd-run.
roddhjav Oct 26, 2025
03e1aa6
feat(profile): improve flatpak profiles.
roddhjav Nov 3, 2025
70e6c1e
feat(abs): add org.freedesktop.Application
roddhjav Nov 3, 2025
607cc07
feat(aa-log): add support for dbus method log.
roddhjav Nov 3, 2025
99bb5a7
feat(abs): improve dbus abs.
roddhjav Nov 3, 2025
a1a1496
build: improve the dev subcommand.
roddhjav Nov 4, 2025
ecaf81f
feat(abs): restrict system/org.freedesktop.UPower
roddhjav Nov 4, 2025
4a2c86f
feat(profile): update profiles to use the newly defined bus based abs…
roddhjav Nov 4, 2025
0b3812e
feat(profile): update some dbus rules in profiles.
roddhjav Nov 8, 2025
cd9c299
feat(profile): minor flatpak improvement.
roddhjav Nov 8, 2025
f4fe6e2
feat(abs): bus: add some bluetooth interfaces
roddhjav Nov 8, 2025
09f1419
feat(abs): improbe python core abs.
roddhjav Nov 8, 2025
4aa61f8
fix: linter issues.
roddhjav Nov 8, 2025
4bbb4d0
feat(profile): update snap profiles.
roddhjav Nov 8, 2025
8233c4d
fix(abs): wpa_supplicant1 bus definition.
roddhjav Nov 8, 2025
bd64568
fix: who, deny console, add att flag
roddhjav Nov 8, 2025
b808fb2
fix(aa-log): resolve re-attached paths before other variables.
roddhjav Nov 9, 2025
2346c11
feat(abs): add systemd's notification socket to the base abs.
roddhjav Nov 9, 2025
8c2fce1
feat(profile): chromium: update socket paths.
roddhjav Nov 9, 2025
c600d1d
feat(abs): avoid unsing transition for link in abs.
roddhjav Nov 9, 2025
efdcc86
feta(abs): small improvement on core abs.
roddhjav Nov 9, 2025
3bd5a40
feat(fsp): improve systemd profiles.
roddhjav Nov 9, 2025
822c8b3
feat(profile): update flags for some profiles
roddhjav Nov 9, 2025
b56e7e6
feat(profile): general profile update.
roddhjav Nov 9, 2025
68f305a
feat(profile): deny unix stream with pacman.
roddhjav Nov 9, 2025
42780bf
feat(profile): htop: deny some caps when run as root.
roddhjav Nov 9, 2025
efe227f
feat(profile): console: use u8 or u16 instead of @{int}.
roddhjav Nov 9, 2025
6c5aa6e
fix(profile): mdevctl can be in bin or sbin.
roddhjav Nov 9, 2025
92aeaa8
fix: linter issue.
roddhjav Nov 9, 2025
3a96262
fix(profile): syntax error.
roddhjav Nov 9, 2025
84f3f5e
feat(profile): relax a bit allowed fusermount mount points.
roddhjav Nov 9, 2025
6202e80
fix(profile): archlinux-keyring-wkd-sync now needs attach_disconnected
roddhjav Nov 11, 2025
5a52ced
fix(profile): plymouth integration with boot loaders.
roddhjav Nov 11, 2025
c055685
fix(profile): dkms zfs module
roddhjav Nov 11, 2025
2ef8ed5
fix(profile): systemd-tty-ask-password-agent
roddhjav Nov 11, 2025
9680759
feat(tunable): update the list of know programs.
roddhjav Nov 11, 2025
87808f4
feat(profile): add attached flag to some profiles
roddhjav Nov 11, 2025
687079d
feat(profile): pacman: add integration with arch-update
roddhjav Nov 11, 2025
b5f14ba
fix(profile): integration with opensure.
roddhjav Nov 11, 2025
6574ecd
feat(profile): add unix mediation to the flatpak profiles.
roddhjav Nov 11, 2025
0715321
feat(tunable): add gstreamer_path.
roddhjav Nov 11, 2025
edd723d
feat(profile): add some bare access to dbus-system.
roddhjav Nov 11, 2025
331e3b6
feta(abs): update some abstracion.
roddhjav Nov 11, 2025
e0b6449
feat(profile): improve firefox unix rules.
roddhjav Nov 11, 2025
a39a7f1
feat(profile): update unix rules on core dbus profiles.
roddhjav Nov 11, 2025
807790c
feat(profile): confine gstreamer plugin in a subprofile.
roddhjav Nov 11, 2025
86af2bf
feat(profile): update tb tmp lock dir.
roddhjav Nov 11, 2025
5f77d46
fix(profile): keepass: incorectly labelled access.
roddhjav Nov 11, 2025
c2f883c
feat(profile): add missing ssh socket.
roddhjav Nov 11, 2025
e781596
feat(profile): update some system profiles.
roddhjav Nov 11, 2025
8c799a2
feat(profile): fuse-overlays: relax possible mountpoint
roddhjav Nov 11, 2025
382bbd2
feat(profile): rewrite swtpm
roddhjav Nov 11, 2025
a64a937
fix(profile): parser errors
roddhjav Nov 11, 2025
094795c
fix(profile): parser errors (2).
roddhjav Nov 11, 2025
115859d
Add `just` package for installation
nobody43 Nov 15, 2025
be8f8c3
Minor profile fix
valoq Nov 20, 2025
d79b31f
Libreoffice: missing flag in main.flags
curiosityseeker Nov 24, 2025
568334f
Update fwupd
JND94 Nov 28, 2025
0b30a9d
fix(profile): plasma: browser integration artwork
lina-bh Dec 4, 2025
87c0e22
fix(profile): discord: add camera
lina-bh Dec 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 0 additions & 2 deletions .github/local/needrestart

This file was deleted.

38 changes: 19 additions & 19 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@ jobs:
- name: Check out repository code
uses: actions/checkout@v4

- name: Install linter dependencies
run: |
pipx install rust-just
echo "$HOME/.local/bin" >> $GITHUB_PATH

- name: Run basic profile linter check
run: |
make check
just check

build:
runs-on: ${{ matrix.os }}
Expand All @@ -23,8 +28,6 @@ jobs:
mode: default
- os: ubuntu-24.04
mode: full-system-policy
- os: ubuntu-22.04
mode: default
steps:
- name: Check out repository code
uses: actions/checkout@v4
Expand All @@ -35,17 +38,14 @@ jobs:
sudo apt-get install -y \
devscripts debhelper config-package-dev \
auditd apparmor-profiles apparmor-utils
pipx install rust-just
echo "$HOME/.local/bin" >> $GITHUB_PATH
sudo rm /etc/apparmor.d/usr.lib.snapd.snap-confine.real

- name: Build the apparmor.d package
run: |
if [[ ${{ matrix.mode }} == full-system-policy ]]; then
echo -e "\noverride_dh_auto_build:\n\tmake full" >> debian/rules
fi
if [[ ${{ matrix.os }} == ubuntu-24.04 ]] && [[ ${{ matrix.mode }} == default ]]; then
# Test with Re-attach disconnected path
sed -e 's;// builder.Register("attach");builder.Register("attach");' -i pkg/prebuild/cli/cli.go
sed -e '/@{att}/d' -i apparmor.d/tunables/multiarch.d/system
sed -e "s/just complain/just fsp-complain/" -i debian/rules
fi
bash dists/build.sh dpkg

Expand All @@ -54,13 +54,10 @@ jobs:

- name: Reload AppArmor
run: |
sudo systemctl restart apparmor.service || true
sudo systemctl status apparmor.service

- name: Ensure compatibility with some AppArmor userspace tools
if: matrix.os != 'ubuntu-24.04'
run: |
sudo aa-enforce /etc/apparmor.d/aa-notify
if ! sudo systemctl restart apparmor.service; then
sudo journalctl -xeu apparmor.service
exit 1
fi

- name: Show AppArmor log and rules
run: |
Expand All @@ -81,6 +78,7 @@ jobs:
tests:
runs-on: ubuntu-24.04
needs: build
if: github.ref_name == 'dev' || github.event_name == 'workflow_dispatch'
steps:
- name: Check out repository code
uses: actions/checkout@v4
Expand All @@ -100,7 +98,8 @@ jobs:
sudo apt-get install -y \
apparmor-profiles apparmor-utils \
bats bats-support
sudo install -Dm0644 .github/local/needrestart /etc/apparmor.d/local/needrestart
pipx install rust-just
echo "$HOME/.local/bin" >> $GITHUB_PATH

- name: Install apparmor.d
run: |
Expand Down Expand Up @@ -132,11 +131,12 @@ jobs:

- name: Install integration dependencies
run: |
bash tests/requirements.sh
just init
find /usr/sbin/ -type f

- name: Run the integration tests
run: |
make integration
just integration

- name: Show final AppArmor logs
if: always()
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
# Build
.build
.logs
.pkg
.snapd
/snap
snapd.backup
tests/tldr
tests/tldr.tar.gz
tests/bats_dirty

# mkdocs
__pycache__
.cache
public
site
Expand Down
21 changes: 10 additions & 11 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ bash:
- shellcheck --shell=bash
PKGBUILD dists/build.sh dists/docker.sh tests/check.sh
tests/packer/init.sh tests/packer/src/aa-update tests/packer/clean.sh
tests/autopkgtest/autopkgtest.sh

golangci-lint:
stage: lint
Expand All @@ -38,9 +39,8 @@ packer:
name: hashicorp/packer:latest
entrypoint: [""]
script:
- cd tests &&
packer fmt --check packer/ &&
packer validate --syntax-only packer/
- packer fmt tests/packer/
- packer validate --syntax-only tests/packer/

sast:
stage: lint
Expand All @@ -66,7 +66,7 @@ check:
stage: test
image: registry.gitlab.com/roddhjav/builders/archlinux
script:
- make check
- just check

# Package Build
# -------------
Expand All @@ -84,13 +84,12 @@ archlinux:

debian:
stage: build
image: registry.gitlab.com/roddhjav/builders/debian:12
image: registry.gitlab.com/roddhjav/builders/debian:13
script:
- sudo chown -R build:build /builds/
- git config --global --add safe.directory $CI_PROJECT_DIR
- mkdir -p "$PKGDEST"
- sudo apt-get update -q && sudo apt-get install -y config-package-dev lsb-release
- sudo apt-get install -y -t bookworm-backports golang-go
- sudo apt-get update -q && sudo apt-get install -y config-package-dev golang-go lsb-release libdistro-info-perl
- bash dists/build.sh dpkg
artifacts:
expire_in: 1 day
Expand All @@ -105,7 +104,7 @@ ubuntu:
script:
- git config --global --add safe.directory $CI_PROJECT_DIR
- mkdir -p "$PKGDEST"
- sudo apt-get update -q && sudo apt-get install -y config-package-dev golang-go lsb-release
- sudo apt-get update -q && sudo apt-get install -y config-package-dev golang-go lsb-release libdistro-info-perl
- bash dists/build.sh dpkg
artifacts:
expire_in: 1 day
Expand All @@ -117,7 +116,7 @@ whonix:
variables:
DISTRIBUTION: whonix
before_script:
- echo "\noverride_dh_auto_build:\n\tmake full" >> debian/rules
- sed -e "s/just complain/just fsp-complain/" -i debian/rules

opensuse:
stage: build
Expand Down Expand Up @@ -147,7 +146,7 @@ preprocess-archlinux:

preprocess-debian:
stage: preprocess
image: debian
image: debian:13
dependencies:
- debian
script:
Expand All @@ -167,7 +166,7 @@ preprocess-ubuntu:
- dpkg --install $PKGDEST/*
- apparmor_parser --preprocess /etc/apparmor.d 1> /dev/null

preprocess-whonix:
.preprocess-whonix:
extends: preprocess-debian
dependencies:
- whonix
Expand Down
Loading