mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
65 lines
1.6 KiB
Plaintext
65 lines
1.6 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/pam-auth-update
|
|
profile pam-auth-update @{exec_path} flags=(complain) {
|
|
include <abstractions/base>
|
|
include <abstractions/consoles>
|
|
include <abstractions/perl>
|
|
|
|
@{exec_path} mr,
|
|
/{usr/,}bin/perl r,
|
|
|
|
/{usr/,}bin/md5sum rix,
|
|
|
|
# Think what to do about this (#FIXME#)
|
|
/usr/share/debconf/frontend rPx,
|
|
#/usr/share/debconf/frontend rCx -> frontend,
|
|
|
|
/etc/pam.d/* rw,
|
|
/var/lib/pam/* rw,
|
|
/usr/share/pam{,-configs}/{,*} r,
|
|
|
|
|
|
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/,}sbin/pam-auth-update rPx,
|
|
|
|
/{usr/,}bin/{,ba,da}sh rix,
|
|
/{usr/,}bin/stty rix,
|
|
/{usr/,}bin/locale rix,
|
|
|
|
/etc/debconf.conf r,
|
|
owner /var/cache/debconf/{config,passwords,templates}.dat{,-new,-old} rwk,
|
|
/usr/share/debconf/templates/adequate.templates r,
|
|
|
|
# The following is needed when debconf uses 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,
|
|
|
|
/etc/shadow r,
|
|
|
|
}
|
|
|
|
include if exists <local/pam-auth-update>
|
|
}
|