feat(profile): update linux check scripts.
This commit is contained in:
parent
6e0c646d14
commit
7a3016724a
3 changed files with 34 additions and 33 deletions
|
|
@ -10,42 +10,16 @@ include <tunables/global>
|
||||||
@{exec_path} = @{bin}/linux-check-removal
|
@{exec_path} = @{bin}/linux-check-removal
|
||||||
profile linux-check-removal @{exec_path} flags=(complain) {
|
profile linux-check-removal @{exec_path} flags=(complain) {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/consoles>
|
include <abstractions/common/debconf>
|
||||||
include <abstractions/perl>
|
|
||||||
|
|
||||||
@{exec_path} r,
|
@{exec_path} rmix,
|
||||||
|
|
||||||
# Think what to do about this (#FIXME#)
|
|
||||||
/usr/share/debconf/frontend rPx,
|
|
||||||
#/usr/share/debconf/frontend rCx -> frontend,
|
|
||||||
|
|
||||||
|
|
||||||
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,
|
@{sh_path} rix,
|
||||||
@{bin}/stty rix,
|
@{bin}/stty rix,
|
||||||
@{bin}/locale rix,
|
@{bin}/locale rix,
|
||||||
|
|
||||||
# The following is needed when debconf uses dialog/whiptail frontend.
|
|
||||||
@{bin}/whiptail rPx,
|
@{bin}/whiptail rPx,
|
||||||
owner @{tmp}/file* w,
|
|
||||||
|
|
||||||
/usr/share/debconf/confmodule r,
|
audit owner @{tmp}/file* w,
|
||||||
|
|
||||||
/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>
|
|
||||||
}
|
|
||||||
|
|
||||||
include if exists <local/linux-check-removal>
|
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
|
libvirtd attach_disconnected,complain
|
||||||
lightdm attach_disconnected,complain
|
lightdm attach_disconnected,complain
|
||||||
lightdm-session complain
|
lightdm-session complain
|
||||||
|
linux-check-removal complain
|
||||||
|
linux-update-symlinks complain
|
||||||
locale-gen complain
|
locale-gen complain
|
||||||
localectl complain
|
localectl complain
|
||||||
localsearch complain
|
localsearch complain
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue