mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 17:08:09 +01:00
Add resolvconf.
This commit is contained in:
parent
7a1c462a5e
commit
45e3a280f4
1 changed files with 29 additions and 0 deletions
29
apparmor.d/profiles-m-r/resolvconf
Normal file
29
apparmor.d/profiles-m-r/resolvconf
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
abi <abi/3.0>,
|
||||||
|
|
||||||
|
include <tunables/global>
|
||||||
|
|
||||||
|
@{exec_path} = /{usr/,}sbin/resolvconf
|
||||||
|
profile resolvconf @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
/{usr/,}bin/{,ba,da}sh rix,
|
||||||
|
/{usr/,}bin/cat rix,
|
||||||
|
/{usr/,}bin/flock rix,
|
||||||
|
/{usr/,}bin/mv rix,
|
||||||
|
/{usr/,}bin/rm rix,
|
||||||
|
/{usr/,}bin/run-parts rix,
|
||||||
|
/{usr/,}bin/sed rix,
|
||||||
|
|
||||||
|
/etc/resolvconf/update.d/libc mr,
|
||||||
|
|
||||||
|
owner @{run}/resolvconf/{,**} rw,
|
||||||
|
owner @{run}/resolvconf/run-lock wk,
|
||||||
|
|
||||||
|
include if exists <local/resolvconf>
|
||||||
|
}
|
Loading…
Reference in a new issue