apparmor.d/apparmor.d/profiles-s-z/wl-copy
2022-08-19 19:25:22 +01:00

25 lines
501 B
Plaintext

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/wl-{copy,paste}
profile wl-copy @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
@{exec_path} mr,
/{usr/,}bin/cat rix,
/{usr/,}bin/rm rix,
/{usr/,}bin/xdg-mime rPx,
owner /tmp/wl-copy-buffer-*/{,**} rw,
include if exists <local/wl-copy>
}