# 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-helper
profile lxqt-admin-user-helper @{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>
    
  @{exec_path}		mr,

  @{bin}/usermod 		rPx,
  
  owner @{sh_path} 		r,
  owner /tmp/@{int}  		r,

  /dev/tty			rw,

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

# vim:syntax=apparmor
