feat(profile): update linux check scripts.
This commit is contained in:
parent
a5faf60fbc
commit
d18aafaa96
3 changed files with 34 additions and 33 deletions
|
|
@ -10,42 +10,16 @@ include <tunables/global>
|
|||
@{exec_path} = @{bin}/linux-check-removal
|
||||
profile linux-check-removal @{exec_path} flags=(complain) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
include <abstractions/perl>
|
||||
include <abstractions/common/debconf>
|
||||
|
||||
@{exec_path} r,
|
||||
@{exec_path} rmix,
|
||||
|
||||
# Think what to do about this (#FIXME#)
|
||||
/usr/share/debconf/frontend rPx,
|
||||
#/usr/share/debconf/frontend rCx -> frontend,
|
||||
@{sh_path} rix,
|
||||
@{bin}/stty rix,
|
||||
@{bin}/locale rix,
|
||||
@{bin}/whiptail rPx,
|
||||
|
||||
|
||||
profile frontend flags=(complain) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
include <abstractions/perl>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
||||
/usr/share/debconf/frontend r,
|
||||
|
||||
@{bin}/linux-check-removal rPx,
|
||||
|
||||
@{sh_path} rix,
|
||||
@{bin}/stty rix,
|
||||
@{bin}/locale rix,
|
||||
|
||||
# The following is needed when debconf uses dialog/whiptail frontend.
|
||||
@{bin}/whiptail rPx,
|
||||
owner @{tmp}/file* w,
|
||||
|
||||
/usr/share/debconf/confmodule r,
|
||||
|
||||
/etc/debconf.conf r,
|
||||
owner /var/cache/debconf/{config,passwords,templates}.dat{,-new,-old} rwk,
|
||||
/usr/share/debconf/templates/adequate.templates r,
|
||||
|
||||
include if exists <local/linux-check-removal_frontend>
|
||||
}
|
||||
audit owner @{tmp}/file* w,
|
||||
|
||||
include if exists <local/linux-check-removal>
|
||||
}
|
||||
|
|
|
|||
25
apparmor.d/profiles-g-l/linux-update-symlinks
Normal file
25
apparmor.d/profiles-g-l/linux-update-symlinks
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
# 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}/linux-update-symlinks
|
||||
profile linux-update-symlinks @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
include <abstractions/perl>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/etc/kernel-img.conf r,
|
||||
|
||||
@{efi}/ r,
|
||||
@{efi}/* rw,
|
||||
|
||||
include if exists <local/linux-update-symlinks>
|
||||
}
|
||||
|
||||
# vim:syntax=apparmor
|
||||
|
|
@ -216,6 +216,8 @@ libvirt-dbus complain
|
|||
libvirtd attach_disconnected,complain
|
||||
lightdm attach_disconnected,complain
|
||||
lightdm-session complain
|
||||
linux-check-removal complain
|
||||
linux-update-symlinks complain
|
||||
locale-gen complain
|
||||
localectl complain
|
||||
localsearch complain
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue