# 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/,}lib/accountsservice/accounts-daemon @{exec_path} += /usr/libexec/accounts-daemon profile accounts-daemon @{exec_path} { include include include # Needed? deny capability sys_nice, @{exec_path} mr, owner /var/lib/AccountsService/ r, owner /var/lib/AccountsService/** rw, /usr/share/accountsservice/{,**} r, /usr/share/dbus-1/interfaces/org.freedesktop.DisplayManager.AccountsService.xml r, /etc/shells r, /etc/shadow r, include if exists }