apparmor.d/apparmor.d/profiles-a-f/changestool

39 lines
830 B
Text
Raw Normal View History

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2019-2021 Mikhail Morfikov
# SPDX-License-Identifier: GPL-2.0-only
2020-12-10 22:33:39 +01:00
abi <abi/3.0>,
2020-12-10 22:33:39 +01:00
include <tunables/global>
@{exec_path} = /{usr/,}bin/changestool
profile changestool @{exec_path} {
2020-12-10 22:33:39 +01:00
include <abstractions/base>
@{exec_path} mr,
/{usr/,}bin/gpg rCx -> gpg,
/{usr/,}bin/gpgconf rCx -> gpg,
/{usr/,}bin/gpgsm rCx -> gpg,
owner @{PROC}/@{pid}/fd/ r,
# For package building
2021-08-22 16:28:23 +02:00
owner @{user_build_dirs}/** rwkl -> @{user_build_dirs}/**,
profile gpg {
2020-12-10 22:33:39 +01:00
include <abstractions/base>
/{usr/,}bin/gpg mr,
/{usr/,}bin/gpgconf mr,
/{usr/,}bin/gpgsm mr,
2021-04-01 22:44:23 +02:00
owner @{HOME}/@{XDG_GPG_DIR}/ r,
owner @{HOME}/@{XDG_GPG_DIR}/** rwkl -> @{HOME}/@{XDG_GPG_DIR}/**,
}
2020-12-10 22:33:39 +01:00
include if exists <local/changestool>
}