# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
# Copyright (C) 2024 Besanon  <m231009ts@mailfence.com>
# SPDX-License-Identifier: GPL-2.0-only

abi <abi/3.0>,

include <tunables/global>

@{exec_path} = @{bin}/lxqt-admin-user
profile lxqt-admin-user @{exec_path} {
  include <abstractions/base>
  include <abstractions/gtk>
  include <abstractions/video>
  include <abstractions/lxqt>
  include <abstractions/qt5-shader-cache>
  include <abstractions/bus-accessibility>
  include <abstractions/bus-session>
  include <abstractions/gvfs-open>
  include <abstractions/nameservice-strict>
  
  @{exec_path}			mr,

  @{bin}/pkexec				rPx,
  @{bin}/usermod 			rPx,

  owner /tmp/@{int}             	r,

  /dev/tty				rw,

  include if exists <local/lxqt-admin-user>
}

# vim:syntax=apparmor
