-# $OpenBSD: usr_sbin_named,v 1.5 2004/05/13 04:50:04 sturm Exp $
+# $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.
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-mquery: permit
native-munmap: permit
native-nanosleep: permit
+ native-pipe: permit
native-pread: permit
native-read: permit
native-recvmsg: 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