2021-04-01 17:17:47 +02:00
|
|
|
# apparmor.d - Full set of apparmor profiles
|
|
|
|
# Copyright (C) 2019-2021 Mikhail Morfikov
|
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2020-09-12 17:19:23 +02:00
|
|
|
|
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/,}bin/linux-check-removal
|
|
|
|
profile linux-check-removal @{exec_path} flags=(complain) {
|
2020-12-10 22:33:39 +01:00
|
|
|
include <abstractions/base>
|
|
|
|
include <abstractions/consoles>
|
|
|
|
include <abstractions/perl>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
@{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) {
|
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
|
|
|
|
|
|
|
/usr/share/debconf/frontend r,
|
|
|
|
/{usr/,}bin/perl r,
|
|
|
|
|
|
|
|
/{usr/,}bin/linux-check-removal rPx,
|
|
|
|
|
2020-12-09 10:30:52 +01:00
|
|
|
/{usr/,}bin/{,ba,da}sh rix,
|
|
|
|
/{usr/,}bin/stty rix,
|
|
|
|
/{usr/,}bin/locale rix,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
# The following is needed when debconf uses dialog/whiptail frontend.
|
2020-12-09 10:30:52 +01:00
|
|
|
/{usr/,}bin/whiptail rPx,
|
2020-09-12 17:19:23 +02:00
|
|
|
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,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include if exists <local/linux-check-removal>
|
2020-09-12 17:19:23 +02:00
|
|
|
}
|