mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 00:48:10 +01:00
feat(abs): add more possible resolv.conf path in nameservice.
Used a lot by debian.
This commit is contained in:
parent
5a3dface8e
commit
6f98bb9bfb
10 changed files with 2 additions and 12 deletions
|
@ -23,6 +23,8 @@
|
|||
/var/lib/extrausers/passwd r,
|
||||
|
||||
@{run}/nscd/db* r,
|
||||
@{run}/resolvconf/resolv.conf r,
|
||||
@{run}/systemd/resolve/resolv.conf r,
|
||||
@{run}/systemd/resolve/stub-resolv.conf r,
|
||||
|
||||
# NSS records from systemd-userdbd.service
|
||||
|
|
|
@ -70,7 +70,6 @@ profile apt-methods-http @{exec_path} {
|
|||
owner /tmp/apt-changelog-*/*.changelog rw,
|
||||
|
||||
@{run}/ubuntu-advantage/aptnews.json rw,
|
||||
@{run}/resolvconf/resolv.conf r,
|
||||
|
||||
@{PROC}/1/cgroup r,
|
||||
@{PROC}/@{pid}/cgroup r,
|
||||
|
|
|
@ -114,7 +114,6 @@ profile unattended-upgrade @{exec_path} flags=(attach_disconnected) {
|
|||
/var/log/apt/{term,history}.log w,
|
||||
/var/log/apt/eipp.log.xz w,
|
||||
|
||||
@{run}/resolvconf/resolv.conf r,
|
||||
@{run}/systemd/inhibit/[0-9]*.ref rw,
|
||||
owner @{run}/unattended-upgrades.lock rwk,
|
||||
owner @{run}/unattended-upgrades.pid rw,
|
||||
|
|
|
@ -93,7 +93,6 @@ profile sshd @{exec_path} flags=(attach_disconnected) {
|
|||
@{run}/motd.d/{,*} r,
|
||||
@{run}/motd.dynamic rw,
|
||||
@{run}/motd.dynamic.new rw,
|
||||
@{run}/resolvconf/resolv.conf r,
|
||||
@{run}/systemd/notify w,
|
||||
@{run}/systemd/sessions/*.ref rw,
|
||||
owner @{run}/sshd{,.init}.pid wl,
|
||||
|
|
|
@ -33,7 +33,6 @@ profile agetty @{exec_path} {
|
|||
/etc/os-release r,
|
||||
/usr/etc/login.defs r,
|
||||
|
||||
@{run}/resolvconf/resolv.conf r,
|
||||
owner @{run}/agetty.reload rw,
|
||||
|
||||
/dev/tty@{int} rw,
|
||||
|
|
|
@ -57,8 +57,6 @@ profile etckeeper @{exec_path} {
|
|||
owner @{HOME}/.netrc r,
|
||||
owner @{user_config_dirs}/git/{,*} rw,
|
||||
|
||||
@{run}/resolvconf/resolv.conf r,
|
||||
|
||||
owner /tmp/etckeeper-git* rw,
|
||||
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
|
|
|
@ -35,7 +35,6 @@ profile fail2ban-server @{exec_path} flags=(attach_disconnected) {
|
|||
|
||||
@{run}/fail2ban/fail2ban.pid rw,
|
||||
@{run}/fail2ban/fail2ban.sock rw,
|
||||
@{run}/resolvconf/resolv.conf r,
|
||||
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
|
||||
|
|
|
@ -20,8 +20,6 @@ profile hostname @{exec_path} {
|
|||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{run}/resolvconf/resolv.conf r,
|
||||
|
||||
deny owner @{user_share_dirs}/gvfs-metadata/{,*} r,
|
||||
|
||||
include if exists <local/hostname>
|
||||
|
|
|
@ -21,7 +21,5 @@ profile nullmailer-send @{exec_path} {
|
|||
|
||||
/var/spool/nullmailer/{,**} rw,
|
||||
|
||||
@{run}/resolvconf/resolv.conf r,
|
||||
|
||||
include if exists <local/nullmailer-send>
|
||||
}
|
|
@ -81,7 +81,6 @@ profile sudo @{exec_path} {
|
|||
|
||||
@{run}/ r,
|
||||
@{run}/faillock/{,*} rwk,
|
||||
@{run}/resolvconf/resolv.conf r,
|
||||
@{run}/systemd/sessions/* r,
|
||||
owner @{run}/sudo/ rw,
|
||||
owner @{run}/sudo/ts/ rw,
|
||||
|
|
Loading…
Reference in a new issue