mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
adding apparmor profiles for --nettrace option
This commit is contained in:
parent
8248f1eb5d
commit
c13331305c
9 changed files with 163 additions and 14 deletions
6
Makefile
6
Makefile
|
|
@ -260,9 +260,13 @@ ifeq ($(BUSYBOX_WORKAROUND),yes)
|
|||
./mketc.sh $(DESTDIR)$(sysconfdir)/firejail/disable-common.inc
|
||||
endif
|
||||
ifeq ($(HAVE_APPARMOR),-DHAVE_APPARMOR)
|
||||
# install apparmor profile
|
||||
# install apparmor profiles
|
||||
$(INSTALL) -m 0755 -d $(DESTDIR)$(sysconfdir)/apparmor.d
|
||||
$(INSTALL) -m 0644 -t $(DESTDIR)$(sysconfdir)/apparmor.d etc/apparmor/firejail-default
|
||||
$(INSTALL) -m 0644 -t $(DESTDIR)$(sysconfdir)/apparmor.d etc/apparmor/usr.lib.firejail.fnettrace
|
||||
$(INSTALL) -m 0644 -t $(DESTDIR)$(sysconfdir)/apparmor.d etc/apparmor/usr.lib.firejail.fnettrace-dns
|
||||
$(INSTALL) -m 0644 -t $(DESTDIR)$(sysconfdir)/apparmor.d etc/apparmor/usr.lib.firejail.fnettrace-icmp
|
||||
$(INSTALL) -m 0644 -t $(DESTDIR)$(sysconfdir)/apparmor.d etc/apparmor/usr.lib.firejail.fnettrace-sni
|
||||
# install apparmor profile customization file
|
||||
$(INSTALL) -m 0755 -d $(DESTDIR)$(sysconfdir)/apparmor.d/local
|
||||
sh -c "if [ ! -f $(DESTDIR)$(sysconfdir)/apparmor.d/local/firejail-default ]; then \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue