diff --git a/apparmor.d/profiles-m-z/wl-copy b/apparmor.d/profiles-m-z/wl-copy new file mode 100644 index 00000000..880d3dc1 --- /dev/null +++ b/apparmor.d/profiles-m-z/wl-copy @@ -0,0 +1,25 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2021 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}bin/wl-{copy,paste} +profile wl-copy @{exec_path} { + include + + @{exec_path} mr, + + /{usr/,}bin/cat rix, + /{usr/,}bin/rm rix, + + /{usr/,}bin/xdg-mime rPx, + + owner /tmp/wl-copy-buffer-*/{,**} rw, + + /dev/tty rw, + + include if exists +} \ No newline at end of file