# vim:syntax=apparmor # ------------------------------------------------------------------ # # Copyright (C) 2020-2021 Mikhail Morfikov # # This program is free software; you can redistribute it and/or # modify it under the terms of version 2 of the GNU General Public # License published by the Free Software Foundation. # # ------------------------------------------------------------------ abi , include @{exec_path} = /{usr/,}bin/startx profile startx @{exec_path} { include include include include @{exec_path} r, /{usr/,}bin/{,ba,da}sh rix, /{usr/,}bin/hostname rix, /{usr/,}bin/mcookie rix, /{usr/,}bin/mktemp rix, /{usr/,}bin/tty rix, /{usr/,}bin/expr rix, /{usr/,}bin/{,e}grep rix, /{usr/,}bin/sed rix, /{usr/,}bin/rm rix, /{usr/,}bin/deallocvt rix, /{usr/,}bin/xauth rPx, /{usr/,}bin/xinit rPx, /etc/X11/xinit/xinitrc r, /etc/X11/xinit/xserverrc r, owner @{HOME}/ r, owner @{HOME}/.xinitrc r, owner @{HOME}/.xserverrc r, /tmp/ r, owner /tmp/serverauth.* rw, /dev/ r, owner /dev/tty[0-9]* rw, include if exists }