mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
feat(profile): general update.
This commit is contained in:
parent
c622f5de93
commit
6539b713fb
@ -11,13 +11,9 @@ include <tunables/global>
|
||||
profile polkit-mate-authentication-agent @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/dconf-write>
|
||||
include <abstractions/dri-common>
|
||||
include <abstractions/dri-enumerate>
|
||||
include <abstractions/desktop>
|
||||
include <abstractions/fontconfig-cache-read>
|
||||
include <abstractions/fonts>
|
||||
include <abstractions/freedesktop.org>
|
||||
include <abstractions/gtk>
|
||||
include <abstractions/mesa>
|
||||
include <abstractions/graphics>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
||||
signal (send) set=(term, kill) peer=polkit-agent-helper,
|
||||
@ -26,19 +22,15 @@ profile polkit-mate-authentication-agent @{exec_path} {
|
||||
|
||||
@{lib}/polkit-[0-9]/polkit-agent-helper-[0-9] rPx,
|
||||
|
||||
/usr/share/X11/xkb/** r,
|
||||
|
||||
/var/lib/dbus/machine-id r,
|
||||
/etc/machine-id r,
|
||||
|
||||
owner @{HOME}/.Xauthority r,
|
||||
|
||||
owner /dev/tty@{int} rw,
|
||||
|
||||
@{PROC}/1/cgroup r,
|
||||
owner @{PROC}/@{pid}/cgroup r,
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
|
||||
owner /dev/tty@{int} rw,
|
||||
|
||||
include if exists <local/polkit-mate-authentication-agent>
|
||||
}
|
||||
|
||||
|
@ -23,7 +23,7 @@ profile xdg-dbus-proxy @{exec_path} flags=(attach_disconnected) {
|
||||
|
||||
dbus send bus=session path=/org/freedesktop/portal/desktop
|
||||
interface=org.freedesktop.portal.Realtime
|
||||
member=MakeThreadRealtimeWithPID
|
||||
member=MakeThread*
|
||||
peer=(name=org.freedesktop.portal.Desktop, label=xdg-desktop-portal),
|
||||
|
||||
@{exec_path} mr,
|
||||
|
@ -78,8 +78,8 @@ profile xdg-desktop-portal @{exec_path} flags=(attach_disconnected) {
|
||||
|
||||
/var/lib/gdm{,3}/greeter-dconf-defaults r,
|
||||
|
||||
owner @{user_config_dirs}/xdg-desktop-portal/* r,
|
||||
@{user_config_dirs}/kioslaverc r,
|
||||
owner @{user_config_dirs}/xdg-desktop-portal/* r,
|
||||
|
||||
owner @{tmp}/icon* rw,
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2024 odomingao
|
||||
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
@ -26,10 +27,10 @@ profile xdg-desktop-portal-hyprland @{exec_path} {
|
||||
owner /tmp/hypr/\#@{int} rwkl,
|
||||
owner /tmp/hypr/hyprland-share-picker.conf* rwkl,
|
||||
|
||||
/sys/devices/virtual/dmi/id/bios_vendor r,
|
||||
/sys/devices/virtual/dmi/id/board_vendor r,
|
||||
/sys/devices/virtual/dmi/id/product_name r,
|
||||
/sys/devices/virtual/dmi/id/sys_vendor r,
|
||||
@{sys}/devices/virtual/dmi/id/bios_vendor r,
|
||||
@{sys}/devices/virtual/dmi/id/board_vendor r,
|
||||
@{sys}/devices/virtual/dmi/id/product_name r,
|
||||
@{sys}/devices/virtual/dmi/id/sys_vendor r,
|
||||
|
||||
owner @{PROC}/@{pid}/cmdline r,
|
||||
|
||||
|
@ -27,54 +27,56 @@ profile gpg-agent @{exec_path} {
|
||||
owner @{HOME}/@{XDG_GPG_DIR}/*.conf r,
|
||||
owner @{HOME}/@{XDG_GPG_DIR}/private-keys-v1.d/ rw,
|
||||
owner @{HOME}/@{XDG_GPG_DIR}/private-keys-v1.d/@{hex}.key{,.tmp} rw,
|
||||
owner @{HOME}/@{XDG_GPG_DIR}/{,d.*/}S.gpg-agent{,.ssh,.browser,.extra} rw,
|
||||
owner @{HOME}/@{XDG_GPG_DIR}/{,d.@{rand}/}S.gpg-agent{,.ssh,.browser,.extra} rw,
|
||||
owner @{HOME}/@{XDG_GPG_DIR}/sshcontrol r,
|
||||
|
||||
owner @{MOUNTS}/{,/*}/@{XDG_GPG_DIR}/ rw,
|
||||
owner @{MOUNTS}/{,/*}/@{XDG_GPG_DIR}/*.conf r,
|
||||
owner @{MOUNTS}/{,/*}/@{XDG_GPG_DIR}/private-keys-v1.d/ rw,
|
||||
owner @{MOUNTS}/{,/*}/@{XDG_GPG_DIR}/private-keys-v1.d/@{hex}.key{,.tmp} rw,
|
||||
owner @{MOUNTS}/{,/*}/@{XDG_GPG_DIR}/{,d.*/}S.gpg-agent{,.ssh,.browser,.extra} rw,
|
||||
owner @{MOUNTS}/{,/*}/@{XDG_GPG_DIR}/{,d.@{rand}/}S.gpg-agent{,.ssh,.browser,.extra} rw,
|
||||
owner @{MOUNTS}/{,/*}/@{XDG_GPG_DIR}/sshcontrol r,
|
||||
|
||||
owner @{user_projects_dirs}/**/{.,}gnupg/ rw,
|
||||
owner @{user_projects_dirs}/**/{.,}gnupg/*.conf r,
|
||||
owner @{user_projects_dirs}/**/{.,}gnupg/private-keys-v1.d/ rw,
|
||||
owner @{user_projects_dirs}/**/{.,}gnupg/private-keys-v1.d/@{hex}.key{,.tmp} rw,
|
||||
owner @{user_projects_dirs}/**/{.,}gnupg/{,d.*/}S.gpg-agent{,.ssh,.browser,.extra} rw,
|
||||
owner @{user_projects_dirs}/**/{.,}gnupg/{,d.@{rand}/}S.gpg-agent{,.ssh,.browser,.extra} rw,
|
||||
owner @{user_projects_dirs}/**/{.,}gnupg/sshcontrol r,
|
||||
|
||||
owner @{run}/user/@{uid}/gnupg/ rw,
|
||||
owner @{run}/user/@{uid}/gnupg/*.conf r,
|
||||
owner @{run}/user/@{uid}/gnupg/d.@{rand}/ rw,
|
||||
owner @{run}/user/@{uid}/gnupg/d.@{rand}/S.gpg-agent{,.ssh,.browser,.extra} rw,
|
||||
owner @{run}/user/@{uid}/gnupg/private-keys-v1.d/ rw,
|
||||
owner @{run}/user/@{uid}/gnupg/private-keys-v1.d/@{hex}.key{,.tmp} rw,
|
||||
owner @{run}/user/@{uid}/gnupg/{,d.*/}S.gpg-agent{,.ssh,.browser,.extra} rw,
|
||||
owner @{run}/user/@{uid}/gnupg/S.gpg-agent{,.ssh,.browser,.extra} rw,
|
||||
owner @{run}/user/@{uid}/gnupg/sshcontrol r,
|
||||
|
||||
owner @{user_tmp_dirs}/**/{.,}gnupg/ rw,
|
||||
owner @{user_tmp_dirs}/**/{.,}gnupg/*.conf r,
|
||||
owner @{user_tmp_dirs}/**/{.,}gnupg/private-keys-v1.d/ rw,
|
||||
owner @{user_tmp_dirs}/**/{.,}gnupg/private-keys-v1.d/@{hex}.key{,.tmp} rw,
|
||||
owner @{user_tmp_dirs}/**/{.,}gnupg/{,d.*/}S.gpg-agent{,.ssh,.browser,.extra} rw,
|
||||
owner @{user_tmp_dirs}/**/{.,}gnupg/{,d.@{rand}/}S.gpg-agent{,.ssh,.browser,.extra} rw,
|
||||
owner @{user_tmp_dirs}/**/{.,}gnupg/sshcontrol r,
|
||||
|
||||
#aa:only pacman
|
||||
owner /etc/pacman.d/gnupg/ rw,
|
||||
owner /etc/pacman.d/gnupg/private-keys-v1.d/ rw,
|
||||
owner /etc/pacman.d/gnupg/private-keys-v1.d/@{hex}.key rw,
|
||||
owner /etc/pacman.d/gnupg/{,d.*/}S.gpg-agent{,.ssh,.browser,.extra} rw,
|
||||
owner /etc/pacman.d/gnupg/{,d.@{rand}/}S.gpg-agent{,.ssh,.browser,.extra} rw,
|
||||
owner /etc/pacman.d/gnupg/sshcontrol r,
|
||||
|
||||
owner /var/lib/*/.gnupg/ rw,
|
||||
owner /var/lib/*/.gnupg/private-keys-v1.d/ rw,
|
||||
owner /var/lib/*/.gnupg/private-keys-v1.d/@{hex}.key rw,
|
||||
owner /var/lib/*/.gnupg/{,d.*/}S.gpg-agent{,.ssh,.browser,.extra} rw,
|
||||
owner /var/lib/*/.gnupg/{,d.@{rand}/}S.gpg-agent{,.ssh,.browser,.extra} rw,
|
||||
owner /var/lib/*/.gnupg/sshcontrol r,
|
||||
|
||||
owner /var/lib/*/gnupg/ rw,
|
||||
owner /var/lib/*/gnupg/private-keys-v1.d/ rw,
|
||||
owner /var/lib/*/gnupg/private-keys-v1.d/@{hex}.key rw,
|
||||
owner /var/lib/*/gnupg/{,d.*/}S.gpg-agent{,.ssh,.browser,.extra} rw,
|
||||
owner /var/lib/*/gnupg/{,d.@{rand}/}S.gpg-agent{,.ssh,.browser,.extra} rw,
|
||||
owner /var/lib/*/gnupg/sshcontrol r,
|
||||
|
||||
#aa:only zypper
|
||||
|
@ -12,7 +12,6 @@ profile gvfs-udisks2-volume-monitor @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/bus-session>
|
||||
include <abstractions/bus-system>
|
||||
include <abstractions/bus/org.freedesktop.UDisks2>
|
||||
include <abstractions/bus/org.gtk.vfs.MountTracker>
|
||||
include <abstractions/dconf-write>
|
||||
include <abstractions/devices-usb>
|
||||
|
@ -43,6 +43,7 @@ profile NetworkManager @{exec_path} flags=(attach_disconnected) {
|
||||
|
||||
#aa:dbus own bus=system name=org.freedesktop.NetworkManager
|
||||
|
||||
#aa:dbus talk bus=system name=org.fedoraproject.FirewallD1 label=firewalld
|
||||
#aa:dbus talk bus=system name=org.freedesktop.nm_dispatcher label=nm-dispatcher
|
||||
#aa:dbus talk bus=system name=org.freedesktop.resolve1 label=systemd-resolved
|
||||
|
||||
@ -61,11 +62,6 @@ profile NetworkManager @{exec_path} flags=(attach_disconnected) {
|
||||
member=GetManagedObjects
|
||||
peer=(name=:*, label=bluetoothd),
|
||||
|
||||
dbus send bus=system path=/org/fedoraproject/FirewallD1
|
||||
interface=org.fedoraproject.FirewallD1.zone
|
||||
member={changeZoneOfInterface,removeInterface}
|
||||
peer=(name=org.freedesktop.DBus, label=firewalld),
|
||||
|
||||
dbus send bus=system path=/org/freedesktop
|
||||
interface=org.freedesktop.DBus.ObjectManager
|
||||
member=InterfacesAdded
|
||||
@ -134,13 +130,13 @@ profile NetworkManager @{exec_path} flags=(attach_disconnected) {
|
||||
@{sys}/devices/@{pci}/net/*/{,**} r,
|
||||
@{sys}/devices/@{pci}/usb@{int}/**/net/{,**} r,
|
||||
|
||||
owner @{PROC}/@{pid}/cmdline r,
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
@{PROC}/@{pids}/stat r,
|
||||
@{PROC}/1/environ r,
|
||||
@{PROC}/cmdline r,
|
||||
@{PROC}/sys/kernel/osrelease r,
|
||||
@{PROC}/sys/net/** rw,
|
||||
owner @{PROC}/@{pid}/cmdline r,
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
|
||||
/dev/rfkill rw,
|
||||
|
||||
|
@ -30,20 +30,7 @@ profile tailscaled @{exec_path} flags=(attach_disconnected) {
|
||||
|
||||
ptrace (read),
|
||||
|
||||
dbus send bus=system path=/org/freedesktop/resolve1
|
||||
interface=org.freedesktop.DBus.Peer
|
||||
member=Ping
|
||||
peer=(name=org.freedesktop.resolve1, label=systemd-resolved),
|
||||
|
||||
dbus send bus=system path=/org/freedesktop/resolve1
|
||||
interface=org.freedesktop.DBus.Properties
|
||||
member=Get
|
||||
peer=(name=org.freedesktop.resolve1, label=systemd-resolved),
|
||||
|
||||
dbus send bus=system path=/org/freedesktop/resolve1
|
||||
interface=org.freedesktop.resolve1.Manager
|
||||
member={FlushCaches,SetLink*}
|
||||
peer=(name=org.freedesktop.resolve1, label=systemd-resolved),
|
||||
#aa:dbus talk bus=system name=org.freedesktop.resolve1 label=systemd-resolved
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
|
@ -11,6 +11,9 @@ profile makepkg @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
|
||||
signal send set=winch peer=pacman,
|
||||
signal send set=winch peer=pacman//systemctl,
|
||||
|
||||
network inet stream,
|
||||
network inet6 stream,
|
||||
network inet dgram,
|
||||
@ -48,6 +51,7 @@ profile makepkg @{exec_path} {
|
||||
owner @{run}/user/@{uid}/ r,
|
||||
owner @{run}/user/@{uid}/gnupg/ r,
|
||||
owner @{run}/user/@{uid}/gnupg/d.@{rand}/ rw,
|
||||
owner @{run}/user/@{uid}/gnupg/d.@{rand}/S.gpg-agent{,.ssh,.browser,.extra} rw,
|
||||
owner @{run}/user/@{uid}/gnupg/d.@{rand}/S.scdaemon rw,
|
||||
owner @{run}/user/@{uid}/gnupg/S.scdaemon rw,
|
||||
|
||||
|
@ -37,9 +37,10 @@ profile pacman @{exec_path} flags=(attach_disconnected) {
|
||||
network netlink raw,
|
||||
network unix stream,
|
||||
|
||||
ptrace (read),
|
||||
ptrace read,
|
||||
|
||||
signal (send) set=(usr1) peer=gvfsd,
|
||||
signal send set=usr1 peer=gvfsd,
|
||||
signal receive set=winch peer=makepkg//sudo,
|
||||
|
||||
@{exec_path} mrix,
|
||||
|
||||
@ -194,6 +195,7 @@ profile pacman @{exec_path} flags=(attach_disconnected) {
|
||||
capability sys_resource,
|
||||
|
||||
signal send set=cont peer=child-pager,
|
||||
signal receive set=winch peer=makepkg//sudo,
|
||||
|
||||
@{pager_path} rPx -> child-pager,
|
||||
|
||||
|
@ -29,8 +29,8 @@ profile aa-enforce @{exec_path} {
|
||||
owner /snap/core@{int}/@{int}/etc/apparmor.d/{,**} rw,
|
||||
owner /var/lib/snapd/apparmor/{,**} rw,
|
||||
|
||||
/tmp/@{rand8} rw,
|
||||
/tmp/apparmor-bugreport-@{rand8}.txt rw,
|
||||
owner @{tmp}/@{rand8} rw,
|
||||
owner @{tmp}/apparmor-bugreport-@{rand8}.txt rw,
|
||||
|
||||
owner @{PROC}/@{pid}/fd r,
|
||||
|
||||
|
@ -35,7 +35,7 @@ profile aa-notify @{exec_path} {
|
||||
owner @{HOME}/.terminfo/@{int}/dumb r,
|
||||
|
||||
owner @{tmp}/@{rand8} rw,
|
||||
owner @{tmp}/apparmor-bugreport-*.txt rw,
|
||||
owner @{tmp}/apparmor-bugreport-@{rand8}.txt rw,
|
||||
|
||||
@{PROC}/ r,
|
||||
@{PROC}/@{pid}/stat r,
|
||||
|
@ -94,6 +94,7 @@ profile calibre @{exec_path} {
|
||||
@{PROC}/ r,
|
||||
@{PROC}/@{pids}/net/route r,
|
||||
@{PROC}/sys/fs/inotify/max_user_watches r,
|
||||
@{PROC}/sys/kernel/random/boot_id r,
|
||||
@{PROC}/sys/kernel/yama/ptrace_scope r,
|
||||
@{PROC}/vmstat r,
|
||||
owner @{PROC}/@{pid}/cmdline r,
|
||||
@ -102,24 +103,10 @@ profile calibre @{exec_path} {
|
||||
owner @{PROC}/@{pid}/mountinfo r,
|
||||
owner @{PROC}/@{pid}/mounts r,
|
||||
owner @{PROC}/@{pid}/oom_{,score_}adj rw,
|
||||
owner @{PROC}/@{pid}/stat{,m} r,
|
||||
owner @{PROC}/@{pid}/stat{,m} r,
|
||||
owner @{PROC}/@{pid}/comm r,
|
||||
owner @{PROC}/@{pid}/stat{,m} r,
|
||||
owner @{PROC}/@{pid}/comm r,
|
||||
owner @{PROC}/@{pid}/task/ r,
|
||||
owner @{PROC}/@{pid}/task/@{tid}/comm rw,
|
||||
owner @{PROC}/@{pid}/task/@{tid}/status r,
|
||||
owner @{PROC}/@{pid}/task/@{tid}/status r,
|
||||
owner @{PROC}/@{pid}/task/@{tid}/comm rw,
|
||||
deny owner @{PROC}/@{pid}/cmdline r,
|
||||
deny owner @{PROC}/@{pid}/oom_{,score_}adj rw,
|
||||
deny @{PROC}/sys/kernel/random/boot_id r,
|
||||
owner @{PROC}/@{pid}/task/@{tid}/status r,
|
||||
owner @{PROC}/@{pid}/task/@{tid}/comm rw,
|
||||
deny owner @{PROC}/@{pid}/cmdline r,
|
||||
deny owner @{PROC}/@{pid}/oom_{,score_}adj rw,
|
||||
deny @{PROC}/sys/kernel/random/boot_id r,
|
||||
|
||||
owner /dev/tty@{int} rw,
|
||||
|
||||
|
@ -13,6 +13,7 @@ profile filezilla @{exec_path} {
|
||||
include <abstractions/bus-session>
|
||||
include <abstractions/bus/org.freedesktop.Notifications>
|
||||
include <abstractions/bus/org.gnome.SessionManager>
|
||||
include <abstractions/dconf-write>
|
||||
include <abstractions/desktop>
|
||||
include <abstractions/fontconfig-cache-read>
|
||||
include <abstractions/nameservice-strict>
|
||||
@ -27,7 +28,7 @@ profile filezilla @{exec_path} {
|
||||
network netlink dgram,
|
||||
network netlink raw,
|
||||
|
||||
signal (send) set=(term, kill) peer=fzsftp,
|
||||
signal send set=(term, kill) peer=fzsftp,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@ -65,6 +66,7 @@ profile filezilla @{exec_path} {
|
||||
owner @{PROC}/@{pid}/mountinfo r,
|
||||
owner @{PROC}/@{pid}/mounts r,
|
||||
|
||||
/dev/tty rw,
|
||||
owner /dev/tty@{int} rw,
|
||||
|
||||
include if exists <local/filezilla>
|
||||
|
@ -7,7 +7,7 @@ abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{name} = {F,f}reetube{,-vue}
|
||||
@{name} = {F,f}ree{T,t}ube{,-vue}
|
||||
@{lib_dirs} = @{lib}/@{name} /opt/@{name}
|
||||
@{config_dirs} = @{user_config_dirs}/@{name}
|
||||
@{cache_dirs} = @{user_cache_dirs}/@{name}
|
||||
@ -16,11 +16,11 @@ include <tunables/global>
|
||||
profile freetube @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/audio-client>
|
||||
include <abstractions/bus-session>
|
||||
include <abstractions/bus/org.freedesktop.ScreenSaver>
|
||||
include <abstractions/bus/org.gnome.SessionManager>
|
||||
include <abstractions/common/electron>
|
||||
include <abstractions/consoles>
|
||||
include <abstractions/thumbnails-cache-read>
|
||||
include <abstractions/user-download-strict>
|
||||
|
||||
network inet dgram,
|
||||
@ -35,13 +35,8 @@ profile freetube @{exec_path} {
|
||||
|
||||
@{open_path} rPx -> child-open-strict,
|
||||
|
||||
/etc/fstab r,
|
||||
/etc/machine-id r,
|
||||
/var/lib/dbus/machine-id r,
|
||||
|
||||
owner @{run}/user/@{uid}/ r,
|
||||
|
||||
owner /dev/tty@{int} rw,
|
||||
#aa:stack X xdg-settings
|
||||
@{bin}/xdg-settings rPx -> freetube//&xdg-settings,
|
||||
|
||||
include if exists <local/freetube>
|
||||
}
|
||||
|
@ -92,14 +92,9 @@ profile git @{exec_path} flags=(attach_disconnected) {
|
||||
owner @{HOME}/.netrc r,
|
||||
owner @{user_config_dirs}/git/{,*} rw,
|
||||
|
||||
owner @{tmp}/git-difftool.*/ rw, # For diffs
|
||||
owner @{tmp}/git-difftool.*/right/{,**} rw,
|
||||
owner @{tmp}/git-difftool.*/left/{,**} rw,
|
||||
owner @{tmp}/* rw,
|
||||
owner @{tmp}/tmp*/ rw, # For TWRP-device-tree-generator
|
||||
owner @{tmp}/tmp*/** rwkl -> /tmp/tmp*/**,
|
||||
owner @{tmp}/.git_vtag_tmp@{rand6} rw, # For git log --show-signature
|
||||
owner @{tmp}/git-commit-msg-.txt rw, # For android studio
|
||||
owner @{tmp}/git-difftool.*/{,**} rw, # For diffs
|
||||
|
||||
deny owner @{code_config_dirs}/** rw,
|
||||
deny owner @{user_share_dirs}/gvfs-metadata/* r,
|
||||
@ -126,6 +121,7 @@ profile git @{exec_path} flags=(attach_disconnected) {
|
||||
|
||||
profile ssh flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
||||
network inet dgram,
|
||||
|
@ -31,11 +31,13 @@ profile signal-desktop @{exec_path} {
|
||||
|
||||
@{exec_path} mrix,
|
||||
|
||||
@{bin}/basename rix,
|
||||
# @{bin}/basename rix,
|
||||
@{bin}/getconf rix,
|
||||
@{bin}/xdg-settings rix,
|
||||
@{open_path} rPx -> child-open-strict,
|
||||
|
||||
#aa:stack X xdg-settings
|
||||
@{bin}/xdg-settings rPx -> signal-desktop//&xdg-settings,
|
||||
|
||||
audit @{lib_dirs}/chrome-sandbox rPx,
|
||||
@{lib_dirs}/chrome_crashpad_handler rix,
|
||||
|
||||
|
@ -26,6 +26,7 @@ profile telegram-desktop @{exec_path} {
|
||||
include <abstractions/qt5-shader-cache>
|
||||
include <abstractions/ssl_certs>
|
||||
include <abstractions/user-download-strict>
|
||||
include <abstractions/video>
|
||||
|
||||
network inet dgram,
|
||||
network inet6 dgram,
|
||||
@ -47,10 +48,13 @@ profile telegram-desktop @{exec_path} {
|
||||
owner @{tmp}/@{hex32}-?@{uuid}? rwk,
|
||||
audit owner /dev/shm/#@{int} rw,
|
||||
|
||||
@{sys}/kernel/mm/transparent_hugepage/enabled r,
|
||||
|
||||
owner @{PROC}/@{pid}/cmdline r,
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
owner @{PROC}/@{pid}/mountinfo r,
|
||||
owner @{PROC}/@{pid}/mounts r,
|
||||
owner @{PROC}/@{pid}/task/@{tid}/comm rw,
|
||||
|
||||
owner /dev/tty@{int} rw,
|
||||
|
||||
|
@ -10,6 +10,10 @@ include <tunables/global>
|
||||
@{exec_path} = @{bin}/udisksctl
|
||||
profile udisksctl @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/bus-system>
|
||||
include <abstractions/consoles>
|
||||
|
||||
#aa:dbus talk bus=system name=org.freedesktop.UDisks2 label=udisksd
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
|
@ -22,15 +22,22 @@ profile waybar @{exec_path} flags=(attach_disconnected) {
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/etc/machine-id r,
|
||||
|
||||
owner @{user_config_dirs}/waybar/{,**} r,
|
||||
|
||||
@{sys}/devices/virtual/dmi/id/bios_vendor r,
|
||||
@{sys}/devices/virtual/dmi/id/board_vendor r,
|
||||
@{sys}/devices/virtual/dmi/id/product_name r,
|
||||
@{sys}/devices/virtual/dmi/id/sys_vendor r,
|
||||
@{sys}/devices/system/cpu/present r,
|
||||
|
||||
@{PROC}/@{pid}/net/dev r,
|
||||
@{PROC}/spl/kstat/zfs/arcstats r,
|
||||
owner @{PROC}/@{pid}/task/@{tid}/comm rw,
|
||||
|
||||
/dev/rfkill r,
|
||||
|
||||
owner /dev/tty@{int} rw,
|
||||
|
||||
include if exists <local/waybar>
|
||||
|
@ -71,7 +71,7 @@
|
||||
@{file_explorers_names} = dolphin nautilus thunar
|
||||
|
||||
# Text editors
|
||||
@{text_editors_names} = code gedit mousepad gnome-text-editor
|
||||
@{text_editors_names} = code gedit mousepad gnome-text-editor zeditor zedit zed-cli
|
||||
|
||||
# Document viewers
|
||||
@{document_viewers_names} = evince okular *{F,f}oliate YACReader
|
||||
|
Loading…
Reference in New Issue
Block a user