blob: 2a0c40382077209d7aaf04956687b009c308c071 (
plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
# $OpenBSD: usr_sbin_named,v 1.6 2010/07/23 03:13:51 ray Exp $
#
# Policy for named that uses named user and chroots to /var/named
# This policy works for the default configuration of named.
#
Policy: /usr/sbin/named, Emulation: native
native-__sysctl: permit
native-accept: permit
native-bind: sockaddr match "inet-*:0" then permit
native-bind: sockaddr match "inet-*:53" then permit
native-bind: sockaddr match "inet-*:953" then permit
native-break: permit
native-chdir: filename eq "/" then permit
native-chroot: filename eq "/var/named" then permit
native-close: permit
native-closefrom: permit
native-connect: sockaddr eq "/dev/log" then permit
native-connect: sockaddr match "inet-*" then permit
native-dup2: permit
native-exit: permit
native-fcntl: permit
native-fork: permit
native-fsread: filename sub "<non-existent filename>" then deny[enoent]
native-fsread: filename eq "/etc/malloc.conf" then permit
native-fsread: filename eq "/dev/arandom" then permit
native-fsread: filename eq "/etc/group" then permit
native-fsread: filename eq "/etc/named.conf" then permit
native-fsread: filename eq "/etc/named.keys" then permit
native-fsread: filename eq "/etc/pwd.db" then permit
native-fsread: filename eq "/etc/rndc.key" then permit
native-fsread: filename eq "/etc/root.hint" then permit
native-fsread: filename eq "/etc/spwd.db" then deny[eperm]
native-fsread: filename match "/master" then permit
native-fsread: filename match "/slave" then permit
native-fsread: filename match "/standard" then permit
native-fsread: filename match "/usr/lib" then permit
native-fsread: filename eq "/usr/libexec/ld.so" then permit
native-fsread: filename match "/usr/share/nls" then permit
native-fsread: filename match "/usr/share/zoneinfo" then permit
native-fsread: filename eq "/var/run/ld.so.hints" then permit
native-fsread: filename eq "/var/run/named.pid" then permit
native-fstat: permit
native-fswrite: filename sub "<non-existent filename>" then deny[enoent]
native-fswrite: filename eq "/dev/null" then permit
native-fswrite: filename match "/master/*" then permit
native-fswrite: filename match "/slave/*" then permit
native-fswrite: filename eq "/var/run/named.pid" then permit
native-fswrite: filename match "/var/tmp/*" then permit
native-fsync: permit
native-getpid: permit
native-getppid: permit
native-getrlimit: permit
native-getsockname: permit
native-getsockopt: permit
native-gettimeofday: permit
native-getuid: permit
native-geteuid: permit
native-issetugid: permit
native-kill: permit
native-listen: permit
native-lseek: permit
native-mmap: permit
native-mprotect: permit
native-mquery: permit
native-munmap: permit
native-nanosleep: permit
native-pipe: permit
native-pread: permit
native-read: permit
native-recvmsg: permit
native-rename: filename match "/slave/*" and filename[1] match "/slave/*" then permit
native-select: permit
native-sendmsg: permit
native-sendto: true then permit
native-setegid: gid eq "70" then permit
native-seteuid: uid eq "70" and uname eq "named" then permit
native-setgid: gid eq "70" then permit
native-setgroups: permit
native-setresgid: permit
native-setresuid: permit
native-setrlimit: permit
native-setsid: permit
native-setsockopt: permit
native-setuid: uid eq "70" and uname eq "named" then permit
native-sigaction: permit
native-sigprocmask: permit
native-sigreturn: permit
native-socket: permit
native-socketpair: permit
native-utimes: permit
native-wait4: permit
native-write: permit
|