# vim:syntax=apparmor # ------------------------------------------------------------------ # # Copyright (C) 2019-2021 Mikhail Morfikov # # This program is free software; you can redistribute it and/or # modify it under the terms of version 2 of the GNU General Public # License published by the Free Software Foundation. # # ------------------------------------------------------------------ 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 }