mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 07:54:17 +01:00
Update profiles.
This commit is contained in:
parent
355235b3cc
commit
86ac65eb5c
@ -13,6 +13,8 @@ profile glib-pacrunner @{exec_path} {
|
||||
|
||||
network inet dgram,
|
||||
network inet6 dgram,
|
||||
network inet stream,
|
||||
network inet6 stream,
|
||||
network netlink raw,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
@ -10,7 +10,7 @@ include <tunables/global>
|
||||
@{exec_path} = /{usr/,}bin/gio
|
||||
@{exec_path} += /{usr/,}bin/gio-launch-desktop
|
||||
@{exec_path} += /{usr/,}lib/@{multiarch}/glib-[0-9]*/gio-launch-desktop
|
||||
profile gio-launch-desktop @{exec_path} {
|
||||
profile gio-launch-desktop @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/app-launcher-user>
|
||||
include <abstractions/consoles>
|
||||
@ -34,5 +34,7 @@ profile gio-launch-desktop @{exec_path} {
|
||||
# Required by many gio command
|
||||
owner @{HOME}/{,**} rw,
|
||||
|
||||
/dev/dri/card[0-9]* rw,
|
||||
|
||||
include if exists <local/gio-launch-desktop>
|
||||
}
|
||||
|
@ -12,6 +12,7 @@ profile gsd-housekeeping @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/thumbnails-cache-read>
|
||||
|
||||
signal (receive) set=(term, hup) peer=gdm*,
|
||||
signal (receive) set=(term, hup) peer=gnome*,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
|
@ -34,6 +34,7 @@ profile nautilus @{exec_path} flags=(attach_disconnected) {
|
||||
deny /opt rw,
|
||||
deny /root rw,
|
||||
deny /tmp/.* rw,
|
||||
deny /tmp/.*/ rw,
|
||||
|
||||
include <abstractions/dconf>
|
||||
owner @{run}/user/@{uid}/dconf/ rw,
|
||||
|
@ -1,5 +1,6 @@
|
||||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2021 Mikhail Morfikov
|
||||
# 2021 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
@ -22,6 +23,7 @@ profile gvfsd @{exec_path} {
|
||||
/usr/share/gvfs/{,**} r,
|
||||
|
||||
owner @{run}/user/@{uid}/gvfs/ rw,
|
||||
owner @{run}/user/@{uid}/gvfsd/ rw,
|
||||
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
|
||||
|
@ -12,6 +12,11 @@ profile systemd-hwdb @{exec_path} {
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/usr/lib/udev/.#hwdb.bin[0-9a-zA-Z]* w,
|
||||
/usr/lib/udev/hwdb.bin w,
|
||||
|
||||
/etc/udev/hwdb.d/{,*} r,
|
||||
|
||||
owner @{PROC}/@{pid}/stat r,
|
||||
|
||||
include if exists <local/systemd-hwdb>
|
||||
|
@ -56,6 +56,7 @@ profile dkms @{exec_path} {
|
||||
/{usr/,}lib/linux-kbuild-*/scripts/** rix,
|
||||
/{usr/,}lib/modules/*/build/scripts/** rix,
|
||||
/{usr/,}lib/linux-kbuild-*/tools/objtool/objtool rix,
|
||||
/{usr/,}lib/modules/*/build/tools/objtool/objtool rix,
|
||||
|
||||
/ r,
|
||||
/{usr/,}lib/modules/*/updates/ rw,
|
||||
|
@ -26,6 +26,9 @@ profile kmod @{exec_path} {
|
||||
# than to standard error.
|
||||
capability syslog,
|
||||
|
||||
unix (receive) type=stream peer=(label=depmod),
|
||||
unix (receive) type=stream peer=(label=modprobe),
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/{usr/,}lib/modprobe.d/{,*.conf} r,
|
||||
|
Loading…
Reference in New Issue
Block a user