# apparmor.d - Full set of apparmor profiles # Copyright (C) 2019-2021 Mikhail Morfikov # SPDX-License-Identifier: GPL-2.0-only abi , include @{BUILD_DIR} = /media/debuilder/ @{exec_path} = /{usr/,}bin/dput /usr/share/dput/execute-dput profile execute-dput @{exec_path} flags=(complain) { include include include include @{exec_path} r, /{usr/,}bin/python3.[0-9]* r, /{usr/,}bin/{,ba,da}sh rix, /{usr/,}bin/dpkg rPx -> child-dpkg, /{usr/,}bin/gpgconf rCx -> gpg, /{usr/,}bin/gpg rCx -> gpg, /{usr/,}bin/gpgsm rCx -> gpg, /usr/share/dput/{,**} r, /etc/dput.cf r, owner @{HOME}/.dput.cf r, owner @{PROC}/@{pid}/fd/ r, # sources dir owner @{BUILD_DIR}/**.changes r, owner @{BUILD_DIR}/**.dsc r, owner @{BUILD_DIR}/**.buildinfo r, owner @{BUILD_DIR}/**.tar.xz r, profile gpg { include /{usr/,}bin/gpgconf mr, /{usr/,}bin/gpg mr, /{usr/,}bin/gpgsm mr, owner @{HOME}/.gnupg/ rw, owner @{HOME}/.gnupg/** rwkl -> @{HOME}/.gnupg/**, } include if exists }