mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-19 09:28:17 +01:00
70 lines
1.8 KiB
Text
70 lines
1.8 KiB
Text
|
# 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,
|
||
|
/{usr/,}bin/dash rix,
|
||
|
|
||
|
/{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,
|
||
|
|
||
|
/{usr/,}bin/wget rCx -> browse,
|
||
|
/{usr/,}bin/curl rCx -> browse,
|
||
|
/{usr/,}bin/lynx rCx -> browse,
|
||
|
|
||
|
/usr/share/misc/ r,
|
||
|
/usr/share/misc/pci.ids* rw,
|
||
|
link /usr/share/misc/pci.ids.gz.old -> /usr/share/misc/pci.ids.gz,
|
||
|
link /usr/share/misc/pci.ids.old -> /usr/share/misc/pci.ids,
|
||
|
|
||
|
|
||
|
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>
|
||
|
}
|