feat(profile): simplify needrestart & fix pam-auth-update.

This commit is contained in:
Alexandre Pujol 2025-05-25 18:24:34 +02:00
parent 14f6e269ea
commit 3afd89c59e
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
2 changed files with 2 additions and 19 deletions

View file

@ -9,11 +9,8 @@ include <tunables/global>
@{exec_path} = @{sbin}/needrestart
profile needrestart @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/nameservice-strict>
include <abstractions/perl>
include <abstractions/common/debconf>
include <abstractions/python>
include <abstractions/wutmp>
capability checkpoint_restore,
capability dac_read_search,
@ -27,18 +24,13 @@ profile needrestart @{exec_path} flags=(attach_disconnected) {
@{sh_path} rix,
@{bin}/dpkg-query rpx,
@{bin}/fail2ban-server rPx,
@{bin}/sed rix,
@{bin}/stty rix,
@{bin}/systemctl rCx -> systemctl,
@{bin}/systemd-detect-virt rPx,
@{bin}/udevadm rCx -> udevadm,
@{bin}/who rix,
@{lib}/needrestart/* rPx,
@{python_path} rix,
@{sbin}/unix_chkpwd rPx,
/usr/share/debconf/frontend rCx -> debconf,
/etc/needrestart/hook.d/* rPx,
/etc/needrestart/notify.d/* rPx,
/etc/needrestart/restart.d/* rPx,
@ -96,15 +88,6 @@ profile needrestart @{exec_path} flags=(attach_disconnected) {
include if exists <local/needrestart_udevadm>
}
profile debconf {
include <abstractions/base>
include <abstractions/common/debconf>
@{sbin}/needrestart Px,
include if exists <local/needrestart_debconf>
}
include if exists <local/needrestart>
}

View file

@ -12,7 +12,7 @@ profile pam-auth-update @{exec_path} flags=(complain) {
include <abstractions/base>
include <abstractions/common/debconf>
@{exec_path} mr,
@{exec_path} mrix,
@{bin}/md5sum ix,
@{bin}/cp ix,