Created
November 18, 2016 19:54
-
-
Save mstemm/670c94e3fa65b6a29592af838ad58f83 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# From /etc/apparmor.d/usr.sbin.tcpdump on Ubuntu 9.04 and https://wiki.ubuntu.com/AppArmor#Example_profile | |
#include <tunables/global> | |
/usr/sbin/tcpdump { | |
#include <abstractions/base> | |
#include <abstractions/nameservice> | |
#include <abstractions/user-tmp> | |
capability net_raw, | |
capability setuid, | |
capability setgid, | |
capability dac_override, | |
network raw, | |
network packet, | |
# for -D | |
capability sys_module, | |
@{PROC}/bus/usb/ r, | |
@{PROC}/bus/usb/** r, | |
# for -F and -w | |
audit deny @{HOME}/.* mrwkl, | |
audit deny @{HOME}/.*/ rw, | |
audit deny @{HOME}/.*/** mrwkl, | |
audit deny @{HOME}/bin/ rw, | |
audit deny @{HOME}/bin/** mrwkl, | |
@{HOME}/ r, | |
@{HOME}/** rw, | |
/usr/sbin/tcpdump r, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment