# vim:syntax=apparmor # ------------------------------------------------------------------ # # Copyright (C) 2020-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 @{exec_path} = /{usr/,}bin/dpkg-architecture profile dpkg-architecture @{exec_path} { include include @{exec_path} r, /usr/bin/perl r, /{usr/,}bin/{,@{multiarch}-}gcc-[0-9]* rix, /{usr/,}bin/ccache rCx -> ccache, /{usr/,}bin/dpkg rPx -> child-dpkg, /usr/share/dpkg/** r, # file_inherit owner /tmp/* rw, profile ccache { include /{usr/,}bin/ccache mr, /{usr/,}bin/{,@{multiarch}-}gcc-[0-9]* rix, /media/ccache/*/** rw, } include if exists }