mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 17:08:09 +01:00
feat(profile): add some minor xfce profile.
This commit is contained in:
parent
c04189d900
commit
2324da2fa7
2 changed files with 46 additions and 0 deletions
26
apparmor.d/groups/xfce/mousepad
Normal file
26
apparmor.d/groups/xfce/mousepad
Normal file
|
@ -0,0 +1,26 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{bin}/mousepad
|
||||
profile mousepad @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/dconf-write>
|
||||
include <abstractions/user-read-strict>
|
||||
include <abstractions/user-write-strict>
|
||||
include <abstractions/xfce>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
owner @{user_config_dirs}/Mousepad/ rw,
|
||||
owner @{user_config_dirs}/Mousepad/{,**} rw,
|
||||
|
||||
owner @{user_share_dirs}/Mousepad/ rw,
|
||||
owner @{user_share_dirs}/Mousepad/{,**} rw,
|
||||
|
||||
include if exists <local/mousepad>
|
||||
}
|
20
apparmor.d/groups/xfce/xfce-about
Normal file
20
apparmor.d/groups/xfce/xfce-about
Normal file
|
@ -0,0 +1,20 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{bin}/xfce4-about
|
||||
profile xfce-about @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/graphics>
|
||||
include <abstractions/xfce>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{open_path} rPx -> child-open-browsers,
|
||||
|
||||
include if exists <local/xfce-about>
|
||||
}
|
Loading…
Reference in a new issue