Apparmor: add local configuration

This commit is contained in:
Vladimir Schowalter 2017-08-02 18:12:02 +01:00 committed by GitHub
parent 75a75e87f7
commit c5e188cbda
3 changed files with 4 additions and 0 deletions

View file

@ -128,6 +128,8 @@ ifeq ($(HAVE_APPARMOR),-DHAVE_APPARMOR)
# install apparmor profile
sh -c "if [ ! -d $(DESTDIR)/$(sysconfdir)/apparmor.d ]; then install -d -m 755 $(DESTDIR)/$(sysconfdir)/apparmor.d; fi;"
install -c -m 0644 etc/firejail-default $(DESTDIR)/$(sysconfdir)/apparmor.d/.
sh -c "if [ ! -d $(DESTDIR)/$(sysconfdir)/apparmor.d/local ]; then install -d -m 755 $(DESTDIR)/$(sysconfdir)/apparmor.d/local; fi;"
install -c -m 0644 etc/firejail-local $(DESTDIR)/$(sysconfdir)/apparmor.d/local/.
endif
# man pages
install -m 0755 -d $(DESTDIR)/$(mandir)/man1

View file

@ -154,4 +154,5 @@ remount,
umount,
pivot_root,
#include <local/firejail-local>
}

1
etc/firejail-local Normal file
View file

@ -0,0 +1 @@
# Site-specific additions and overrides for 'firejail-default'