Add 'if exists' to some include.

This commit is contained in:
Alexandre Pujol 2021-04-01 23:26:06 +01:00
parent 79904cb616
commit 08c220deee
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
18 changed files with 24 additions and 40 deletions

View file

@ -4,13 +4,13 @@
@{APT_CACHER_NG_CACHE_DIR}=/var/cache/apt-cacher-ng
#include <tunables/global>
include <tunables/global>
profile apt-cacher-ng /usr/sbin/apt-cacher-ng {
#include <abstractions/base>
#include <abstractions/nameservice>
#include <abstractions/openssl>
#include <abstractions/user-tmp>
profile apt-cacher-ng /usr/sbin/apt-cacher-ng flags=(complain) {
include <abstractions/base>
include <abstractions/nameservice>
include <abstractions/openssl>
include <abstractions/user-tmp>
/etc/apt-cacher-ng/ r,
/etc/apt-cacher-ng/** r,
@ -35,6 +35,5 @@ profile apt-cacher-ng /usr/sbin/apt-cacher-ng {
# used by libevent
@{PROC}/sys/kernel/random/uuid r,
# Site-specific additions and overrides. See local/README for details.
#include <local/usr.sbin.apt-cacher-ng>
include if exists <local/usr.sbin.apt-cacher-ng>
}

View file

@ -148,5 +148,5 @@ profile torbrowser_firefox @{torbrowser_firefox_executable} {
# Yubikey NEO also needs this:
/sys/devices/**/hidraw/hidraw*/uevent r,
include <local/torbrowser.Browser.firefox>
include if exists <local/torbrowser.Browser.firefox>
}

View file

@ -100,5 +100,5 @@ profile torbrowser_plugin_container {
deny /etc/pulse/client.conf r,
deny /usr/bin/pulseaudio x,
include <local/torbrowser.Browser.plugin-container>
include if exists <local/torbrowser.Browser.plugin-container>
}

View file

@ -42,5 +42,5 @@ profile torbrowser_tor @{torbrowser_tor_executable} {
# OnionShare compatibility
/tmp/onionshare/** rw,
include <local/torbrowser.Tor.tor>
include if exists <local/torbrowser.Tor.tor>
}