mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
feat(profiles): general update.
This commit is contained in:
parent
e087349662
commit
08beefe867
@ -63,6 +63,8 @@ profile apt @{exec_path} flags=(attach_disconnected) {
|
||||
/{usr/,}bin/apt-listchanges rPx,
|
||||
/{usr/,}bin/apt-show-versions rPx,
|
||||
/{usr/,}bin/debtags rPx,
|
||||
/{usr/,}bin/df rPx,
|
||||
/{usr/,}bin/dmesg rPx,
|
||||
/{usr/,}bin/dpkg rPx,
|
||||
/{usr/,}bin/dpkg-source rcx -> dpkg-source,
|
||||
/{usr/,}bin/etckeeper rPx,
|
||||
@ -97,6 +99,8 @@ profile apt @{exec_path} flags=(attach_disconnected) {
|
||||
/var/cache/apt/ r,
|
||||
/var/cache/apt/** rwk,
|
||||
|
||||
/var/crash/{,*.@{uid}.crash} rw,
|
||||
|
||||
/var/lib/apt/extended_states{,.*} rw,
|
||||
/var/lib/apt/lists/** rw,
|
||||
/var/lib/apt/lists/lock rwk,
|
||||
@ -105,8 +109,7 @@ profile apt @{exec_path} flags=(attach_disconnected) {
|
||||
/var/lib/dpkg/lock{,-frontend} rwk,
|
||||
/var/lib/update-notifier/dpkg-run-stamp rw,
|
||||
|
||||
/var/log/apt/{term,history}.log w,
|
||||
/var/log/apt/eipp.log.xz w,
|
||||
/var/log/apt/{,**} rw,
|
||||
|
||||
# For package building
|
||||
@{user_build_dirs}/** rwkl -> @{user_build_dirs}/**,
|
||||
|
@ -21,6 +21,8 @@ profile dbus-daemon-launch-helper @{exec_path} {
|
||||
/{usr/,}lib/@{multiarch}/cups-pk-helper-mechanism rPx,
|
||||
/{usr/,}lib/cups-pk-helper/cups-pk-helper-mechanism rPx,
|
||||
/{usr/,}lib/software-properties/software-properties-dbus rPx,
|
||||
|
||||
/usr/share/org.gnome.Characters/org.gnome.Characters.BackgroundService rPx,
|
||||
|
||||
/usr/share/dbus-1/{,**} r,
|
||||
|
||||
|
@ -9,9 +9,10 @@ include <tunables/global>
|
||||
@{exec_path} = @{libexec}/gnome-calculator-search-provider
|
||||
profile gnome-calculator-search-provider @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/dbus-session-strict>
|
||||
include <abstractions/dconf-write>
|
||||
include <abstractions/gtk>
|
||||
include <abstractions/fonts>
|
||||
include <abstractions/gtk>
|
||||
|
||||
signal (send) set=kill peer=unconfined,
|
||||
|
||||
@ -23,6 +24,7 @@ profile gnome-calculator-search-provider @{exec_path} {
|
||||
/usr/share/icons/{,**} r,
|
||||
|
||||
owner @{run}/user/@{uid}/gdm/Xauthority r,
|
||||
owner @{run}/user/@{uid}/wayland-[0-9]* rw,
|
||||
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
owner @{PROC}/@{pids}/cmdline r,
|
||||
|
@ -148,6 +148,7 @@ profile gnome-control-center @{exec_path} flags=(attach_disconnected) {
|
||||
@{run}/systemd/users/@{uid} r,
|
||||
@{run}/systemd/sessions/ r,
|
||||
@{run}/systemd/sessions/* r,
|
||||
@{run}/cups/cups.sock rw,
|
||||
|
||||
@{run}/udev/data/+dmi:* r,
|
||||
@{run}/udev/data/+input* r, # for mouse, keyboard, touchpad
|
||||
|
@ -9,17 +9,22 @@ include <tunables/global>
|
||||
@{exec_path} = @{libexec}/gnome-control-center-search-provider
|
||||
profile gnome-control-center-search-provider @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/dbus-session-strict>
|
||||
include <abstractions/dconf-write>
|
||||
include <abstractions/fonts>
|
||||
include <abstractions/freedesktop.org>
|
||||
include <abstractions/gtk>
|
||||
include <abstractions/fonts>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/usr/share/glib-2.0/schemas/gschemas.compiled r,
|
||||
/usr/share/ubuntu/applications/{,**} r,
|
||||
/usr/share/X11/xkb/{,**} r,
|
||||
|
||||
/etc/gnome/defaults.list r,
|
||||
|
||||
owner @{run}/user/@{uid}/gdm/Xauthority r,
|
||||
owner @{run}/user/@{uid}/wayland-[0-9]* rw,
|
||||
|
||||
include if exists <local/gnome-control-center-search-provider>
|
||||
}
|
@ -20,7 +20,8 @@ profile gnome-terminal-server @{exec_path} {
|
||||
@{exec_path} mr,
|
||||
|
||||
# The shell is not confined on purpose.
|
||||
/{usr/,}bin/{,z,ba,da}sh rUx,
|
||||
/{usr/,}bin/{,b,d,rb}ash rUx,
|
||||
/{usr/,}bin/{c,k,tc,z}sh rUx,
|
||||
|
||||
/usr/share/glib-2.0/schemas/gschemas.compiled r,
|
||||
/usr/share/X11/xkb/{,**} r,
|
||||
|
@ -16,11 +16,21 @@ profile seahorse @{exec_path} {
|
||||
include <abstractions/p11-kit>
|
||||
include <abstractions/ssl_certs>
|
||||
|
||||
dbus send bus=system path=/
|
||||
interface=org.freedesktop.DBus.Peer
|
||||
member=Ping
|
||||
peer=(name=org.freedesktop.Avahi),
|
||||
|
||||
dbus send bus=system path=/
|
||||
interface=org.freedesktop.Avahi.Server
|
||||
member={GetAPIVersion,GetState,ServiceBrowserNew}
|
||||
peer=(name=org.freedesktop.Avahi),
|
||||
|
||||
dbus send bus=system path=/Client[0-9]*/ServiceBrowser[0-9]*
|
||||
interface=org.freedesktop.Avahi.ServiceBrowser
|
||||
member=Free
|
||||
peer=(name=org.freedesktop.Avahi),
|
||||
|
||||
dbus receive bus=system path=/Client[0-9]*/ServiceBrowser[0-9]*
|
||||
interface=org.freedesktop.Avahi.ServiceBrowser
|
||||
member={CacheExhausted,AllForNow},
|
||||
|
@ -97,7 +97,7 @@ profile NetworkManager @{exec_path} flags=(attach_disconnected) {
|
||||
/{usr/,}lib/nm-openvpn-service rPx,
|
||||
/{usr/,}lib/nm-openvpn-service-openvpn-helper rPx,
|
||||
|
||||
/dev/rfkill rw,
|
||||
/usr/share/gvfs/remote-volume-monitors/{,*.monitor} r,
|
||||
|
||||
/ r,
|
||||
/etc/ r,
|
||||
@ -136,5 +136,7 @@ profile NetworkManager @{exec_path} flags=(attach_disconnected) {
|
||||
@{PROC}/sys/kernel/osrelease r,
|
||||
@{PROC}/sys/net/** rw,
|
||||
|
||||
/dev/rfkill rw,
|
||||
|
||||
include if exists <local/NetworkManager>
|
||||
}
|
||||
|
@ -50,6 +50,7 @@ profile systemd-resolved @{exec_path} flags=(attach_disconnected) {
|
||||
@{run}/systemd/resolve/{,**} rw,
|
||||
|
||||
@{PROC}/sys/kernel/hostname r,
|
||||
@{PROC}/sys/net/ipv6/conf/all/disable_ipv6 r,
|
||||
|
||||
include if exists <local/systemd-timesyncd>
|
||||
}
|
||||
|
@ -19,9 +19,13 @@ profile systemd-timedated @{exec_path} flags=(attach_disconnected) {
|
||||
interface=org.freedesktop.DBus
|
||||
member={AddMatch,ReleaseName,RequestName},
|
||||
|
||||
dbus send bus=system path=/org/freedesktop/systemd[0-9]/unit/*
|
||||
interface=org.freedesktop.DBus.Properties
|
||||
member=GetAll,
|
||||
|
||||
dbus receive bus=system path=/org/freedesktop/timedate[0-1]
|
||||
interface=org.freedesktop.DBus.Properties
|
||||
member=Get,
|
||||
member={Get,GetAll},
|
||||
|
||||
dbus bind bus=system
|
||||
name=org.freedesktop.timedate[0-9],
|
||||
|
@ -69,16 +69,17 @@ profile apport-gtk @{exec_path} {
|
||||
|
||||
/tmp/[a-z0-9]* rw,
|
||||
/tmp/apport_core_* rw,
|
||||
/tmp/launchpadlib.cache.[a-z0-9]*/ w,
|
||||
/tmp/launchpadlib.cache.[a-z0-9]*/ rw,
|
||||
/tmp/tmp[a-z0-9]*/{,**} rw,
|
||||
|
||||
owner @{PROC}/@{pid}/cgroup r,
|
||||
@{PROC}/ r,
|
||||
@{PROC}/@{pids}/cmdline r,
|
||||
@{PROC}/@{pids}/fd/ r,
|
||||
@{PROC}/@{pids}/mounts r,
|
||||
@{PROC}/@{pids}/stat r,
|
||||
@{PROC}/modules r,
|
||||
@{PROC}/version_signature r,
|
||||
owner @{PROC}/@{pid}/cgroup r,
|
||||
|
||||
profile gdb {
|
||||
include <abstractions/base>
|
||||
|
@ -9,6 +9,7 @@ include <tunables/global>
|
||||
@{exec_path} = /{usr/,}lib/ubuntu-advantage/apt-esm-json-hook
|
||||
profile apt-esm-json-hook @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
|
@ -9,6 +9,7 @@ include <tunables/global>
|
||||
@{exec_path} = /{usr/,}{s,}bin/apparmor_parser
|
||||
profile apparmor_parser @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
|
||||
capability mac_admin,
|
||||
|
||||
|
@ -25,6 +25,7 @@ profile needrestart @{exec_path} flags=(attach_disconnected) {
|
||||
|
||||
/{usr/,}bin/{,ba,da}sh rix,
|
||||
/{usr/,}bin/dpkg-query rpx,
|
||||
/{usr/,}bin/fail2ban-server rPx,
|
||||
/{usr/,}bin/locale rix,
|
||||
/{usr/,}bin/python3.[0-9]* rix,
|
||||
/{usr/,}bin/stty rix,
|
||||
|
@ -14,6 +14,8 @@ profile run-parts @{exec_path} {
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/usr/share/update-notifier/notify-reboot-required rPx,
|
||||
|
||||
# Crontrab
|
||||
/etc/cron.{hourly,daily,weekly,monthly}/ r,
|
||||
/etc/cron.{hourly,daily,weekly,monthly}/0anacron rPx,
|
||||
|
@ -11,6 +11,7 @@ profile spice-vdagent @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/audio>
|
||||
include <abstractions/dbus-session-strict>
|
||||
include <abstractions/fonts>
|
||||
include <abstractions/gtk>
|
||||
include <abstractions/X-strict>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user