mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-19 09:28:17 +01:00
58 lines
1.5 KiB
Text
58 lines
1.5 KiB
Text
# vim:syntax=apparmor
|
|
# ------------------------------------------------------------------
|
|
#
|
|
# Copyright (C) 2019-2021 Mikhail Morfikov
|
|
#
|
|
# 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.
|
|
#
|
|
# ------------------------------------------------------------------
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /{usr/,}bin/debconf-apt-progress
|
|
profile debconf-apt-progress @{exec_path} flags=(complain) {
|
|
include <abstractions/base>
|
|
include <abstractions/perl>
|
|
|
|
@{exec_path} r,
|
|
/{usr/,}bin/perl r,
|
|
|
|
/{usr/,}bin/apt-get rPx,
|
|
|
|
# Think what to do about this (#FIXME#)
|
|
/usr/share/debconf/frontend rPx,
|
|
#/usr/share/debconf/frontend rCx -> frontend,
|
|
|
|
|
|
profile frontend flags=(complain) {
|
|
include <abstractions/base>
|
|
include <abstractions/consoles>
|
|
include <abstractions/perl>
|
|
include <abstractions/nameservice-strict>
|
|
|
|
/usr/share/debconf/frontend r,
|
|
/{usr/,}bin/perl r,
|
|
|
|
/{usr/,}bin/debconf-apt-progress rPx,
|
|
|
|
/{usr/,}bin/{,ba,da}sh rix,
|
|
/{usr/,}bin/stty rix,
|
|
/{usr/,}bin/locale rix,
|
|
|
|
# The following is needed when debconf uses dialog/whiptail frontend.
|
|
/{usr/,}bin/whiptail rPx,
|
|
|
|
/etc/debconf.conf r,
|
|
owner /var/cache/debconf/{config,passwords,templates}.dat{,-new,-old} rwk,
|
|
/usr/share/debconf/templates/adequate.templates r,
|
|
|
|
/etc/shadow r,
|
|
|
|
}
|
|
|
|
include if exists <local/debconf-apt-progress>
|
|
}
|