-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbin.netstat
41 lines (37 loc) · 1.11 KB
/
bin.netstat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# vim:syntax=apparmor
# ------------------------------------------------------------------
#
# Copyright (C) 2002-2005 Novell/SUSE
#
# 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.
#
# ------------------------------------------------------------------
# evolution, amongst other things, calls this program. I didn't want to
# give evolution access to significant chunks of /proc
#
#include <tunables/global>
/bin/netstat {
#include <abstractions/base>
#include <abstractions/consoles>
#include <abstractions/nameservice>
capability dac_override,
capability dac_read_search,
deny capability sys_ptrace,
/bin/netstat rmix,
/etc/networks r,
@{PROC} r,
@{PROC}/[0-9]*/cmdline r,
@{PROC}/[0-9]*/fd r,
@{PROC}/net r,
@{PROC}/net/* r,
@{PROC}/*/fd/ r,
owner @{PROC}/*/net/raw r,
owner @{PROC}/*/net/raw6 r,
owner @{PROC}/*/net/tcp r,
owner @{PROC}/*/net/tcp6 r,
owner @{PROC}/*/net/udp r,
owner @{PROC}/*/net/udp6 r,
owner @{PROC}/*/net/unix r,
}