mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
feat(profile): add snapshot.
This commit is contained in:
parent
81ac0d0b6d
commit
cf8ae8b147
28
apparmor.d/profiles-s-z/snapshot
Normal file
28
apparmor.d/profiles-s-z/snapshot
Normal file
@ -0,0 +1,28 @@
|
||||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
# vim:syntax=apparmor
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{bin}/snapshot
|
||||
profile snapshot @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/audio-client>
|
||||
include <abstractions/common/gnome>
|
||||
include <abstractions/gstreamer>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
owner @{user_pictures_dirs}/Camera/{,**} rw,
|
||||
owner @{user_videos_dirs}/Camera/{,**} rw,
|
||||
|
||||
owner @{PROC}/@{pid}/task/@{tid}/comm rw,
|
||||
|
||||
include if exists <local/snapshot>
|
||||
}
|
||||
|
||||
# vim:syntax=apparmor
|
@ -294,6 +294,7 @@ snap-update-ns complain
|
||||
snapd complain
|
||||
snapd-apparmor complain
|
||||
snapd-core-fixup complain
|
||||
snapshot complain
|
||||
ssservice complain
|
||||
startplasma complain
|
||||
startx attach_disconnected,complain
|
||||
|
Loading…
Reference in New Issue
Block a user