mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
feat(profile): general update.
This commit is contained in:
parent
f362975ce7
commit
4032ead9b4
@ -45,10 +45,10 @@ profile apt @{exec_path} flags=(attach_disconnected) {
|
||||
member={GetConnectionUnixProcessID,GetConnectionUnixUser}
|
||||
peer=(name=org.freedesktop.DBus, label=dbus-daemon),
|
||||
|
||||
dbus send bus=system path=/org/freedesktop/DBus/Bus
|
||||
dbus send bus=system
|
||||
interface=org.freedesktop.DBus.Introspectable
|
||||
member=Introspect
|
||||
peer=(name=org.freedesktop.DBus, label=dbus-daemon),
|
||||
peer=(name="{:*,org.freedesktop.DBus}"),
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
|
@ -39,7 +39,7 @@ profile plymouthd @{exec_path} {
|
||||
|
||||
@{run}/plymouth/{,**} rw,
|
||||
|
||||
@{run}/udev/data/+drm:card[0-9]-* r, # for screen outputs
|
||||
@{run}/udev/data/+drm:card@{int}-* r, # For screen outputs
|
||||
@{run}/udev/data/c226:@{int} r, # For /dev/dri/card[0-9]*
|
||||
@{run}/udev/data/c29:@{int} r, # For /dev/fb[0-9]*
|
||||
|
||||
|
@ -108,7 +108,7 @@ profile xorg @{exec_path} flags=(attach_disconnected) {
|
||||
|
||||
@{run}/udev/data/+acpi:* r, # for acpi
|
||||
@{run}/udev/data/+dmi* r, # for ?
|
||||
@{run}/udev/data/+drm:card[0-9]-* r, # for screen outputs
|
||||
@{run}/udev/data/+drm:card@{int}-* r, # For screen outputs
|
||||
@{run}/udev/data/+hid:* r, # for HID-Compliant Keyboard
|
||||
@{run}/udev/data/+i2c:* r,
|
||||
@{run}/udev/data/+input:input@{int} r, # for mouse, keyboard, touchpad
|
||||
|
@ -68,7 +68,7 @@ profile gdm @{exec_path} flags=(attach_disconnected) {
|
||||
@{run}/systemd/sessions/* r,
|
||||
@{run}/systemd/users/@{uid} r,
|
||||
|
||||
@{run}/udev/data/+drm:card[0-9]-* r, # for screen outputs
|
||||
@{run}/udev/data/+drm:card@{int}-* r, # For screen outputs
|
||||
@{run}/udev/data/+pci:* r,
|
||||
@{run}/udev/data/c226:@{int} r, # for /dev/dri/card*
|
||||
|
||||
|
@ -58,7 +58,7 @@ profile gsd-power @{exec_path} flags=(attach_disconnected) {
|
||||
/var/lib/gdm{3,}/greeter-dconf-defaults r,
|
||||
|
||||
@{run}/udev/data/+backlight:* r,
|
||||
@{run}/udev/data/+drm:card* r,
|
||||
@{run}/udev/data/+drm:card@{int}-* r, # For screen outputs
|
||||
@{run}/udev/data/+leds:* r,
|
||||
|
||||
@{run}/systemd/inhibit/[0-9]*.ref rw,
|
||||
|
@ -97,8 +97,7 @@ profile nautilus @{exec_path} flags=(attach_disconnected) {
|
||||
@{bin}/net rPUx,
|
||||
@{bin}/tracker3 rPUx,
|
||||
|
||||
@{lib}/@{multiarch}/glib-[0-9]*/gio-launch-desktop rPx -> child-open,
|
||||
@{lib}/gio-launch-desktop rPx -> child-open,
|
||||
@{open_path} rPx -> child-open,
|
||||
|
||||
/usr/share/icu/@{int}.@{int}/*.dat r,
|
||||
/usr/share/libdrm/*.ids r,
|
||||
|
@ -27,9 +27,7 @@ profile org.gnome.NautilusPreviewer @{exec_path} {
|
||||
|
||||
@{bin}/gjs-console r,
|
||||
|
||||
@{bin}/xdg-open rPx -> child-open,
|
||||
@{lib}/@{multiarch}/glib-[0-9]*/gio-launch-desktop rPx -> child-open,
|
||||
@{lib}/gio-launch-desktop rPx -> child-open,
|
||||
@{open_path} rPx -> child-open,
|
||||
|
||||
/usr/share/sushi/org.gnome.NautilusPreviewer.*.gresource r,
|
||||
|
||||
|
@ -78,9 +78,7 @@ profile tracker-miner @{exec_path} flags=(attach_disconnected) {
|
||||
@{run}/blkid/blkid.tab r,
|
||||
@{run}/mount/utab r,
|
||||
|
||||
@{run}/udev/data/c3[0-9]*:@{int} r, # For dynamic assignment range 384 to 511
|
||||
@{run}/udev/data/c4[0-9]*:@{int} r,
|
||||
@{run}/udev/data/c5[0-9]*:@{int} r,
|
||||
@{run}/udev/data/c@{dynamic}:@{int} r, # For dynamic assignment range 234 to 254, 384 to 511
|
||||
|
||||
@{PROC}/@{pid}/cmdline r,
|
||||
@{PROC}/sys/fs/fanotify/max_user_marks r,
|
||||
|
@ -16,20 +16,21 @@ profile netplan.script @{exec_path} flags=(attach_disconnected) {
|
||||
|
||||
@{lib}/netplan/generate rix,
|
||||
@{bin}/udevadm rCx -> udevadm,
|
||||
@{bin}/systemctl rCx -> systemctl,
|
||||
|
||||
/usr/share/netplan/{,**} r,
|
||||
|
||||
/etc/netplan/{,*} r,
|
||||
|
||||
@{run}/NetworkManager/conf.d/10-globally-managed-devices.conf w,
|
||||
@{run}/NetworkManager/conf.d/10-globally-managed-devices.conf{,.@{rand6}} w,
|
||||
@{run}/NetworkManager/system-connections/ r,
|
||||
@{run}/NetworkManager/system-connections/netplan-*.nmconnection w,
|
||||
@{run}/NetworkManager/system-connections/netplan-*.nmconnection{,.@{rand6}} w,
|
||||
@{run}/systemd/system/ r,
|
||||
@{run}/systemd/system/netplan-* rw,
|
||||
@{run}/systemd/system/systemd-networkd.service.wants/ r,
|
||||
@{run}/systemd/system/systemd-networkd.service.wants/netplan-*.service rw,
|
||||
|
||||
@{run}/udev/rules.d/ r,
|
||||
@{run}/udev/rules.d/90-netplan.rules{,.@{rand6}} rw,
|
||||
|
||||
profile udevadm {
|
||||
include <abstractions/base>
|
||||
@ -39,11 +40,21 @@ profile netplan.script @{exec_path} flags=(attach_disconnected) {
|
||||
|
||||
/etc/udev/udev.conf r,
|
||||
|
||||
@{run}/udev/control rw,
|
||||
@{run}/udev/rules.d/90-netplan.rules rw,
|
||||
@{run}/udev/rules.d/90-netplan.rules.@{rand6} rw,
|
||||
|
||||
include if exists <local/netplan.script_udevadm>
|
||||
}
|
||||
|
||||
profile systemctl {
|
||||
include <abstractions/base>
|
||||
include <abstractions/systemd-common>
|
||||
|
||||
@{bin}/systemctl mr,
|
||||
|
||||
include if exists <local/netplan.script_systemctl>
|
||||
}
|
||||
|
||||
include if exists <local/netplan.script>
|
||||
}
|
@ -12,6 +12,11 @@ profile nm-online @{exec_path} {
|
||||
include <abstractions/bus-system>
|
||||
include <abstractions/bus/org.freedesktop.NetworkManager>
|
||||
|
||||
dbus receive bus=system path=/org/freedesktop/NetworkManager/ActiveConnection/@{int}
|
||||
interface=org.freedesktop.NetworkManager.Connection.Active
|
||||
member=StateChanged
|
||||
peer=(name=:*, label=NetworkManager),
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
include if exists <local/nm-online>
|
||||
|
@ -66,7 +66,7 @@ profile systemd-logind @{exec_path} flags=(attach_disconnected,complain) {
|
||||
@{run}/udev/static_node-tags/uaccess/ r,
|
||||
|
||||
@{run}/udev/data/+backlight:* r,
|
||||
@{run}/udev/data/+drm:card[0-9]-* r, # For screen outputs
|
||||
@{run}/udev/data/+drm:card@{int}-* r, # For screen outputs
|
||||
@{run}/udev/data/+input:input@{int} r, # for mouse, keyboard, touchpad
|
||||
@{run}/udev/data/+pci:* r,
|
||||
@{run}/udev/data/c10:@{int} r, # For non-serial mice, misc features
|
||||
|
@ -56,7 +56,7 @@ profile subiquity-console-conf @{exec_path} {
|
||||
|
||||
@{run}/udev/data/+acpi:* r,
|
||||
@{run}/udev/data/+dmi* r,
|
||||
@{run}/udev/data/+drm* r,
|
||||
@{run}/udev/data/+drm:card@{int}-* r, # For screen outputs
|
||||
@{run}/udev/data/+input:input@{int} r, # for mouse, keyboard, touchpad
|
||||
@{run}/udev/data/+leds:* r,
|
||||
@{run}/udev/data/+pci:* r,
|
||||
|
@ -59,6 +59,7 @@ profile update-manager @{exec_path} flags=(attach_disconnected) {
|
||||
/etc/gtk-3.0/settings.ini r,
|
||||
/etc/pulse/client.conf r,
|
||||
/etc/pulse/client.conf.d/{,**} r,
|
||||
/etc/ubuntu-advantage/uaclient.conf r,
|
||||
/etc/update-manager/{,**} r,
|
||||
|
||||
/boot/ r,
|
||||
@ -78,9 +79,9 @@ profile update-manager @{exec_path} flags=(attach_disconnected) {
|
||||
|
||||
@{run}/systemd/inhibit/*.ref w,
|
||||
|
||||
@{PROC}/@{pids}/mountinfo r,
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
owner @{PROC}/@{pid}/mounts r,
|
||||
@{PROC}/@{pids}/mountinfo r,
|
||||
|
||||
/dev/ptmx rw,
|
||||
/dev/shm/ r,
|
||||
|
@ -162,7 +162,7 @@ profile libvirtd @{exec_path} flags=(attach_disconnected) {
|
||||
@{run}/udev/data/+backlight:* r,
|
||||
@{run}/udev/data/+bluetooth:* r,
|
||||
@{run}/udev/data/+dmi:id r,
|
||||
@{run}/udev/data/+drm:card[0-9]-* r, # for screen outputs
|
||||
@{run}/udev/data/+drm:card@{int}-* r, # For screen outputs
|
||||
@{run}/udev/data/+hid:* r,
|
||||
@{run}/udev/data/+input:input@{int} r, # For mouse, keyboard, touchpad
|
||||
@{run}/udev/data/+leds:* r,
|
||||
|
@ -48,7 +48,7 @@ profile virtnodedevd @{exec_path} flags=(attach_disconnected) {
|
||||
@{run}/udev/data/+backlight:* r,
|
||||
@{run}/udev/data/+bluetooth:* r,
|
||||
@{run}/udev/data/+dmi:id r,
|
||||
@{run}/udev/data/+drm:card[0-9]-* r, # For screen outputs
|
||||
@{run}/udev/data/+drm:card@{int}-* r, # for screen outputs
|
||||
@{run}/udev/data/+input:input@{int} r, # for mouse, keyboard, touchpad
|
||||
@{run}/udev/data/+leds:* r,
|
||||
@{run}/udev/data/+pci:* r,
|
||||
|
@ -10,6 +10,7 @@ include <tunables/global>
|
||||
profile cups-notifier-dbus @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/bus-session>
|
||||
include <abstractions/bus-system>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
||||
signal (receive) set=(term) peer=cupsd,
|
||||
|
@ -14,6 +14,7 @@ profile dleyna-server-service @{exec_path} {
|
||||
network inet6 dgram,
|
||||
network inet stream,
|
||||
network inet6 stream,
|
||||
network netlink dgram,
|
||||
network netlink raw,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
@ -45,7 +45,7 @@ profile labwc @{exec_path} flags=(attach_disconnected) {
|
||||
@{sys}/devices/**/uevent r,
|
||||
|
||||
@{run}/udev/data/+acpi:* r, # for ?
|
||||
@{run}/udev/data/+drm:card[0-9]-* r, # for screen outputs
|
||||
@{run}/udev/data/+drm:card@{int}-* r, # for screen outputs
|
||||
@{run}/udev/data/+hid:* r, # for HID-Compliant Keyboard
|
||||
@{run}/udev/data/+hid:* r, # for HID-Compliant Keyboard
|
||||
@{run}/udev/data/+pci:* r, # for VGA compatible controller
|
||||
|
@ -27,7 +27,7 @@ profile nvtop @{exec_path} flags=(attach_disconnected) {
|
||||
owner @{user_config_dirs}/nvtop/{,**} rw,
|
||||
|
||||
@{run}/systemd/inhibit/*.ref r,
|
||||
@{run}/udev/data/+drm:card[0-9]-* r,
|
||||
@{run}/udev/data/+drm:card@{int}-* r, # for screen outputs
|
||||
@{run}/udev/data/+pci:* r,
|
||||
@{run}/udev/data/c226:@{int} r, # For /dev/dri/card*
|
||||
@{run}/udev/data/c@{dynamic}:@{int} r, # For dynamic assignment range 234 to 254, 384 to 511
|
||||
|
@ -19,7 +19,7 @@ profile switcheroo-control @{exec_path} flags=(attach_disconnected) {
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{run}/udev/data/+drm:card[0-9]-* r, # for screen outputs
|
||||
@{run}/udev/data/+drm:card@{int}-* r, # for screen outputs
|
||||
@{run}/udev/data/+pci:* r,
|
||||
|
||||
@{run}/udev/data/c226:@{int} r, # for /dev/dri/card*
|
||||
|
@ -50,7 +50,7 @@ profile thunderbird @{exec_path} {
|
||||
|
||||
ptrace peer=@{profile_name},
|
||||
|
||||
dbus bind bus=session name=org.mozilla.thunderbird.*,
|
||||
# dbus: own bus=session name=org.mozilla.thunderbird
|
||||
|
||||
dbus receive bus=system path=/org/freedesktop/login1
|
||||
interface=org.freedesktop.login1.Manager
|
||||
|
Loading…
Reference in New Issue
Block a user