mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 07:54:17 +01:00
feat(fsp): allow signal from system-user for some user app.
This commit is contained in:
parent
3c77da8f7d
commit
62f1f7df6e
@ -21,6 +21,7 @@ profile firefox-pingsender @{exec_path} {
|
|||||||
network inet stream,
|
network inet stream,
|
||||||
network inet6 stream,
|
network inet6 stream,
|
||||||
|
|
||||||
|
signal (receive) set=(cont, term) peer=@{systemd_user},
|
||||||
signal (receive) set=(term, kill) peer=firefox,
|
signal (receive) set=(term, kill) peer=firefox,
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
@ -17,6 +17,7 @@ profile at-spi2-registryd @{exec_path} flags=(attach_disconnected) {
|
|||||||
include <abstractions/nameservice-strict>
|
include <abstractions/nameservice-strict>
|
||||||
include <abstractions/X-strict>
|
include <abstractions/X-strict>
|
||||||
|
|
||||||
|
signal (receive) set=(cont, term) peer=@{systemd_user},
|
||||||
signal (receive) set=(term hup kill) peer=@{systemd},
|
signal (receive) set=(term hup kill) peer=@{systemd},
|
||||||
signal (receive) set=(term hup kill) peer=dbus-daemon,
|
signal (receive) set=(term hup kill) peer=dbus-daemon,
|
||||||
signal (receive) set=(term hup kill) peer=gdm*,
|
signal (receive) set=(term hup kill) peer=gdm*,
|
||||||
|
@ -24,6 +24,8 @@ profile geoclue @{exec_path} flags=(attach_disconnected) {
|
|||||||
network inet6 stream,
|
network inet6 stream,
|
||||||
network netlink raw,
|
network netlink raw,
|
||||||
|
|
||||||
|
signal (receive) set=(cont, term) peer=@{systemd_user},
|
||||||
|
|
||||||
# dbus: own bus=system name=org.freedesktop.GeoClue2
|
# dbus: own bus=system name=org.freedesktop.GeoClue2
|
||||||
|
|
||||||
dbus send bus=system path=/org/freedesktop/DBus
|
dbus send bus=system path=/org/freedesktop/DBus
|
||||||
|
@ -24,6 +24,7 @@ profile polkit-kde-authentication-agent @{exec_path} flags=(attach_disconnected)
|
|||||||
network inet6 stream,
|
network inet6 stream,
|
||||||
network netlink raw,
|
network netlink raw,
|
||||||
|
|
||||||
|
signal (receive) set=(cont, term) peer=@{systemd_user},
|
||||||
signal (send) set=(term, kill) peer=polkit-agent-helper,
|
signal (send) set=(term, kill) peer=polkit-agent-helper,
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
@ -20,6 +20,8 @@ profile xdg-desktop-portal-kde @{exec_path} {
|
|||||||
network inet6 stream,
|
network inet6 stream,
|
||||||
network netlink raw,
|
network netlink raw,
|
||||||
|
|
||||||
|
signal (receive) set=(cont, term) peer=@{systemd_user},
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
/usr/share/hwdata/pnp.ids r,
|
/usr/share/hwdata/pnp.ids r,
|
||||||
|
@ -18,7 +18,7 @@ profile gnome-terminal-server @{exec_path} {
|
|||||||
include <abstractions/dconf-write>
|
include <abstractions/dconf-write>
|
||||||
include <abstractions/gnome-strict>
|
include <abstractions/gnome-strict>
|
||||||
|
|
||||||
signal (receive) set=(cont, term) peer=systemd-user,
|
signal (receive) set=(cont, term) peer=@{systemd_user},
|
||||||
signal (send) set=(hup) peer=htop,
|
signal (send) set=(hup) peer=htop,
|
||||||
signal (send) set=(term hup kill) peer=unconfined,
|
signal (send) set=(term hup kill) peer=unconfined,
|
||||||
|
|
||||||
|
@ -17,6 +17,8 @@ profile DiscoverNotifier @{exec_path} {
|
|||||||
network inet6 dgram,
|
network inet6 dgram,
|
||||||
network netlink dgram,
|
network netlink dgram,
|
||||||
|
|
||||||
|
signal (receive) set=(cont, term) peer=@{systemd_user},
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
/etc/flatpak/remotes.d/ r,
|
/etc/flatpak/remotes.d/ r,
|
||||||
|
@ -17,6 +17,8 @@ profile baloo @{exec_path} {
|
|||||||
|
|
||||||
network netlink raw,
|
network netlink raw,
|
||||||
|
|
||||||
|
signal (receive) set=(cont, term) peer=@{systemd_user},
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
@{lib}/baloo_file_extractor rix,
|
@{lib}/baloo_file_extractor rix,
|
||||||
|
@ -15,6 +15,8 @@ profile gmenudbusmenuproxy @{exec_path} {
|
|||||||
|
|
||||||
ptrace (read) peer=kded5,
|
ptrace (read) peer=kded5,
|
||||||
|
|
||||||
|
signal (receive) set=(cont, term) peer=@{systemd_user},
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
/etc/machine-id r,
|
/etc/machine-id r,
|
||||||
|
@ -13,6 +13,8 @@ profile kaccess @{exec_path} {
|
|||||||
include <abstractions/kde-strict>
|
include <abstractions/kde-strict>
|
||||||
include <abstractions/nameservice-strict>
|
include <abstractions/nameservice-strict>
|
||||||
|
|
||||||
|
signal (receive) set=(cont, term) peer=@{systemd_user},
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
@{bin}/gsettings rPx,
|
@{bin}/gsettings rPx,
|
||||||
|
@ -14,6 +14,8 @@ profile kactivitymanagerd @{exec_path} {
|
|||||||
include <abstractions/user-read>
|
include <abstractions/user-read>
|
||||||
include <abstractions/kde-strict>
|
include <abstractions/kde-strict>
|
||||||
|
|
||||||
|
signal (receive) set=(cont, term) peer=@{systemd_user},
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
/etc/xdg/menus/{,*/} r,
|
/etc/xdg/menus/{,*/} r,
|
||||||
|
@ -17,6 +17,8 @@ profile kde-powerdevil @{exec_path} flags=(attach_disconnected mediate_deleted)
|
|||||||
|
|
||||||
network netlink raw,
|
network netlink raw,
|
||||||
|
|
||||||
|
signal (receive) set=(cont, term) peer=@{systemd_user},
|
||||||
|
|
||||||
@{exec_path} mrix,
|
@{exec_path} mrix,
|
||||||
|
|
||||||
@{sh_path} rix,
|
@{sh_path} rix,
|
||||||
|
@ -32,6 +32,7 @@ profile kded5 @{exec_path} {
|
|||||||
|
|
||||||
ptrace (read),
|
ptrace (read),
|
||||||
|
|
||||||
|
signal (receive) set=(cont, term) peer=@{systemd_user},
|
||||||
signal (send) set=hup peer=xsettingsd,
|
signal (send) set=hup peer=xsettingsd,
|
||||||
|
|
||||||
dbus receive bus=system path=/org/freedesktop/NetworkManager/SecretAgent
|
dbus receive bus=system path=/org/freedesktop/NetworkManager/SecretAgent
|
||||||
|
@ -25,9 +25,10 @@ profile kscreenlocker-greet @{exec_path} {
|
|||||||
|
|
||||||
network netlink raw,
|
network netlink raw,
|
||||||
|
|
||||||
signal (send) peer=kcheckpass,
|
signal (receive) set=(cont, term) peer=@{systemd_user},
|
||||||
signal (receive) set=(usr1, term) peer=ksmserver,
|
|
||||||
signal (receive) set=(term) peer=kwin_wayland,
|
signal (receive) set=(term) peer=kwin_wayland,
|
||||||
|
signal (receive) set=(usr1, term) peer=ksmserver,
|
||||||
|
signal (send) peer=kcheckpass,
|
||||||
|
|
||||||
unix (send,receive) type=stream peer=(label="ksmserver",addr=none),
|
unix (send,receive) type=stream peer=(label="ksmserver",addr=none),
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@ profile ksmserver @{exec_path} flags=(attach_disconnected,mediate_deleted) {
|
|||||||
include <abstractions/kde-strict>
|
include <abstractions/kde-strict>
|
||||||
include <abstractions/nameservice-strict>
|
include <abstractions/nameservice-strict>
|
||||||
|
|
||||||
|
signal (receive) set=(cont, term) peer=@{systemd_user},
|
||||||
signal (send) set=(usr1,term) peer=kscreenlocker-greet,
|
signal (send) set=(usr1,term) peer=kscreenlocker-greet,
|
||||||
|
|
||||||
unix (send, receive) type=stream peer=(label="kscreenlocker-greet",addr=none),
|
unix (send, receive) type=stream peer=(label="kscreenlocker-greet",addr=none),
|
||||||
|
@ -19,6 +19,7 @@ profile kwin_wayland @{exec_path} flags=(attach_disconnected mediate_deleted) {
|
|||||||
|
|
||||||
ptrace (read),
|
ptrace (read),
|
||||||
|
|
||||||
|
signal (receive) set=(cont, term) peer=@{systemd_user},
|
||||||
signal (receive) set=term peer=sddm,
|
signal (receive) set=term peer=sddm,
|
||||||
signal (receive) set=(kill, term) peer=kwin_wayland_wrapper,
|
signal (receive) set=(kill, term) peer=kwin_wayland_wrapper,
|
||||||
signal (send) set=(kill, term) peer=xwayland,
|
signal (send) set=(kill, term) peer=xwayland,
|
||||||
|
@ -12,6 +12,7 @@ profile kwin_wayland_wrapper @{exec_path} {
|
|||||||
include <abstractions/wayland>
|
include <abstractions/wayland>
|
||||||
include <abstractions/X-strict>
|
include <abstractions/X-strict>
|
||||||
|
|
||||||
|
signal (receive) set=(cont, term) peer=@{systemd_user},
|
||||||
signal (send) set=(term, kill) peer=kwin_wayland,
|
signal (send) set=(term, kill) peer=kwin_wayland,
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
@ -42,6 +42,7 @@ profile plasmashell @{exec_path} flags=(mediate_deleted) {
|
|||||||
ptrace (read) peer=libreoffice*,
|
ptrace (read) peer=libreoffice*,
|
||||||
ptrace (read) peer=pinentry-qt,
|
ptrace (read) peer=pinentry-qt,
|
||||||
|
|
||||||
|
signal (receive) set=(cont, term) peer=@{systemd_user},
|
||||||
signal (send),
|
signal (send),
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
@ -40,11 +40,12 @@ profile sddm @{exec_path} flags=(attach_disconnected,mediate_deleted) {
|
|||||||
ptrace (read),
|
ptrace (read),
|
||||||
ptrace (trace) peer=@{profile_name},
|
ptrace (trace) peer=@{profile_name},
|
||||||
|
|
||||||
signal (send) set=(term) peer=kwin_wayland,
|
signal (receive) set=(hup) peer=@{systemd},
|
||||||
signal (send) set=(kill, term) peer=startplasma,
|
signal (send) set=(kill, term) peer=startplasma,
|
||||||
signal (send) set=(term) peer=startplasma-wayland,
|
|
||||||
signal (send) set=(term) peer=sddm-greeter,
|
|
||||||
signal (send) set=(kill, term) peer=xorg,
|
signal (send) set=(kill, term) peer=xorg,
|
||||||
|
signal (send) set=(term) peer=kwin_wayland,
|
||||||
|
signal (send) set=(term) peer=sddm-greeter,
|
||||||
|
signal (send) set=(term) peer=startplasma-wayland,
|
||||||
|
|
||||||
dbus receive bus=system path=/org/freedesktop/DisplayManager/Seat@{int}
|
dbus receive bus=system path=/org/freedesktop/DisplayManager/Seat@{int}
|
||||||
interface=org.freedesktop.DBus.Introspectable
|
interface=org.freedesktop.DBus.Introspectable
|
||||||
|
@ -11,6 +11,7 @@ profile startplasma @{exec_path} {
|
|||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/kde-strict>
|
include <abstractions/kde-strict>
|
||||||
|
|
||||||
|
signal (receive) set=(hup) peer=@{systemd},
|
||||||
signal (receive) set=(term) peer=sddm,
|
signal (receive) set=(term) peer=sddm,
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
@ -13,6 +13,8 @@ profile xembedsniproxy @{exec_path} {
|
|||||||
include <abstractions/nameservice-strict>
|
include <abstractions/nameservice-strict>
|
||||||
include <abstractions/qt5>
|
include <abstractions/qt5>
|
||||||
|
|
||||||
|
signal (receive) set=(cont, term) peer=@{systemd_user},
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
/usr/share/hwdata/*.ids r,
|
/usr/share/hwdata/*.ids r,
|
||||||
|
@ -12,6 +12,8 @@ profile systemd-generator-ds-identify @{exec_path} flags=(attach_disconnected) {
|
|||||||
include <abstractions/consoles>
|
include <abstractions/consoles>
|
||||||
include <abstractions/nameservice-strict>
|
include <abstractions/nameservice-strict>
|
||||||
|
|
||||||
|
ptrace (read) peer=@{systemd},
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
@{sh_path} rix,
|
@{sh_path} rix,
|
||||||
|
@ -14,6 +14,8 @@ profile systemd-sulogin-shell @{exec_path} {
|
|||||||
capability net_admin,
|
capability net_admin,
|
||||||
capability sys_resource,
|
capability sys_resource,
|
||||||
|
|
||||||
|
signal (receive) set=(hup) peer=@{systemd},
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
@{bin}/sulogin rPx,
|
@{bin}/sulogin rPx,
|
||||||
|
@ -29,6 +29,8 @@ profile blueman @{exec_path} flags=(attach_disconnected) {
|
|||||||
|
|
||||||
ptrace (read) peer=gjs-console,
|
ptrace (read) peer=gjs-console,
|
||||||
|
|
||||||
|
signal (receive) set=(cont, term) peer=@{systemd_user},
|
||||||
|
|
||||||
@{exec_path} mrix,
|
@{exec_path} mrix,
|
||||||
|
|
||||||
@{bin}/{b,d}ash rix,
|
@{bin}/{b,d}ash rix,
|
||||||
|
Loading…
Reference in New Issue
Block a user