mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-12 07:17:13 +01:00
40 lines
794 B
Text
40 lines
794 B
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2020-2021 Mikhail Morfikov
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /{usr/,}bin/dpkg-architecture
|
|
profile dpkg-architecture @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/perl>
|
|
|
|
@{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 <abstractions/base>
|
|
|
|
/{usr/,}bin/ccache mr,
|
|
|
|
/{usr/,}bin/{,@{multiarch}-}gcc-[0-9]* rix,
|
|
|
|
/media/ccache/*/** rw,
|
|
|
|
}
|
|
|
|
include if exists <local/dpkg-architecture>
|
|
}
|