2021-10-07 15:54:48 +02:00
|
|
|
# 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>
|
2022-08-01 18:30:03 +02:00
|
|
|
include <abstractions/consoles>
|
2022-02-09 20:35:18 +01:00
|
|
|
include <abstractions/nameservice-strict>
|
2021-10-07 15:54:48 +02:00
|
|
|
|
|
|
|
@{exec_path} mr,
|
|
|
|
|
|
|
|
/{usr/,}bin/{,ba,da}sh rix,
|
|
|
|
/{usr/,}bin/cat rix,
|
|
|
|
/{usr/,}bin/flock rix,
|
2022-02-09 20:35:18 +01:00
|
|
|
/{usr/,}bin/mkdir rix,
|
2021-10-07 15:54:48 +02:00
|
|
|
/{usr/,}bin/mv rix,
|
2022-03-18 17:05:36 +01:00
|
|
|
/{usr/,}bin/readlink rix,
|
2021-10-07 15:54:48 +02:00
|
|
|
/{usr/,}bin/rm rix,
|
|
|
|
/{usr/,}bin/run-parts rix,
|
|
|
|
/{usr/,}bin/sed rix,
|
2022-03-18 17:05:36 +01:00
|
|
|
/{usr/,}lib/resolvconf/list-records rix,
|
2021-10-07 15:54:48 +02:00
|
|
|
|
2022-02-09 20:35:18 +01:00
|
|
|
/usr/lib/resolvconf/{,**} r,
|
|
|
|
|
|
|
|
/etc/resolv.conf rw,
|
2022-03-23 20:56:11 +01:00
|
|
|
/etc/resolvconf/{,**} r,
|
2022-03-18 17:05:36 +01:00
|
|
|
/etc/resolvconf/update.d/libc rix,
|
2021-10-07 15:54:48 +02:00
|
|
|
|
|
|
|
owner @{run}/resolvconf/{,**} rw,
|
|
|
|
owner @{run}/resolvconf/run-lock wk,
|
|
|
|
|
2022-03-23 20:56:11 +01:00
|
|
|
|
2021-10-07 15:54:48 +02:00
|
|
|
include if exists <local/resolvconf>
|
|
|
|
}
|