mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
52 lines
1.3 KiB
Plaintext
52 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/,}bin/linux-check-removal
|
|
profile linux-check-removal @{exec_path} flags=(complain) {
|
|
include <abstractions/base>
|
|
include <abstractions/consoles>
|
|
include <abstractions/perl>
|
|
|
|
@{exec_path} r,
|
|
/{usr/,}bin/perl r,
|
|
|
|
# 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/linux-check-removal 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,
|
|
owner /tmp/file* w,
|
|
|
|
/usr/share/debconf/confmodule r,
|
|
|
|
/etc/debconf.conf r,
|
|
owner /var/cache/debconf/{config,passwords,templates}.dat{,-new,-old} rwk,
|
|
/usr/share/debconf/templates/adequate.templates r,
|
|
|
|
}
|
|
|
|
include if exists <local/linux-check-removal>
|
|
}
|