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/,}sbin/update-pciids
|
|
|
|
profile update-pciids @{exec_path} {
|
|
|
|
#include <abstractions/base>
|
|
|
|
#include <abstractions/consoles>
|
|
|
|
|
|
|
|
@{exec_path} r,
|
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/touch rix,
|
|
|
|
/{usr/,}bin/rm rix,
|
|
|
|
/{usr/,}bin/mv rix,
|
|
|
|
/{usr/,}bin/{,e}grep rix,
|
|
|
|
/{usr/,}bin/sed rix,
|
|
|
|
/{usr/,}bin/chown rix,
|
|
|
|
/{usr/,}bin/chmod rix,
|
|
|
|
/{usr/,}bin/echo rix,
|
|
|
|
/{usr/,}bin/cat rix,
|
|
|
|
/{usr/,}bin/which rix,
|
|
|
|
/{usr/,}bin/bunzip2 rix,
|
|
|
|
/{usr/,}bin/bzip2 rix,
|
|
|
|
/{usr/,}bin/gzip rix,
|
|
|
|
/{usr/,}bin/ln rix,
|
|
|
|
/{usr/,}bin/zgrep rix,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2020-12-09 10:30:52 +01:00
|
|
|
/{usr/,}bin/wget rCx -> browse,
|
|
|
|
/{usr/,}bin/curl rCx -> browse,
|
|
|
|
/{usr/,}bin/lynx rCx -> browse,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2020-09-27 22:26:01 +02:00
|
|
|
/usr/share/misc/ r,
|
|
|
|
/usr/share/misc/* rwl -> /usr/share/misc/*,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2020-12-09 10:30:52 +01:00
|
|
|
# For shell pwd
|
|
|
|
/root/ r,
|
|
|
|
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
profile browse {
|
|
|
|
#include <abstractions/base>
|
|
|
|
#include <abstractions/nameservice-strict>
|
|
|
|
#include <abstractions/openssl>
|
|
|
|
#include <abstractions/ssl_certs>
|
|
|
|
|
|
|
|
/{usr/,}bin/wget mr,
|
|
|
|
/{usr/,}bin/curl mr,
|
|
|
|
/{usr/,}bin/lynx mr,
|
|
|
|
|
|
|
|
/etc/wgetrc r,
|
|
|
|
owner @{HOME}/.wget-hsts rwk,
|
|
|
|
|
|
|
|
/usr/share/misc/pci.ids.new w,
|
|
|
|
/usr/share/misc/pci.ids.gz.new w,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#include if exists <local/update-pciids>
|
|
|
|
}
|