feat(profile): add some new profile.
This commit is contained in:
parent
239d5efe63
commit
fe1e3c3be8
10 changed files with 264 additions and 0 deletions
26
apparmor.d/groups/gnome/gnome-text-editor
Normal file
26
apparmor.d/groups/gnome/gnome-text-editor
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}/gnome-text-editor
|
||||
profile gnome-text-editor @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/bus/org.freedesktop.FileManager1>
|
||||
include <abstractions/common/gnome>
|
||||
include <abstractions/user-read-strict>
|
||||
include <abstractions/user-write-strict>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
owner @{user_share_dirs}/org.gnome.TextEditor/{,**} rw,
|
||||
|
||||
owner @{PROC}/@{pid}/mountinfo r,
|
||||
|
||||
deny @{user_share_dirs}/gvfs-metadata/* r,
|
||||
|
||||
include if exists <local/gnome-text-editor>
|
||||
}
|
||||
20
apparmor.d/groups/gnome/tracker-writeback
Normal file
20
apparmor.d/groups/gnome/tracker-writeback
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} = @{lib}/tracker-writeback
|
||||
profile tracker-writeback @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/bus-session>
|
||||
include <abstractions/gnome-strict>
|
||||
|
||||
#aa:dbus own bus=session name=org.freedesktop.Tracker3.Writeback
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
include if exists <local/tracker-writeback>
|
||||
}
|
||||
16
apparmor.d/groups/gvfs/gvfsd-wsdd
Normal file
16
apparmor.d/groups/gvfs/gvfsd-wsdd
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# 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} = @{lib}/{,gvfs/}gvfsd-wsdd
|
||||
profile gvfsd-wsdd @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
include if exists <local/gvfsd-wsdd>
|
||||
}
|
||||
20
apparmor.d/groups/network/nm-priv-helper
Normal file
20
apparmor.d/groups/network/nm-priv-helper
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}/nm-priv-helper
|
||||
profile nm-priv-helper @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
||||
capability dac_override,
|
||||
|
||||
#aa:dbus own bus=system name=org.freedesktop.nm_priv_helper
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
include if exists <local/nm-priv-helper>
|
||||
}
|
||||
21
apparmor.d/groups/systemd/systemd-network-generator
Normal file
21
apparmor.d/groups/systemd/systemd-network-generator
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{lib}/systemd/systemd-network-generator
|
||||
profile systemd-network-generator @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/common/systemd>
|
||||
|
||||
capability net_admin,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
owner @{run}/systemd/network/{,**} rw,
|
||||
|
||||
include if exists <local/systemd-network-generator>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue