diff --git a/apparmor.d/groups/freedesktop/xdg-mime b/apparmor.d/groups/freedesktop/xdg-mime index 364c6a8b..ef0e156f 100644 --- a/apparmor.d/groups/freedesktop/xdg-mime +++ b/apparmor.d/groups/freedesktop/xdg-mime @@ -21,6 +21,7 @@ profile xdg-mime @{exec_path} flags=(attach_disconnected) { @{bin}/cut rix, @{bin}/file rix, @{bin}/head rix, + @{bin}/ktraderclient5 rPUx, @{bin}/mv rix, @{bin}/readlink rix, @{bin}/sed rix, diff --git a/apparmor.d/groups/freedesktop/xdg-settings b/apparmor.d/groups/freedesktop/xdg-settings index 4153c11e..9bb6558f 100644 --- a/apparmor.d/groups/freedesktop/xdg-settings +++ b/apparmor.d/groups/freedesktop/xdg-settings @@ -19,6 +19,7 @@ profile xdg-settings @{exec_path} { @{bin}/basename rix, @{bin}/cat rix, @{bin}/cut rix, + @{bin}/kreadconfig5 rPx, @{bin}/mktemp rix, @{bin}/mv rix, @{bin}/readlink rix, diff --git a/apparmor.d/groups/kde/kglobalaccel5 b/apparmor.d/groups/kde/kglobalaccel5 index dd19481d..d2b00315 100644 --- a/apparmor.d/groups/kde/kglobalaccel5 +++ b/apparmor.d/groups/kde/kglobalaccel5 @@ -15,7 +15,7 @@ profile kglobalaccel5 @{exec_path} { @{exec_path} mr, - @{bin}/kstart rPUx, + @{bin}/kstart rPx, /usr/share/hwdata/*.ids r, /usr/share/icu/@{int}.@{int}/*.dat r, diff --git a/apparmor.d/groups/kde/ksmserver b/apparmor.d/groups/kde/ksmserver index 3e086655..7d78a486 100644 --- a/apparmor.d/groups/kde/ksmserver +++ b/apparmor.d/groups/kde/ksmserver @@ -20,6 +20,10 @@ profile ksmserver @{exec_path} flags=(attach_disconnected,mediate_deleted) { include signal (send) set=(usr1,term) peer=kscreenlocker-greet, + + unix (connect, receive, send, accept) + type=stream + peer=(addr="@/tmp/.ICE-unix/[0-9]*"), @{exec_path} mr, diff --git a/apparmor.d/groups/kde/kstart b/apparmor.d/groups/kde/kstart new file mode 100644 index 00000000..47ee7a9b --- /dev/null +++ b/apparmor.d/groups/kde/kstart @@ -0,0 +1,25 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2023 Jeroen Rijken +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}bin/kstart +profile kstart @{exec_path} flags=(complain,attach_disconnected) { + include + include + include + include + + unix (connect, send, receive) type=stream peer=(addr="@/tmp/.ICE-unix/4979"), + + @{exec_path} mr, + /{usr/,}bin/** rPUx, + /{usr/,}bin/konsole rUx, + + @{HOME}.Xauthority r, + + include if exists +} diff --git a/apparmor.d/groups/virt/containerd b/apparmor.d/groups/virt/containerd index e83afcbf..f4b4929b 100644 --- a/apparmor.d/groups/virt/containerd +++ b/apparmor.d/groups/virt/containerd @@ -42,7 +42,7 @@ profile containerd @{exec_path} flags=(attach_disconnected) { umount @{run}/netns/cni-@{uuid}, signal (receive) set=term peer={dockerd,k3s}, - signal (send) set=kill peer=cni-calico, + signal (send) set=kill peer={containerd-shim-runc-v2,cni-calico}, @{exec_path} mr, @@ -91,6 +91,7 @@ profile containerd @{exec_path} flags=(attach_disconnected) { /tmp/cri-containerd.apparmor.d[0-9]* rwl, /tmp/ctd-volume[0-9]*/{,**} rw, + @{sys}/fs/cgroup/kubepods/** r, @{sys}/kernel/mm/transparent_hugepage/hpage_pmd_size r, @{sys}/kernel/security/apparmor/profiles r, @{sys}/module/apparmor/parameters/enabled r, diff --git a/apparmor.d/groups/virt/containerd-shim-runc-v2 b/apparmor.d/groups/virt/containerd-shim-runc-v2 index 84611002..3ca0b730 100644 --- a/apparmor.d/groups/virt/containerd-shim-runc-v2 +++ b/apparmor.d/groups/virt/containerd-shim-runc-v2 @@ -23,6 +23,7 @@ profile containerd-shim-runc-v2 @{exec_path} flags=(attach_disconnected) { ptrace (read) peer=unconfined, signal (send) set=kill peer=cri-containerd.apparmor.d, + signal (receive) set=kill peer=containerd, mount -> /run/containerd/io.containerd.runtime.v2.task/k8s.io/@{hex}/rootfs/, umount /run/containerd/io.containerd.runtime.v2.task/k8s.io/@{hex}/rootfs/, diff --git a/apparmor.d/profiles-m-r/plank b/apparmor.d/profiles-m-r/plank new file mode 100644 index 00000000..239b0bda --- /dev/null +++ b/apparmor.d/profiles-m-r/plank @@ -0,0 +1,32 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2023 Jeroen Rijken +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}bin/plank +profile plank @{exec_path} flags=(complain) { + include + include + include + include + include + include + include + include + + @{exec_path} rm, + + unix (send, receive, connect) type=stream peer=(addr="@/tmp/.X11-unix/X[0-9]*", label="{xorg,xkbcomp}"), + + @{user_config_dirs}/plank/{,**} rw, + /usr/{,local/}share/plank/{,**} r, + + /usr/{,local/}share/mime/mime.cache r, + /var/lib/flatpak/exports/share/icons/{,**} r, + /var/lib/flatpak/exports/share/mime/mime.cache r, + + include if exists +}