apparmor.d/apparmor.d/profiles-m-r/pass-extension-python
2021-09-28 21:53:50 +01:00

29 lines
No EOL
772 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
# Confine python based password-store extension. Note: This profile does not
# specify an attachment path because it is intended to be used only via
# "Px -> pass-extension-python" exec transitions from the pass profile.
abi <abi/3.0>,
include <tunables/global>
profile pass-extension-python {
include <abstractions/base>
include <abstractions/python>
include <abstractions/openssl>
/{usr/,}bin/ r,
/{usr/,}bin/pass rPx,
/{usr/,}bin/python3.[0-9]* rix,
/usr/share/file/misc/magic.mgc r,
/tmp/* rw,
owner @{PROC}/@{pid}/fd/ r,
include if exists <local/pass-extension-python>
}