apparmor.d/profiles/xdg-screensaver

52 lines
1.3 KiB
Text
Raw Normal View History

# vim:syntax=apparmor
# ------------------------------------------------------------------
#
2021-01-10 16:35:07 +01:00
# Copyright (C) 2018-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.
#
# ------------------------------------------------------------------
2020-12-10 22:33:39 +01:00
abi <abi/3.0>,
2020-12-10 22:33:39 +01:00
include <tunables/global>
@{exec_path} = /{usr/,}bin/xdg-screensaver
profile xdg-screensaver @{exec_path} {
2020-12-10 22:33:39 +01:00
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/deny-root-dir-access>
@{exec_path} r,
2020-12-09 10:30:52 +01:00
/{usr/,}bin/ r,
/{usr/,}bin/{,ba,da}sh rix,
/{usr/,}bin/mv rix,
/{usr/,}bin/{,e}grep rix,
/{usr/,}bin/sed rix,
/{usr/,}bin/which rix,
/{usr/,}bin/cat rix,
/{usr/,}bin/uname rix,
2021-03-13 09:47:36 +01:00
/{usr/,}bin/xautolock rix,
/{usr/,}bin/dbus-send rix,
/{usr/,}bin/xprop rPx,
/{usr/,}bin/xdg-mime rPx,
/{usr/,}bin/xset rPx,
2021-03-21 17:04:10 +01:00
/{usr/,}bin/hostname rix,
/dev/dri/card[0-9] rw,
2020-12-09 10:30:52 +01:00
owner @{HOME}/ r,
owner @{HOME}/.Xauthority r,
owner /tmp/xauth-[0-9]*-_[0-9] r,
2020-12-09 10:30:52 +01:00
owner @{run}/user/[0-9]*/ r,
2020-12-10 22:33:39 +01:00
include if exists <local/xdg-screensaver>
}