2020-09-12 17:19:23 +02:00
|
|
|
# vim:syntax=apparmor
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
#
|
2021-01-10 16:35:07 +01:00
|
|
|
# Copyright (C) 2019-2021 Mikhail Morfikov
|
2020-09-12 17:19:23 +02:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of version 2 of the GNU General Public
|
|
|
|
# License published by the Free Software Foundation.
|
|
|
|
#
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
abi <abi/3.0>,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include <tunables/global>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
@{exec_path} = /{usr/,}sbin/dpkg-preconfigure
|
|
|
|
profile dpkg-preconfigure @{exec_path} {
|
2020-12-10 22:33:39 +01:00
|
|
|
include <abstractions/base>
|
|
|
|
include <abstractions/consoles>
|
|
|
|
include <abstractions/perl>
|
|
|
|
include <abstractions/nameservice-strict>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
#capability sys_tty_config,
|
|
|
|
|
|
|
|
@{exec_path} r,
|
|
|
|
/{usr/,}bin/perl r,
|
|
|
|
|
2020-12-09 10:30:52 +01:00
|
|
|
/{usr/,}bin/{,ba,da}sh rix,
|
|
|
|
/{usr/,}bin/locale rix,
|
|
|
|
/{usr/,}bin/stty rix,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
/{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.
|
2020-12-10 22:33:39 +01:00
|
|
|
include <abstractions/gtk>
|
|
|
|
include <abstractions/fonts>
|
|
|
|
include <abstractions/fontconfig-cache-read>
|
|
|
|
include <abstractions/freedesktop.org>
|
2020-09-12 17:19:23 +02:00
|
|
|
capability dac_read_search,
|
|
|
|
/{usr/,}bin/lsb_release rPx -> child-lsb_release,
|
2021-03-21 17:04:10 +01:00
|
|
|
/{usr/,}bin/hostname rix,
|
2020-09-12 17:19:23 +02:00
|
|
|
owner @{PROC}/@{pid}/mounts r,
|
|
|
|
@{HOME}/.Xauthority r,
|
|
|
|
|
|
|
|
owner @{PROC}/@{pid}/mounts r,
|
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include if exists <local/dpkg-preconfigure>
|
2020-09-12 17:19:23 +02:00
|
|
|
}
|