# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2020 krathalan https://git.sr.ht/~krathalan/apparmor-profiles/
#               2021 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-3.0-only

# Version of program profiled: 0.13

abi <abi/4.0>,
include <tunables/global>

@{exec_path} = @{bin}/xclip
profile xclip /{,usr/}{,s}bin/xclip flags=(complain) {
  include <abstractions/base>

  network unix stream,

  @{exec_path} mr,

  owner /tmp/mutt-* rw,
  owner /tmp/xauth_@{rand6} r,

  owner @{HOME}/.Xauthority r,

  deny /dev/tty rw,
}
