mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
feat(profiles): general update.
This commit is contained in:
parent
0837c158cb
commit
1fa427ca81
8 changed files with 34 additions and 27 deletions
|
@ -24,6 +24,7 @@ profile gnome-calendar @{exec_path} {
|
|||
@{exec_path} mr,
|
||||
|
||||
/usr/share/egl/{,**} r,
|
||||
/usr/share/evolution-data-server/{,**} r,
|
||||
/usr/share/glib-2.0/schemas/gschemas.compiled r,
|
||||
/usr/share/libgweather/Locations.xml r,
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ include <tunables/global>
|
|||
@{exec_path} = /{usr/,}bin/tailscale
|
||||
profile tailscale @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
||||
ptrace (read),
|
||||
|
||||
|
@ -26,6 +27,7 @@ profile tailscale @{exec_path} {
|
|||
|
||||
@{PROC}/ r,
|
||||
@{PROC}/@{pids}/stat r,
|
||||
@{PROC}/sys/net/core/somaxconn r,
|
||||
|
||||
include if exists <local/tailscale>
|
||||
}
|
|
@ -70,6 +70,7 @@ profile pacman @{exec_path} {
|
|||
/{usr/,}bin/ln rix,
|
||||
/{usr/,}bin/perl rix,
|
||||
/{usr/,}bin/pkill rix,
|
||||
/{usr/,}bin/cp rix,
|
||||
/{usr/,}bin/rm rix,
|
||||
/{usr/,}bin/sed rix,
|
||||
/{usr/,}bin/setcap rix,
|
||||
|
@ -129,13 +130,14 @@ profile pacman @{exec_path} {
|
|||
owner /tmp/checkup-db-[0-9]*/sync/{,*.db*} rw,
|
||||
owner /tmp/checkup-db-[0-9]*/db.lck rw,
|
||||
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
owner @{PROC}/@{pid}/mounts r,
|
||||
@{PROC}/@{pids}/ r,
|
||||
@{PROC}/@{pids}/stat r,
|
||||
@{PROC}/@{pids}/cmdline r,
|
||||
@{PROC}/@{pids}/stat r,
|
||||
@{PROC}/1/environ r,
|
||||
@{PROC}/sys/kernel/osrelease r,
|
||||
@{PROC}/uptime r,
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
owner @{PROC}/@{pid}/mounts r,
|
||||
|
||||
@{run}/utmp rk,
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2021 Mikhail Morfikov
|
||||
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
@ -21,10 +22,8 @@ profile coredumpctl @{exec_path} flags=(complain) {
|
|||
/{usr/,}bin/more rPx -> child-pager,
|
||||
/{usr/,}bin/pager rPx -> child-pager,
|
||||
|
||||
owner /tmp/*.coredump w,
|
||||
owner /tmp/core.* w,
|
||||
|
||||
owner /var/tmp/coredump-* rw,
|
||||
/var/lib/dbus/machine-id r,
|
||||
/etc/machine-id r,
|
||||
|
||||
/var/lib/systemd/coredump/core.*.[0-9]*.@{hex}.[0-9]*.[0-9]*.zst r,
|
||||
|
||||
|
@ -34,39 +33,38 @@ profile coredumpctl @{exec_path} flags=(complain) {
|
|||
/{run,var}/log/journal/@{hex}/system.journal* r,
|
||||
/{run,var}/log/journal/@{hex}/system@@{hex}.journal* r,
|
||||
|
||||
owner @{PROC}/@{pid}/cgroup r,
|
||||
owner /tmp/*.coredump w,
|
||||
owner /tmp/core.* w,
|
||||
owner /var/tmp/coredump-* rw,
|
||||
|
||||
@{PROC}/1/cgroup r,
|
||||
|
||||
/var/lib/dbus/machine-id r,
|
||||
/etc/machine-id r,
|
||||
|
||||
owner @{PROC}/@{pid}/cgroup r,
|
||||
|
||||
profile gdb {
|
||||
include <abstractions/base>
|
||||
include <abstractions/python>
|
||||
include <abstractions/openssl>
|
||||
include <abstractions/python>
|
||||
|
||||
ptrace (trace),
|
||||
|
||||
/{usr/,}bin/gdb mr,
|
||||
|
||||
/{usr/,}bin/iconv rix,
|
||||
/{usr/,}bin/* r,
|
||||
/{usr/,}sbin/* r,
|
||||
|
||||
@{PROC}/@{pids}/fd/ r,
|
||||
/{usr/,}{s,}bin/* r,
|
||||
|
||||
/etc/inputrc r,
|
||||
|
||||
/etc/gdb/** r,
|
||||
/usr/share/gdb/{,**} r,
|
||||
/usr/share/glib-2.0/gdb/{,**} r,
|
||||
/usr/share/gcc-[0-9]*/python/{,**} r,
|
||||
/usr/share/gcc/** r,
|
||||
/usr/share/gdb/{,**} r,
|
||||
/usr/share/glib-2.0/gdb/{,**} r,
|
||||
/usr/share/terminfo/x/xterm-256color r,
|
||||
|
||||
/etc/inputrc r,
|
||||
/etc/gdb/** r,
|
||||
|
||||
owner /var/tmp/coredump-* rw,
|
||||
|
||||
@{PROC}/@{pids}/fd/ r,
|
||||
|
||||
# Silencer
|
||||
deny /usr/share/** w,
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ profile systemd-backlight @{exec_path} {
|
|||
@{run}/udev/data/+leds:*backlight* r,
|
||||
|
||||
@{sys}/bus/ r,
|
||||
@{sys}/bus/pci/devices/ r,
|
||||
@{sys}/class/ r,
|
||||
@{sys}/class/backlight/ r,
|
||||
|
||||
|
@ -34,7 +35,7 @@ profile systemd-backlight @{exec_path} {
|
|||
@{sys}/devices/pci[0-9]*/**/drm/card[0-9]*/**/{max_brightness,actual_brightness} r,
|
||||
@{sys}/devices/pci[0-9]*/**/drm/card[0-9]*/**/{uevent,type} r,
|
||||
@{sys}/devices/pci[0-9]*/**/drm/card[0-9]*/**/brightness rw,
|
||||
@{sys}/devices/pci[0-9]*/*/uevent r,
|
||||
@{sys}/devices/pci[0-9]*/**/uevent r,
|
||||
|
||||
@{sys}/devices/platform/**/leds/*backlight*/brightness rw,
|
||||
@{sys}/devices/platform/**/leds/*backlight*/max_brightness r,
|
||||
|
|
|
@ -83,6 +83,7 @@ profile git @{exec_path} {
|
|||
|
||||
owner @{user_projects_dirs}/ rw,
|
||||
owner @{user_projects_dirs}/** rwkl -> @{user_projects_dirs}/**,
|
||||
owner @{user_projects_dirs}/**/.git/hooks/* rix,
|
||||
owner @{user_cache_dirs}/*/ rw,
|
||||
owner @{user_cache_dirs}/*/** rwkl -> @{user_cache_dirs}/*/**,
|
||||
owner /tmp/** rwkl -> /tmp/**,
|
||||
|
|
|
@ -62,8 +62,9 @@ profile sudo @{exec_path} {
|
|||
/etc/sudoers r,
|
||||
/etc/sudoers.d/{,*} r,
|
||||
|
||||
/var/log/sudo.log wk,
|
||||
/var/db/sudo/lectured/ r,
|
||||
/var/lib/sudo/lectured/ r,
|
||||
/var/log/sudo.log wk,
|
||||
owner /var/lib/sudo/lectured/* rw,
|
||||
|
||||
owner @{HOME}/.sudo_as_admin_successful rw,
|
||||
|
|
|
@ -45,6 +45,7 @@ profile virt-manager @{exec_path} flags=(attach_disconnected) {
|
|||
/{usr/,}bin/setfacl rix,
|
||||
|
||||
/{usr/,}{s,}bin/libvirtd rPx,
|
||||
/{usr/,}bin/ssh rPx,
|
||||
/{usr/,}lib/spice-client-glib-usb-acl-helper rPx,
|
||||
|
||||
/usr/share/egl/{,**} r,
|
||||
|
|
Loading…
Reference in a new issue