feat(profile): update ucf profiles.
This commit is contained in:
parent
d8a37c728b
commit
af74cfd2ca
4 changed files with 75 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ profile ucf @{exec_path} {
|
||||||
@{bin}/dpkg-divert rPx,
|
@{bin}/dpkg-divert rPx,
|
||||||
@{pager_path} rCx -> child-pager,
|
@{pager_path} rCx -> child-pager,
|
||||||
|
|
||||||
/usr/share/debconf/frontend rPx, # TODO: rCx -> debonc-frontend,
|
/usr/share/debconf/frontend Cx -> debconf,
|
||||||
|
|
||||||
# For md5sum
|
# For md5sum
|
||||||
/usr/share/** r,
|
/usr/share/** r,
|
||||||
|
|
@ -55,6 +55,15 @@ profile ucf @{exec_path} {
|
||||||
|
|
||||||
owner /tmp/tmp.@{rand10} r,
|
owner /tmp/tmp.@{rand10} r,
|
||||||
|
|
||||||
|
deny capability sys_admin, # optional: no audit
|
||||||
|
|
||||||
|
profile debconf {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/common/debconf>
|
||||||
|
|
||||||
|
include if exists <local/ucf_debconf>
|
||||||
|
}
|
||||||
|
|
||||||
include if exists <local/ucf>
|
include if exists <local/ucf>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
26
apparmor.d/profiles-s-z/ucfq
Normal file
26
apparmor.d/profiles-s-z/ucfq
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2025 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
abi <abi/4.0>,
|
||||||
|
|
||||||
|
include <tunables/global>
|
||||||
|
|
||||||
|
@{exec_path} = @{bin}/ucfq
|
||||||
|
profile ucfq @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
@{bin}/md5sum rix,
|
||||||
|
|
||||||
|
/etc/ r,
|
||||||
|
/etc/default/ r,
|
||||||
|
/etc/default/grub r,
|
||||||
|
|
||||||
|
/var/lib/ucf/* r,
|
||||||
|
|
||||||
|
include if exists <local/ucfq>
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:syntax=apparmor
|
||||||
37
apparmor.d/profiles-s-z/ucfr
Normal file
37
apparmor.d/profiles-s-z/ucfr
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2025 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
abi <abi/4.0>,
|
||||||
|
|
||||||
|
include <tunables/global>
|
||||||
|
|
||||||
|
@{exec_path} = @{bin}/ucfr
|
||||||
|
profile ucfr @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
@{sh_path} r,
|
||||||
|
@{bin}/basename ix,
|
||||||
|
@{bin}/{m,g,}awk ix,
|
||||||
|
@{bin}/getopt ix,
|
||||||
|
@{bin}/grep ix,
|
||||||
|
@{bin}/id ix,
|
||||||
|
@{bin}/readlink ix,
|
||||||
|
@{bin}/sed ix,
|
||||||
|
@{bin}/dirname ix,
|
||||||
|
|
||||||
|
/usr/share/ucf/{,**} r,
|
||||||
|
|
||||||
|
/etc/ucf.conf r,
|
||||||
|
|
||||||
|
/ r,
|
||||||
|
|
||||||
|
/var/lib/ucf/ r,
|
||||||
|
/var/lib/ucf/registry r,
|
||||||
|
|
||||||
|
include if exists <local/ucfr>
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:syntax=apparmor
|
||||||
|
|
@ -368,6 +368,8 @@ telegram-desktop complain
|
||||||
totem attach_disconnected,complain
|
totem attach_disconnected,complain
|
||||||
tracker-writeback complain
|
tracker-writeback complain
|
||||||
ucf complain
|
ucf complain
|
||||||
|
ucfq complain
|
||||||
|
ucfr complain
|
||||||
udev-ata_id complain
|
udev-ata_id complain
|
||||||
udev-bcache-export-cached complain
|
udev-bcache-export-cached complain
|
||||||
udev-cdrom_id complain
|
udev-cdrom_id complain
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue