51 lines
1.2 KiB
Text
51 lines
1.2 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-open
|
|
profile xdg-open @{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}/basename ix,
|
|
@{bin}/cat ix,
|
|
@{bin}/cut ix,
|
|
@{bin}/readlink ix,
|
|
@{bin}/realpath ix,
|
|
@{bin}/sed ix,
|
|
@{bin}/tr ix,
|
|
@{bin}/uname ix,
|
|
|
|
# To get DE information
|
|
@{bin}/kde{,4}-config ix,
|
|
|
|
@{bin}/dbus-send Cx -> bus,
|
|
@{bin}/gdbus Cx -> bus,
|
|
@{bin}/xprop Px,
|
|
@{bin}/xdg-mime Px,
|
|
@{open_path} Px -> child-open-any,
|
|
|
|
@{PROC}/version r,
|
|
|
|
profile bus {
|
|
include <abstractions/base>
|
|
include <abstractions/app/bus>
|
|
include <abstractions/bus-session>
|
|
|
|
include if exists <local/xdg-open_bus>
|
|
}
|
|
|
|
include if exists <local/xdg-open>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|