mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 00:48:10 +01:00
feat(profile): add some new profiles.
This commit is contained in:
parent
ed1ea18a9e
commit
386402ed70
6 changed files with 150 additions and 0 deletions
22
apparmor.d/groups/apt/apt-helper
Normal file
22
apparmor.d/groups/apt/apt-helper
Normal file
|
@ -0,0 +1,22 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{lib}/apt/apt-helper
|
||||
profile apt-helper @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/apt-common>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{bin}/nm-online rPx,
|
||||
@{bin}/systemctl rPx -> child-systemctl,
|
||||
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
|
||||
include if exists <local/apt-helper>
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{lib}/xdg-desktop-portal-rewrite-launchers
|
||||
profile xdg-desktop-portal-rewrite-launchers @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/bus/org.gtk.vfs.MountTracker>
|
||||
include <abstractions/bus-session>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
include if exists <local/xdg-desktop-portal-rewrite-launchers>
|
||||
}
|
21
apparmor.d/profiles-g-l/jitterentropy-rngd
Normal file
21
apparmor.d/profiles-g-l/jitterentropy-rngd
Normal file
|
@ -0,0 +1,21 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{bin}/jitterentropy-rngd
|
||||
profile jitterentropy-rngd @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
||||
capability sys_admin,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{PROC}/sys/kernel/random/entropy_avail r,
|
||||
@{PROC}/sys/kernel/random/write_wakeup_threshold r,
|
||||
|
||||
include if exists <local/jitterentropy-rngd>
|
||||
}
|
22
apparmor.d/profiles-m-r/mate-notification-daemon
Normal file
22
apparmor.d/profiles-m-r/mate-notification-daemon
Normal file
|
@ -0,0 +1,22 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{lib}/mate-notification-daemon/mate-notification-daemon
|
||||
profile mate-notification-daemon @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/fonts>
|
||||
include <abstractions/dconf-write>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/usr/share/glib-2.0/schemas/gschemas.compiled r,
|
||||
|
||||
owner @{HOME}/.Xauthority r,
|
||||
|
||||
include if exists <local/mate-notification-daemon>
|
||||
}
|
64
apparmor.d/profiles-s-z/terminator
Normal file
64
apparmor.d/profiles-s-z/terminator
Normal file
|
@ -0,0 +1,64 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{bin}/terminator
|
||||
profile terminator @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
include <abstractions/dconf-write>
|
||||
include <abstractions/fonts>
|
||||
include <abstractions/freedesktop.org>
|
||||
include <abstractions/gtk>
|
||||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/openssl>
|
||||
include <abstractions/python>
|
||||
include <abstractions/X-strict>
|
||||
|
||||
capability sys_ptrace,
|
||||
|
||||
ptrace,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{bin}/ r,
|
||||
@{bin}/python3.[0-9]* rix,
|
||||
|
||||
# The shell is not confined on purpose.
|
||||
@{bin}/{,b,d,rb}ash rUx,
|
||||
@{bin}/{c,k,tc,z}sh rUx,
|
||||
|
||||
owner @{user_config_dirs}/terminator/{,**} rw,
|
||||
|
||||
owner /tmp/#@{int} rw,
|
||||
|
||||
@{PROC}/ r,
|
||||
@{PROC}/@{pid}/net/tcp{,6} r,
|
||||
@{PROC}/@{pid}/net/udp{,6} r,
|
||||
@{PROC}/@{pids}/cmdline r,
|
||||
@{PROC}/@{pids}/stat r,
|
||||
@{PROC}/1/cgroup r,
|
||||
owner @{PROC}/@{pid}/cgroup r,
|
||||
owner @{PROC}/@{pid}/environ r,
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
owner @{PROC}/@{pid}/fdinfo/@{tid} r,
|
||||
owner @{PROC}/@{pid}/io r,
|
||||
owner @{PROC}/@{pid}/mounts r,
|
||||
owner @{PROC}/@{pid}/smaps r,
|
||||
owner @{PROC}/@{pid}/smaps_rollup r,
|
||||
owner @{PROC}/@{pid}/statm r,
|
||||
owner @{PROC}/@{pid}/task/ r,
|
||||
owner @{PROC}/@{pid}/task/@{tid}/stat r,
|
||||
|
||||
/dev/ r,
|
||||
/dev/dri/card@{int} rw,
|
||||
/dev/ptmx rw,
|
||||
|
||||
deny @{user_share_dirs}/gvfs-metadata/{,*} r,
|
||||
|
||||
include if exists <local/terminator>
|
||||
}
|
|
@ -189,6 +189,7 @@ install-info complain
|
|||
irqbalance attach_disconnected,complain
|
||||
iwctl complain
|
||||
iwd complain
|
||||
jitterentropy-rngd complain
|
||||
kaccess complain
|
||||
kactivitymanagerd complain
|
||||
kalendarac complain
|
||||
|
@ -233,6 +234,7 @@ lvmconfig complain
|
|||
lvmdump complain
|
||||
lvmpolld complain
|
||||
man complain
|
||||
mate-notification-daemon complain
|
||||
mdevctl complain
|
||||
mke2fs complain
|
||||
ModemManager attach_disconnected,complain
|
||||
|
@ -380,6 +382,7 @@ systemd-userwork complain
|
|||
systemd-vconsole-setup complain
|
||||
systemd.service attach_disconnected,complain
|
||||
systemsettings complain
|
||||
terminator complain
|
||||
thunderbird complain
|
||||
thunderbird-glxtest complain
|
||||
thunderbird-vaapitest complain
|
||||
|
|
Loading…
Reference in a new issue