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/apt-listbugs
|
|
|
|
profile apt-listbugs @{exec_path} {
|
2020-12-10 22:33:39 +01:00
|
|
|
include <abstractions/base>
|
|
|
|
include <abstractions/consoles>
|
|
|
|
include <abstractions/ruby>
|
|
|
|
include <abstractions/nameservice-strict>
|
|
|
|
include <abstractions/openssl>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
#capability sys_tty_config,
|
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
network inet dgram,
|
|
|
|
network inet6 dgram,
|
|
|
|
network inet stream,
|
|
|
|
network inet6 stream,
|
|
|
|
network netlink raw,
|
|
|
|
|
2020-09-12 17:19:23 +02:00
|
|
|
@{exec_path} r,
|
|
|
|
/{usr/,}bin/ruby2.[0-9]* rix,
|
|
|
|
|
2020-12-09 10:30:52 +01:00
|
|
|
/{usr/,}bin/{,ba,da}sh rix,
|
|
|
|
/{usr/,}bin/logname rix,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2020-12-09 10:30:52 +01:00
|
|
|
/{usr/,}bin/apt-config rPx,
|
2021-02-13 15:00:16 +01:00
|
|
|
# Do not strip env to avoid errors like the following:
|
|
|
|
# ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be preloaded (cannot open
|
|
|
|
# shared object file): ignored.
|
|
|
|
/{usr/,}bin/dpkg-query rpx,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
/usr/local/lib/site_ruby/[0-9].[0-9].[0-9]/**.rb r,
|
|
|
|
|
|
|
|
/usr/share/rubygems-integration/*/specifications/ r,
|
|
|
|
/usr/share/rubygems-integration/*/specifications/* r,
|
|
|
|
|
|
|
|
/etc/apt/listbugs/{,*} r,
|
|
|
|
|
|
|
|
@{PROC}/@{pid}/loginuid r,
|
|
|
|
|
|
|
|
# The following is needed when apt-listbugs 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,
|
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include if exists <local/apt-listbugs>
|
2020-09-12 17:19:23 +02:00
|
|
|
}
|