feat(profile): improve integration with ubuntu.

This commit is contained in:
Alexandre Pujol 2025-08-15 10:59:20 +02:00
parent 112d54907e
commit 9c9af1d821
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
6 changed files with 11 additions and 2 deletions

View file

@ -29,6 +29,7 @@ profile gpg @{exec_path} {
@{lib}/{,gnupg/}scdaemon rPx, @{lib}/{,gnupg/}scdaemon rPx,
/usr/share/terminfo/** r, /usr/share/terminfo/** r,
/usr/share/keyrings/** rw, #aa:only apt
/usr/share/pacman/keyrings/** r, #aa:only pacman /usr/share/pacman/keyrings/** r, #aa:only pacman
/etc/inputrc r, /etc/inputrc r,

View file

@ -27,7 +27,7 @@ profile grub-mkconfig @{exec_path} flags=(attach_disconnected) {
@{bin}/cut rix, @{bin}/cut rix,
@{bin}/date rix, @{bin}/date rix,
@{bin}/dirname rix, @{bin}/dirname rix,
@{sbin}/dmsetup rPUx, @{sbin}/dmsetup rPx,
@{bin}/dpkg rPx, @{bin}/dpkg rPx,
@{bin}/find rix, @{bin}/find rix,
@{bin}/findmnt rPx, @{bin}/findmnt rPx,

View file

@ -36,6 +36,8 @@ profile grub-probe @{exec_path} {
/dev/**/ r, /dev/**/ r,
/dev/mapper/control w, /dev/mapper/control w,
deny mqueue (read, getattr) type=posix /,
include if exists <local/grub-probe> include if exists <local/grub-probe>
} }

View file

@ -71,6 +71,7 @@ profile NetworkManager @{exec_path} flags=(attach_disconnected) {
@{bin}/kmod rPx, @{bin}/kmod rPx,
@{bin}/netconfig rPUx, @{bin}/netconfig rPUx,
@{sbin}/resolvconf rPx, @{sbin}/resolvconf rPx,
@{bin}/resolvectl rPx,
@{bin}/systemctl rCx -> systemctl, @{bin}/systemctl rCx -> systemctl,
@{lib}/{,NetworkManager/}nm-daemon-helper rPx, @{lib}/{,NetworkManager/}nm-daemon-helper rPx,
@{lib}/{,NetworkManager/}nm-dhcp-helper rPx, @{lib}/{,NetworkManager/}nm-dhcp-helper rPx,

View file

@ -15,7 +15,7 @@ profile blkdeactivate @{exec_path} flags=(complain) {
@{exec_path} rm, @{exec_path} rm,
@{sh_path} rix, @{sh_path} rix,
@{sbin}/dmsetup rPUx, @{sbin}/dmsetup rPx,
@{bin}/{,e}grep rix, @{bin}/{,e}grep rix,
@{bin}/touch rix, @{bin}/touch rix,
@{bin}/lsblk rPx, @{bin}/lsblk rPx,

View file

@ -16,6 +16,8 @@ profile initramfs-hooks @{exec_path} {
@{sh_path} rix, @{sh_path} rix,
@{coreutils_path} rix, @{coreutils_path} rix,
@{bin}/cpio ix,
@{bin}/dpkg Cx -> child-dpkg,
@{bin}/fc-cache ix, @{bin}/fc-cache ix,
@{bin}/ischroot Px, @{bin}/ischroot Px,
@{bin}/ldd Cx -> ldd, @{bin}/ldd Cx -> ldd,
@ -25,6 +27,9 @@ profile initramfs-hooks @{exec_path} {
@{lib}/initramfs-tools/bin/busybox ix, @{lib}/initramfs-tools/bin/busybox ix,
@{lib}/klibc/bin/fstype ix, @{lib}/klibc/bin/fstype ix,
@{sbin}/blkid Px, @{sbin}/blkid Px,
@{sbin}/cryptsetup PUx,
@{sbin}/dmsetup Px,
@{sbin}/iucode_tool ix,
/usr/share/mdadm/mkconf Px, /usr/share/mdadm/mkconf Px,
@{bin}/* mr, @{bin}/* mr,