2018-07-30 22:54:58 -04:00
|
|
|
# Note: This profile does not specify an attachment path because it is
|
|
|
|
# intended to be used only via "Px -> lsb_release" exec transitions from
|
|
|
|
# other profiles. We want to confine the lsb_release(1) utility when it
|
|
|
|
# is invoked from other confined applications, but not when it is used
|
|
|
|
# in regular (unconfined) shell scripts or run directly by the user.
|
|
|
|
|
2023-06-30 23:36:12 -07:00
|
|
|
abi <abi/4.0>,
|
2020-05-05 00:08:39 -07:00
|
|
|
|
2020-06-09 23:30:24 +02:00
|
|
|
include <tunables/global>
|
2018-07-30 22:54:58 -04:00
|
|
|
|
|
|
|
# Do not attach to /usr/bin/lsb_release by default
|
|
|
|
profile lsb_release {
|
2020-06-09 23:30:24 +02:00
|
|
|
include <abstractions/base>
|
|
|
|
include <abstractions/python>
|
2018-07-30 22:54:58 -04:00
|
|
|
|
|
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
|
|
|
2018-08-01 19:04:00 -04:00
|
|
|
/dev/tty rw,
|
|
|
|
|
2018-07-30 22:54:58 -04:00
|
|
|
/usr/bin/lsb_release r,
|
2021-08-11 21:37:40 +02:00
|
|
|
/usr/bin/python3.{1,}[0-9] mr,
|
2018-07-30 22:54:58 -04:00
|
|
|
|
|
|
|
/etc/debian_version r,
|
|
|
|
/etc/default/apport r,
|
|
|
|
/etc/dpkg/origins/** r,
|
|
|
|
/etc/lsb-release r,
|
2018-08-01 19:04:00 -04:00
|
|
|
/etc/lsb-release.d/ r,
|
2018-07-30 22:54:58 -04:00
|
|
|
|
|
|
|
/{usr/,}bin/bash ixr,
|
|
|
|
/{usr/,}bin/dash ixr,
|
2018-08-01 19:04:00 -04:00
|
|
|
/usr/bin/basename ixr,
|
2018-07-30 22:54:58 -04:00
|
|
|
/usr/bin/dpkg-query ixr,
|
2022-11-27 11:14:59 +02:00
|
|
|
/usr/bin/cat ixr,
|
|
|
|
/usr/bin/cut ixr,
|
2018-08-01 19:04:00 -04:00
|
|
|
/usr/bin/getopt ixr,
|
|
|
|
/usr/bin/sed ixr,
|
|
|
|
/usr/bin/tr ixr,
|
2018-07-30 22:54:58 -04:00
|
|
|
|
|
|
|
# TODO - many more permissions needed for this to work
|
|
|
|
deny /usr/bin/apt-cache x,
|
|
|
|
|
|
|
|
/usr/bin/ r,
|
|
|
|
/usr/include/python*/pyconfig.h r,
|
|
|
|
/usr/share/distro-info/** r,
|
|
|
|
/usr/share/dpkg/** r,
|
2018-08-01 19:04:00 -04:00
|
|
|
/usr/share/terminfo/** r,
|
2018-07-30 22:54:58 -04:00
|
|
|
/var/lib/dpkg/** r,
|
|
|
|
|
|
|
|
# file_inherit
|
|
|
|
deny /tmp/gtalkplugin.log w,
|
|
|
|
|
|
|
|
# Site-specific additions and overrides. See local/README for details.
|
2020-04-28 22:25:27 +02:00
|
|
|
include if exists <local/lsb_release>
|
2018-07-30 22:54:58 -04:00
|
|
|
}
|