chore(profile): add abi and local include when missing.

This commit is contained in:
Alexandre Pujol 2024-10-06 15:57:47 +01:00
parent 105a9b4def
commit 7ccaab8234
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
61 changed files with 84 additions and 28 deletions

View file

@ -102,7 +102,7 @@ profile apt-key @{exec_path} {
owner @{PROC}/@{pid}/fd/ r,
owner @{PROC}/@{pid}/task/@{tid}/comm rw,
include if exists <local/apt-key_pgp>
include if exists <local/apt-key_gpg>
}
include if exists <local/apt-key>

View file

@ -46,6 +46,7 @@ profile debconf-apt-progress @{exec_path} flags=(complain) {
/etc/shadow r,
include if exists <local/debconf-apt-progress_frontend>
}
include if exists <local/debconf-apt-progress>

View file

@ -45,6 +45,7 @@ profile dpkg-architecture @{exec_path} {
/etc/debian_version r,
include if exists <local/dpkg-architecture_ccache>
}
include if exists <local/dpkg-architecture>

View file

@ -74,7 +74,7 @@ profile cron @{exec_path} flags=(attach_disconnected) {
owner @{tmp}/#@{int} rw,
include if exists <local/cron_run_parts>
include if exists <local/cron_run-parts>
}
include if exists <local/cron>

View file

@ -33,6 +33,7 @@ profile cron-apt-listbugs @{exec_path} {
/var/spool/apt-listbugs/lastprefclean rw,
include if exists <local/cron-apt-listbugs_prefclean>
}
include if exists <local/cron-apt-listbugs>

View file

@ -43,6 +43,7 @@ profile cron-debsums @{exec_path} {
owner @{PROC}/@{pid}/fd/3 rw,
include if exists <local/cron-debsums_tee>
}
include if exists <local/cron-debsums>

View file

@ -152,7 +152,7 @@ profile cron-popularity-contest @{exec_path} {
owner @{tmp}/#@{int} rw, # file_inherit
include if exists <local/cron-popularity-contest_/popcon-upload>
include if exists <local/cron-popularity-contest_popcon-upload>
}
include if exists <local/cron-popularity-contest>

View file

@ -39,7 +39,7 @@ profile xdg-desktop-icon @{exec_path} {
include <abstractions/base>
include <abstractions/app/bus>
include <abstractions/bus-session>
include if exists <local/xdg-settings_bus>
include if exists <local/xdg-desktop-icon_bus>
}
include if exists <local/xdg-desktop-icon>

View file

@ -7,7 +7,7 @@ abi <abi/4.0>,
include <tunables/global>
@{exec_path} = /etc/gdm{3,}/{Init,Prime}/Default
profile gdm-defaut @{exec_path} flags=(complain) {
profile gdm-prime-defaut @{exec_path} flags=(complain) {
include <abstractions/base>
@{exec_path} mr,

View file

@ -90,6 +90,7 @@ profile openvpn @{exec_path} flags=(attach_disconnected) {
/etc/iproute2/rt_tables r,
/etc/iproute2/rt_tables.d/ r,
include if exists <local/openvpn_update-resolv>
}
profile force-user-traffic-via-vpn {
@ -121,6 +122,7 @@ profile openvpn @{exec_path} flags=(attach_disconnected) {
owner @{PROC}/sys/net/ipv{4,}/route/flush w,
include if exists <local/openvpn_force-user-traffic-via-vpn>
}
include if exists <local/openvpn>

View file

@ -60,7 +60,7 @@ profile yay @{exec_path} {
owner @{user_cache_dirs}/yay/** rwlk -> @{user_cache_dirs}/yay/**,
owner @{user_config_dirs}/git/{,*} r,
include if exists <local/pass_git>
include if exists <local/yay_git>
}
profile editor {

View file

@ -2,6 +2,8 @@
# Copyright (C) 2024 valoq <valoq@mailbox.org>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/4.0>,
include <tunables/global>
@{exec_path} = @{lib}/ssh/ssh-sk-helper

View file

@ -55,7 +55,7 @@ profile journalctl @{exec_path} flags=(attach_disconnected) {
deny network inet stream,
deny network inet6 stream,
include if exists <local/systemd-journalctl>
include if exists <local/journalctl>
}
# vim:syntax=apparmor

View file

@ -50,7 +50,7 @@ profile systemd-resolved @{exec_path} flags=(attach_disconnected) {
@{PROC}/sys/kernel/hostname r,
@{PROC}/sys/net/ipv{4,6}/conf/all/disable_ipv{4,6} r,
include if exists <local/systemd-timesyncd>
include if exists <local/systemd-resolved>
}
# vim:syntax=apparmor

View file

@ -109,6 +109,7 @@ profile subiquity-console-conf @{exec_path} {
/var/lib/dbus/machine-id r,
/etc/machine-id r,
include if exists <local/subiquity-console-conf_journalctl>
}
include if exists <local/subiquity-console-conf>

View file

@ -87,6 +87,7 @@ profile ubuntu-advantage @{exec_path} {
/dev/kmsg w,
include if exists <local/ubuntu-advantage_systemctl>
}
include if exists <local/ubuntu-advantage>

View file

@ -45,6 +45,7 @@ profile update-motd-fsck-at-reboot @{exec_path} {
/dev/tty@{int} rw,
include if exists <local/update-motd-fsck-at-reboot_mount>
}
include if exists <local/update-motd-fsck-at-reboot>

View file

@ -290,6 +290,8 @@ profile libvirtd @{exec_path} flags=(attach_disconnected) {
owner @{PROC}/@{pids}/status r,
/dev/net/tun rw,
include if exists <local/libvirtd_qemu_bridge_helper>
}
include if exists <usr/libvirtd>

View file

@ -7,7 +7,7 @@ abi <abi/4.0>,
include <tunables/global>
@{exec_path} = @{bin}/whonix_firewall @{lib}/whonix-firewall/reloadfirewall
profile whonix-firewall @{exec_path} {
profile whonix-firewalld @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/nameservice-strict>
@ -45,7 +45,7 @@ profile whonix-firewall @{exec_path} {
owner @{run}/updatesproxycheck/{,**} rw,
owner @{run}/whonix_firewall/{,**} rw,
include if exists <local/whonix-firewall>
include if exists <local/whonix-firewalld>
}
# vim:syntax=apparmor

View file

@ -48,7 +48,7 @@ profile xfce-panel @{exec_path} {
@{bin}/lsblk rPx,
include if exists <local/xfce-panel-wrapper_root>
include if exists <local/xfce-panel_root>
}
include if exists <local/xfce-panel>