mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
54 lines
1.3 KiB
Plaintext
54 lines
1.3 KiB
Plaintext
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2019-2021 Mikhail Morfikov
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /{usr/,}sbin/dpkg-preconfigure
|
|
profile dpkg-preconfigure @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/consoles>
|
|
include <abstractions/perl>
|
|
include <abstractions/nameservice-strict>
|
|
|
|
#capability sys_tty_config,
|
|
|
|
@{exec_path} r,
|
|
/{usr/,}bin/perl r,
|
|
|
|
/{usr/,}bin/{,ba,da}sh rix,
|
|
/{usr/,}bin/locale rix,
|
|
/{usr/,}bin/stty rix,
|
|
|
|
/{usr/,}bin/dpkg rPx -> child-dpkg,
|
|
/{usr/,}bin/apt-extracttemplates rPx,
|
|
/{usr/,}bin/whiptail rPx,
|
|
|
|
/etc/shadow r,
|
|
|
|
/etc/inputrc r,
|
|
/etc/debconf.conf r,
|
|
|
|
owner /tmp/*.template.* rw,
|
|
owner /tmp/*.config.* rwPUx,
|
|
|
|
owner /var/cache/debconf/{config,passwords,templates}.dat{,-old,-new} rwk,
|
|
|
|
# The following is needed when dpkg-preconfigure uses debcconf GUI frontends.
|
|
include <abstractions/gtk>
|
|
include <abstractions/fonts>
|
|
include <abstractions/fontconfig-cache-read>
|
|
include <abstractions/freedesktop.org>
|
|
capability dac_read_search,
|
|
/{usr/,}bin/lsb_release rPx -> child-lsb_release,
|
|
/{usr/,}bin/hostname rix,
|
|
owner @{PROC}/@{pid}/mounts r,
|
|
@{HOME}/.Xauthority r,
|
|
|
|
owner @{PROC}/@{pid}/mounts r,
|
|
|
|
include if exists <local/dpkg-preconfigure>
|
|
}
|