2021-04-01 17:17:47 +02:00
|
|
|
# apparmor.d - Full set of apparmor profiles
|
|
|
|
# Copyright (C) 2019-2021 Mikhail Morfikov
|
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
abi <abi/3.0>,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include <tunables/global>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
@{BUILD_DIR} = /media/debuilder/
|
|
|
|
|
|
|
|
@{exec_path} = /{usr/,}bin/debsign
|
|
|
|
profile debsign @{exec_path} {
|
2020-12-10 22:33:39 +01:00
|
|
|
include <abstractions/base>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
@{exec_path} r,
|
2020-12-09 10:30:52 +01:00
|
|
|
/{usr/,}bin/{,ba,da}sh rix,
|
|
|
|
|
|
|
|
/{usr/,}bin/mktemp rix,
|
|
|
|
/{usr/,}bin/basename rix,
|
|
|
|
/{usr/,}bin/{,e}grep rix,
|
|
|
|
/{usr/,}bin/mv rix,
|
|
|
|
/{usr/,}bin/cat rix,
|
|
|
|
/{usr/,}bin/cp rix,
|
|
|
|
/{usr/,}bin/rm rix,
|
|
|
|
/{usr/,}bin/head rix,
|
|
|
|
/{usr/,}bin/cu rix,
|
|
|
|
/{usr/,}bin/cut rix,
|
|
|
|
/{usr/,}bin/stty rix,
|
|
|
|
/{usr/,}bin/sed rix,
|
|
|
|
/{usr/,}bin/getopt rix,
|
|
|
|
/{usr/,}bin/dirname rix,
|
|
|
|
/{usr/,}bin/cmp rix,
|
|
|
|
|
|
|
|
/{usr/,}bin/md5sum rix,
|
2020-09-12 17:19:23 +02:00
|
|
|
/{usr/,}bin/sha{1,256,512}sum rix,
|
|
|
|
|
2020-12-09 10:30:52 +01:00
|
|
|
/{usr/,}bin/perl rix,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
/etc/devscripts.conf r,
|
|
|
|
owner @{HOME}/.devscripts r,
|
|
|
|
|
|
|
|
# For package building
|
|
|
|
owner @{BUILD_DIR}/** rwkl -> @{BUILD_DIR}/**,
|
|
|
|
|
|
|
|
owner /tmp/debsign.*/ rw,
|
|
|
|
owner /tmp/debsign.*/*.{dsc,changes,buildinfo}{,.asc} rw,
|
|
|
|
|
|
|
|
|
|
|
|
/{usr/,}bin/gpg rCx -> gpg,
|
|
|
|
profile gpg {
|
2020-12-10 22:33:39 +01:00
|
|
|
include <abstractions/base>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
/{usr/,}bin/gpg mr,
|
|
|
|
|
|
|
|
owner @{HOME}/.gnupg/ r,
|
|
|
|
owner @{HOME}/.gnupg/** rwkl -> @{HOME}/.gnupg/**,
|
|
|
|
|
|
|
|
owner /tmp/debsign.*/*.{dsc,changes,buildinfo} r,
|
|
|
|
owner /tmp/debsign.*/*.{dsc,changes,buildinfo}.asc rw,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include if exists <local/debsign>
|
2020-09-12 17:19:23 +02:00
|
|
|
}
|