Create pcmanfm-qt
This commit is contained in:
parent
0f18e0a6f6
commit
6097392bb9
1 changed files with 107 additions and 0 deletions
107
apparmor.d/groups/lxqt/pcmanfm-qt
Normal file
107
apparmor.d/groups/lxqt/pcmanfm-qt
Normal file
|
|
@ -0,0 +1,107 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2020-2021 Mikhail Morfikov
|
||||
# Copyright (C) 2024 Besanon <m231009ts@mailfence.com>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{bin}/pcmanfm-qt
|
||||
profile pcmanfm-qt @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/gtk>
|
||||
include <abstractions/lxqt>
|
||||
include <abstractions/fonts>
|
||||
include <abstractions/fontconfig-cache-read>
|
||||
include <abstractions/freedesktop.org>
|
||||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/thumbnails-cache-read>
|
||||
include <abstractions/disks-read>
|
||||
include <abstractions/consoles>
|
||||
include <abstractions/qt5>
|
||||
include <abstractions/app-launcher-user>
|
||||
include <abstractions/app-launcher-root>
|
||||
|
||||
deny capability sys_nice,
|
||||
|
||||
# needs this for killing/terminating processes it initiates.
|
||||
signal (send) set=(term, kill),
|
||||
signal (receive) set=(term, kill) peer=lxqt-session,
|
||||
|
||||
network inet stream,
|
||||
network netlink raw,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{lib}/menu-cache/menu-cached rix,
|
||||
@{lib}/menu-cache/menu-cache-gen rix,
|
||||
|
||||
owner @{PROC}/@{pid}/mountinfo r,
|
||||
owner @{PROC}/@{pid}/mounts r,
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
owner @{PROC}/@{pid}/cgroup r,
|
||||
|
||||
@{sys}/bus/ r,
|
||||
@{sys}/class/ r,
|
||||
@{sys}/devices/@{pci_bus}/** r,
|
||||
@{sys}/devices/system/node/ r,
|
||||
@{sys}/devices/system/node/node@{int}/meminfo r,
|
||||
|
||||
@{sys}/fs/cgroup/{,**} r,
|
||||
|
||||
owner @{user_cache_dirs}/pcmanfm-qt/** r,
|
||||
owner @{user_config_dirs}/pcmanfm-qt/lxqt/** rw,
|
||||
owner @{user_config_dirs}/pcmanfm-qt/lxqt/recent-files.conf.lock rwk,
|
||||
owner @{user_config_dirs}/pcmanfm-qt/qterminal.org kl -> @{user_config_dirs}/qterminal.org/#@{int},
|
||||
owner @{user_config_dirs}/pcmanfm-qt/lxqt/** rwkl -> @{user_config_dirs}/pcmanfm-qt/lxqt/#@{int},
|
||||
|
||||
# To read/write files in the system. The read permission is granted for all files, the write
|
||||
# permission only for the owner. Also, dirs like /dev/, /efi/, /proc/, /sys/ are not included in
|
||||
# the list.
|
||||
/ r,
|
||||
/boot/ r,
|
||||
/boot/** r,
|
||||
owner /boot/** rw,
|
||||
/etc/ r,
|
||||
/etc/** r,
|
||||
owner /etc/** rw,
|
||||
/home/ r,
|
||||
/home/** r,
|
||||
/home/** rw,
|
||||
/lost+found/ r,
|
||||
/lost+found/** r,
|
||||
owner /lost+found/** rw,
|
||||
@{MOUNTS}/ r,
|
||||
@{MOUNTS}/** r,
|
||||
owner @{MOUNTS}/** rw,
|
||||
/opt/ r,
|
||||
/opt/** r,
|
||||
owner /opt/** rw,
|
||||
/root/ r,
|
||||
/root/** r,
|
||||
owner /root/** rw,
|
||||
@{run}/ r,
|
||||
@{run}/** r,
|
||||
owner @{run}/** rw,
|
||||
/srv/ r,
|
||||
/srv/** r,
|
||||
owner /srv/** rw,
|
||||
/tmp/ r,
|
||||
/tmp/** r,
|
||||
owner /tmp/** rw,
|
||||
/usr/ r,
|
||||
/usr/** r,
|
||||
owner /usr/** rw,
|
||||
/var/ r,
|
||||
/var/** r,
|
||||
owner /var/** rw,
|
||||
|
||||
|
||||
deny capability dac_read_search,
|
||||
deny capability dac_override,
|
||||
|
||||
include if exists <local/pcmanfm-qt>
|
||||
}
|
||||
|
||||
# vim:syntax=apparmor
|
||||
Loading…
Add table
Add a link
Reference in a new issue