2020-09-12 17:19:23 +02:00
|
|
|
# vim:syntax=apparmor
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
#
|
2021-01-10 16:35:07 +01:00
|
|
|
# Copyright (C) 2019-2021 Mikhail Morfikov
|
2020-09-12 17:19:23 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
|
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/uscan
|
|
|
|
profile uscan @{exec_path} {
|
2020-12-10 22:33:39 +01:00
|
|
|
include <abstractions/base>
|
|
|
|
include <abstractions/consoles>
|
|
|
|
include <abstractions/nameservice-strict>
|
|
|
|
include <abstractions/perl>
|
|
|
|
include <abstractions/openssl>
|
|
|
|
include <abstractions/ssl_certs>
|
|
|
|
|
|
|
|
network inet dgram,
|
|
|
|
network inet6 dgram,
|
|
|
|
network inet stream,
|
|
|
|
network inet6 stream,
|
|
|
|
network netlink raw,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
@{exec_path} r,
|
|
|
|
/{usr/,}bin/perl r,
|
|
|
|
|
2020-12-09 10:30:52 +01:00
|
|
|
/{usr/,}bin/{,ba,da}sh rix,
|
|
|
|
/{usr/,}bin/pwd rix,
|
|
|
|
/{usr/,}bin/find rix,
|
|
|
|
/{usr/,}bin/file rix,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2020-12-09 10:30:52 +01:00
|
|
|
/{usr/,}bin/tar rix,
|
|
|
|
/{usr/,}bin/gzip rix,
|
|
|
|
/{usr/,}bin/bzip2 rix,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2020-12-09 10:30:52 +01:00
|
|
|
/{usr/,}bin/uupdate rPUx,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
# To run custom maintainer scripts
|
|
|
|
owner @{BUILD_DIR}/**/debian/* rPUx,
|
|
|
|
|
|
|
|
/{usr/,}bin/gpg rCx -> gpg,
|
|
|
|
/{usr/,}bin/gpgv rCx -> gpg,
|
|
|
|
|
|
|
|
/etc/dpkg/origins/debian r,
|
|
|
|
|
|
|
|
/etc/devscripts.conf r,
|
|
|
|
/etc/magic r,
|
|
|
|
|
|
|
|
# For package building
|
|
|
|
owner @{BUILD_DIR}/** rwkl -> @{BUILD_DIR}/**,
|
|
|
|
|
|
|
|
|
|
|
|
# For GPG keys
|
|
|
|
owner /tmp/*/ rw,
|
|
|
|
owner /tmp/*/trustedkeys.gpg w,
|
|
|
|
|
|
|
|
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,
|
|
|
|
/{usr/,}bin/gpgv mr,
|
|
|
|
|
|
|
|
owner @{HOME}/.gnupg/gpg.conf r,
|
|
|
|
owner @{HOME}/.gnupg/pubring.{gpg,kbx} r,
|
|
|
|
|
|
|
|
owner /tmp/*/trustedkeys.gpg rw,
|
|
|
|
|
|
|
|
owner @{BUILD_DIR}/**/debian/upstream/signing-key.asc r,
|
|
|
|
owner @{BUILD_DIR}/**/*.tar.* r,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include if exists <local/uscan>
|
2020-09-12 17:19:23 +02:00
|
|
|
}
|