mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-16 00:13:48 +01:00
d701e39939
Co-authored-by: Mikhail Morfikov <mmorfikov@gmail.com> Signed-off-by: Alexandre Pujol <alexandre@pujol.io>
39 lines
872 B
Plaintext
39 lines
872 B
Plaintext
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2020-2021 Mikhail Morfikov
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /{usr/,}bin/picom{,-trans}
|
|
profile picom @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/dri-common>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/mesa>
|
|
|
|
@{exec_path} mr,
|
|
|
|
/{usr/,}bin/sed rix,
|
|
/{usr/,}bin/xargs rix,
|
|
/{usr/,}bin/{,e}grep rix,
|
|
/{usr/,}bin/echo rix,
|
|
|
|
# For migrating from compton.
|
|
owner @{user_config_dirs}/compton.conf r,
|
|
|
|
owner @{user_config_dirs}/picom.conf r,
|
|
|
|
owner @{HOME}/.Xauthority r,
|
|
|
|
@{sys}/devices/pci[0-9]*/**/{uevent,vendor,device,subsystem_vendor,subsystem_device} r,
|
|
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
|
|
# file_inherit
|
|
owner /dev/tty[0-9]* rw,
|
|
|
|
include if exists <local/picom>
|
|
}
|