mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 16:03:51 +01:00
feat(profiles): general update.
This commit is contained in:
parent
c0e62f30bb
commit
23642eb0be
@ -18,6 +18,7 @@ profile cron-apport @{exec_path} {
|
|||||||
|
|
||||||
/ r,
|
/ r,
|
||||||
/var/crash/ r,
|
/var/crash/ r,
|
||||||
|
/var/crash/*.crash w,
|
||||||
|
|
||||||
include if exists <local/cron-apport>
|
include if exists <local/cron-apport>
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,8 @@ profile gnome-characters-backgroudservice @{exec_path} {
|
|||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
/{usr/,}bin/gjs-console rix,
|
||||||
|
|
||||||
/usr/share/icons/{,**} r,
|
/usr/share/icons/{,**} r,
|
||||||
/usr/share/themes/{,**} r,
|
/usr/share/themes/{,**} r,
|
||||||
/usr/share/X11/xkb/{,**} r,
|
/usr/share/X11/xkb/{,**} r,
|
||||||
|
@ -37,7 +37,7 @@ profile ModemManager @{exec_path} flags=(attach_disconnected) {
|
|||||||
|
|
||||||
dbus receive bus=system path=/org/freedesktop/login[0-9]
|
dbus receive bus=system path=/org/freedesktop/login[0-9]
|
||||||
interface=org.freedesktop.login[0-9].Manager
|
interface=org.freedesktop.login[0-9].Manager
|
||||||
member={UserNew,SessionNew,PrepareForShutdown,SeatNew},
|
member={UserNew,SessionNew,PrepareForShutdown,SeatNew,UserRemoved,SessionRemoved},
|
||||||
|
|
||||||
dbus bind bus=system
|
dbus bind bus=system
|
||||||
name=org.freedesktop.ModemManager[0-9],
|
name=org.freedesktop.ModemManager[0-9],
|
||||||
|
@ -29,7 +29,7 @@ profile systemd-logind @{exec_path} flags=(attach_disconnected,complain) {
|
|||||||
|
|
||||||
dbus (send,receive) bus=system path=/org/freedesktop/systemd[0-9]
|
dbus (send,receive) bus=system path=/org/freedesktop/systemd[0-9]
|
||||||
interface=org.freedesktop.systemd[0-9].Manager
|
interface=org.freedesktop.systemd[0-9].Manager
|
||||||
member={StartUnit,StartTransientUnit,Subscribe,JobRemoved,UnitRemoved,Reloading,Subscribe},
|
member={StartUnit,StartTransientUnit,Subscribe,JobRemoved,UnitRemoved,Reloading,Subscribe,StopUnit},
|
||||||
|
|
||||||
dbus (send,receive) bus=system path=/org/freedesktop/systemd[0-9]/{unit,job}/**
|
dbus (send,receive) bus=system path=/org/freedesktop/systemd[0-9]/{unit,job}/**
|
||||||
interface=org.freedesktop.DBus.Properties
|
interface=org.freedesktop.DBus.Properties
|
||||||
|
@ -9,6 +9,7 @@ include <tunables/global>
|
|||||||
@{exec_path} = /{usr/,}bin/systemd-machine-id-setup
|
@{exec_path} = /{usr/,}bin/systemd-machine-id-setup
|
||||||
profile systemd-machine-id-setup @{exec_path} {
|
profile systemd-machine-id-setup @{exec_path} {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
|
include <abstractions/consoles>
|
||||||
|
|
||||||
capability dac_override,
|
capability dac_override,
|
||||||
|
|
||||||
|
@ -15,6 +15,11 @@ profile do-release-upgrade @{exec_path} {
|
|||||||
include <abstractions/python>
|
include <abstractions/python>
|
||||||
include <abstractions/ssl_certs>
|
include <abstractions/ssl_certs>
|
||||||
|
|
||||||
|
network inet dgram,
|
||||||
|
network inet6 dgram,
|
||||||
|
network inet stream,
|
||||||
|
network inet6 stream,
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
/{usr/,}bin/dpkg rPx -> child-dpkg,
|
/{usr/,}bin/dpkg rPx -> child-dpkg,
|
||||||
@ -27,6 +32,7 @@ profile do-release-upgrade @{exec_path} {
|
|||||||
/etc/update-manager/{,**} r,
|
/etc/update-manager/{,**} r,
|
||||||
|
|
||||||
/var/lib/update-manager/meta-release-* rw,
|
/var/lib/update-manager/meta-release-* rw,
|
||||||
|
/var/cache/apt/pkgcache.bin{,.*} rw,
|
||||||
|
|
||||||
owner @{PROC}/@{pid}/fd/ r,
|
owner @{PROC}/@{pid}/fd/ r,
|
||||||
|
|
||||||
|
@ -35,8 +35,7 @@ profile boltd @{exec_path} {
|
|||||||
@{sys}/devices/pci[0-9]*/**/domain[0-9]*/**/{vendor,device}_name r,
|
@{sys}/devices/pci[0-9]*/**/domain[0-9]*/**/{vendor,device}_name r,
|
||||||
@{sys}/devices/pci[0-9]*/**/domain[0-9]*/iommu_dma_protection r,
|
@{sys}/devices/pci[0-9]*/**/domain[0-9]*/iommu_dma_protection r,
|
||||||
@{sys}/devices/platform/**/uevent r,
|
@{sys}/devices/platform/**/uevent r,
|
||||||
@{sys}/devices/virtual/dmi/id/product_name r,
|
@{sys}/devices/virtual/dmi/id/{sys_vendor,product_version,product_name} r,
|
||||||
@{sys}/devices/virtual/dmi/id/sys_vendor r,
|
|
||||||
|
|
||||||
include if exists <local/boltd>
|
include if exists <local/boltd>
|
||||||
}
|
}
|
@ -13,12 +13,11 @@ profile ip @{exec_path} flags=(attach_disconnected) {
|
|||||||
include <abstractions/consoles>
|
include <abstractions/consoles>
|
||||||
|
|
||||||
capability net_admin,
|
capability net_admin,
|
||||||
|
capability sys_admin,
|
||||||
capability sys_module,
|
capability sys_module,
|
||||||
|
|
||||||
network netlink raw,
|
network netlink raw,
|
||||||
|
|
||||||
@{exec_path} mrix,
|
|
||||||
|
|
||||||
mount options=(rw, rshared) -> /{var/,}run/netns/,
|
mount options=(rw, rshared) -> /{var/,}run/netns/,
|
||||||
mount options=(rw, rslave) -> /,
|
mount options=(rw, rslave) -> /,
|
||||||
mount options=(rw, bind) / -> /{var/,}run/netns/*,
|
mount options=(rw, bind) / -> /{var/,}run/netns/*,
|
||||||
@ -28,12 +27,15 @@ profile ip @{exec_path} flags=(attach_disconnected) {
|
|||||||
umount @{run}/netns/*,
|
umount @{run}/netns/*,
|
||||||
umount /sys/,
|
umount /sys/,
|
||||||
|
|
||||||
/etc/iproute2/{,**} r,
|
@{exec_path} mrix,
|
||||||
|
|
||||||
/ r,
|
/ r,
|
||||||
|
|
||||||
|
/etc/iproute2/{,**} r,
|
||||||
|
/etc/netns/*/ r,
|
||||||
|
|
||||||
owner @{run}/netns/ rw,
|
owner @{run}/netns/ rw,
|
||||||
@{run}/netns/* rw,
|
@{run}/netns/* rw,
|
||||||
/etc/netns/*/ r,
|
|
||||||
|
|
||||||
owner @{PROC}/@{pid}/cgroup r,
|
owner @{PROC}/@{pid}/cgroup r,
|
||||||
owner @{PROC}/@{pid}/net/dev_mcast r,
|
owner @{PROC}/@{pid}/net/dev_mcast r,
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
# apparmor.d - Full set of apparmor profiles
|
# apparmor.d - Full set of apparmor profiles
|
||||||
# Copyright (C) 2019-2021 Mikhail Morfikov
|
# Copyright (C) 2019-2021 Mikhail Morfikov
|
||||||
|
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
|
||||||
# SPDX-License-Identifier: GPL-2.0-only
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
@{JEKYLL_DIR}=@{HOME}/morfikov.github.io
|
|
||||||
|
|
||||||
abi <abi/3.0>,
|
abi <abi/3.0>,
|
||||||
|
|
||||||
include <tunables/global>
|
include <tunables/global>
|
||||||
@ -17,19 +16,18 @@ profile jekyll @{exec_path} {
|
|||||||
@{exec_path} r,
|
@{exec_path} r,
|
||||||
/{usr/,}bin/ruby[0-9].[0-9]* rix,
|
/{usr/,}bin/ruby[0-9].[0-9]* rix,
|
||||||
|
|
||||||
/usr/share/rubygems-integration/*/specifications/ r,
|
|
||||||
/usr/share/rubygems-integration/*/specifications/*.gemspec rwk,
|
|
||||||
|
|
||||||
/{usr/,}lib/ruby/gems/*/specifications/ r,
|
/{usr/,}lib/ruby/gems/*/specifications/ r,
|
||||||
/{usr/,}lib/ruby/gems/*/specifications/** r,
|
/{usr/,}lib/ruby/gems/*/specifications/** r,
|
||||||
/{usr/,}lib/ruby/gems/*/specifications/**.gemspec rwk,
|
/{usr/,}lib/ruby/gems/*/specifications/**.gemspec rwk,
|
||||||
|
|
||||||
|
/usr/share/rubygems-integration/*/specifications/ r,
|
||||||
|
/usr/share/rubygems-integration/*/specifications/*.gemspec rwk,
|
||||||
|
|
||||||
/usr/share/ruby-addressable/unicode.data r,
|
/usr/share/ruby-addressable/unicode.data r,
|
||||||
|
|
||||||
# Jekyll dir
|
owner @{user_projects_dirs}/{,**} r,
|
||||||
owner @{JEKYLL_DIR}/{,**} r,
|
owner @{user_projects_dirs}/**/_site/{,**} rw,
|
||||||
owner @{JEKYLL_DIR}/_site/{,**} rw,
|
owner @{user_projects_dirs}/**/.sass-cache/** rw,
|
||||||
owner @{JEKYLL_DIR}/.sass-cache/** rw,
|
|
||||||
|
|
||||||
@{PROC}/version r,
|
@{PROC}/version r,
|
||||||
|
|
||||||
|
@ -82,6 +82,7 @@ profile run-parts @{exec_path} {
|
|||||||
/etc/network/if-up.d/ifenslave rPUx,
|
/etc/network/if-up.d/ifenslave rPUx,
|
||||||
/etc/network/if-up.d/openvpn rPUx,
|
/etc/network/if-up.d/openvpn rPUx,
|
||||||
/etc/network/if-up.d/postfix rPUx,
|
/etc/network/if-up.d/postfix rPUx,
|
||||||
|
/etc/network/if-up.d/ubuntu-fan rPx,
|
||||||
/etc/network/if-up.d/wpasupplicant rPUx,
|
/etc/network/if-up.d/wpasupplicant rPUx,
|
||||||
|
|
||||||
# Motd
|
# Motd
|
||||||
|
@ -33,6 +33,7 @@ profile sudo @{exec_path} {
|
|||||||
|
|
||||||
ptrace (read),
|
ptrace (read),
|
||||||
|
|
||||||
|
signal (send) peer=unconfined,
|
||||||
signal (send) set=(cont,hup) peer=su,
|
signal (send) set=(cont,hup) peer=su,
|
||||||
|
|
||||||
dbus send bus=system path=/org/freedesktop/login[0-9]
|
dbus send bus=system path=/org/freedesktop/login[0-9]
|
||||||
|
@ -45,6 +45,7 @@ profile wireplumber @{exec_path} {
|
|||||||
@{sys}/devices/**/sound/**/uevent r,
|
@{sys}/devices/**/sound/**/uevent r,
|
||||||
@{sys}/devices/pci[0-9]*/**/modalias r,
|
@{sys}/devices/pci[0-9]*/**/modalias r,
|
||||||
@{sys}/devices/pci[0-9]*/**/video4linux/video[0-9]*/uevent r,
|
@{sys}/devices/pci[0-9]*/**/video4linux/video[0-9]*/uevent r,
|
||||||
|
@{sys}/devices/virtual/dmi/id/{sys_vendor,product_version,product_name} r,
|
||||||
|
|
||||||
/dev/snd/ r,
|
/dev/snd/ r,
|
||||||
/dev/video[0-9]* rw,
|
/dev/video[0-9]* rw,
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2022 Jeroen Rijken
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
abi <abi/3.0>,
|
abi <abi/3.0>,
|
||||||
|
|
||||||
include <tunables/global>
|
include <tunables/global>
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2022 Jeroen Rijken
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
abi <abi/3.0>,
|
abi <abi/3.0>,
|
||||||
|
|
||||||
include <tunables/global>
|
include <tunables/global>
|
||||||
@ -10,17 +14,18 @@ profile zpool @{exec_path} flags=(complain) {
|
|||||||
capability sys_admin,
|
capability sys_admin,
|
||||||
|
|
||||||
@{exec_path} rm,
|
@{exec_path} rm,
|
||||||
|
|
||||||
/{usr/,}bin/{,ba,da}sh rix,
|
/{usr/,}bin/{,ba,da}sh rix,
|
||||||
/{usr/,}{local/,}lib/zfs-linux/zpool.d/* rix,
|
/{usr/,}{local/,}lib/zfs-linux/zpool.d/* rix,
|
||||||
|
|
||||||
/etc/hostid r,
|
/etc/hostid r,
|
||||||
@{PROC}/sys/kernel/spl/hostid r,
|
|
||||||
|
|
||||||
@{run}/blkid/blkid.tab rw,
|
@{run}/blkid/blkid.tab rw,
|
||||||
@{run}/blkid/blkid.tab.old l,
|
@{run}/blkid/blkid.tab.old l,
|
||||||
@{run}/blkid/blkid.tab-* rwl,
|
@{run}/blkid/blkid.tab-* rwl,
|
||||||
|
|
||||||
@{PROC}/@{pids}/mounts r,
|
@{PROC}/@{pids}/mounts r,
|
||||||
|
@{PROC}/sys/kernel/spl/hostid r,
|
||||||
|
|
||||||
/dev/pts/[0-9]* rw,
|
/dev/pts/[0-9]* rw,
|
||||||
/dev/zfs rw,
|
/dev/zfs rw,
|
||||||
|
Loading…
Reference in New Issue
Block a user