2020-09-12 17:19:23 +02:00
|
|
|
# vim:syntax=apparmor
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Copyright (C) 2019-2020 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 <abi/3.0>,
|
|
|
|
|
|
|
|
#include <tunables/global>
|
|
|
|
|
|
|
|
@{exec_path} = /{usr/,}bin/dpkg-query
|
|
|
|
profile dpkg-query @{exec_path} {
|
|
|
|
#include <abstractions/base>
|
|
|
|
#include <abstractions/consoles>
|
|
|
|
|
|
|
|
@{exec_path} mr,
|
|
|
|
|
2020-12-09 10:30:52 +01:00
|
|
|
/{usr/,}bin/{,ba,da}sh rix,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2020-12-09 10:30:52 +01:00
|
|
|
/{usr/,}bin/pager rPx -> child-pager,
|
|
|
|
/{usr/,}bin/less rPx -> child-pager,
|
|
|
|
/{usr/,}bin/more rPx -> child-pager,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
/var/lib/dpkg/** r,
|
|
|
|
|
|
|
|
# file_inherit
|
|
|
|
/tmp/#[0-9]*[0-9] rw,
|
|
|
|
|
|
|
|
#include if exists <local/dpkg-query>
|
|
|
|
}
|