55 lines
1.4 KiB
Text
55 lines
1.4 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2018-2021 Mikhail Morfikov
|
|
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/4.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{bin}/xdg-icon-resource
|
|
profile xdg-icon-resource @{exec_path} flags=(attach_disconnected) {
|
|
include <abstractions/base>
|
|
include <abstractions/consoles>
|
|
include <abstractions/freedesktop.org>
|
|
|
|
@{exec_path} r,
|
|
|
|
@{sh_path} rix,
|
|
@{bin}/{,e}grep ix,
|
|
@{bin}/{m,g,}awk ix,
|
|
@{bin}/basename ix,
|
|
@{bin}/cat ix,
|
|
@{bin}/cp ix,
|
|
@{bin}/cut ix,
|
|
@{bin}/dirname ix,
|
|
@{bin}/ln ix,
|
|
@{bin}/mkdir ix,
|
|
@{bin}/readlink ix,
|
|
@{bin}/realpath ix,
|
|
@{bin}/rm ix,
|
|
@{bin}/sed ix,
|
|
@{bin}/touch ix,
|
|
@{bin}/tr ix,
|
|
@{bin}/umask ix,
|
|
@{bin}/uname ix,
|
|
@{bin}/whoami ix,
|
|
|
|
# To get DE information
|
|
@{bin}/kde{,4}-config ix,
|
|
|
|
@{bin}/dbus-send Cx -> bus,
|
|
@{bin}/gtk{,4}-update-icon-cache Px,
|
|
@{bin}/xprop Px,
|
|
|
|
profile bus flags=(complain) {
|
|
include <abstractions/base>
|
|
include <abstractions/app/bus>
|
|
include <abstractions/bus-session>
|
|
include if exists <local/xdg-icon-resource_bus>
|
|
}
|
|
|
|
include if exists <local/xdg-icon-resource>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|