|
@ -1,88 +0,0 @@ |
|
|
# $OpenBSD: usr_sbin_lpd,v 1.9 2015/09/13 17:08:04 guenther Exp $ |
|
|
|
|
|
# |
|
|
|
|
|
# Policy for lpd. |
|
|
|
|
|
# This policy works for the default configuration of lpd. |
|
|
|
|
|
# |
|
|
|
|
|
Policy: /usr/sbin/lpd, Emulation: native |
|
|
|
|
|
native-accept: permit |
|
|
|
|
|
native-bind: sockaddr eq "/var/run/printer" then permit |
|
|
|
|
|
native-bind: sockaddr eq "inet-[0.0.0.0]:0" then permit |
|
|
|
|
|
native-bind: sockaddr match "inet-*:515" then permit |
|
|
|
|
|
native-break: permit |
|
|
|
|
|
native-chdir: permit |
|
|
|
|
|
native-chmod: filename eq "/var/run/printer" then permit |
|
|
|
|
|
native-chown: filename eq "/var/run/printer" then permit |
|
|
|
|
|
native-close: permit |
|
|
|
|
|
native-connect: sockaddr match "inet-*:53" then permit |
|
|
|
|
|
native-connect: sockaddr sub ":515" then permit |
|
|
|
|
|
native-dup2: permit |
|
|
|
|
|
native-exit: permit |
|
|
|
|
|
native-fchmod: permit |
|
|
|
|
|
native-fcntl: permit |
|
|
|
|
|
native-fork: permit |
|
|
|
|
|
native-fsread: filename eq "/etc/hosts" then permit |
|
|
|
|
|
native-fsread: filename eq "/etc/malloc.conf" then permit |
|
|
|
|
|
native-fsread: filename eq "/etc/printcap" then permit |
|
|
|
|
|
native-fsread: filename eq "/etc/printcap.db" then permit |
|
|
|
|
|
native-fsread: filename eq "/etc/pwd.db" then permit |
|
|
|
|
|
native-fsread: filename eq "/etc/resolv.conf" then permit |
|
|
|
|
|
native-fsread: filename eq "/etc/services" then permit |
|
|
|
|
|
native-fsread: filename eq "/etc/spwd.db" then deny[eperm] |
|
|
|
|
|
native-fsread: filename eq "/usr/libexec/ld.so" then permit |
|
|
|
|
|
native-fsread: filename eq "/var/run/ld.so.hints" then permit |
|
|
|
|
|
native-fsread: filename eq "<non-existent filename>" then deny[enoent] |
|
|
|
|
|
native-fsread: filename match "/usr/lib" then permit |
|
|
|
|
|
native-fsread: filename match "/usr/share/nls" then permit |
|
|
|
|
|
native-fsread: filename match "/usr/share/zoneinfo" then permit |
|
|
|
|
|
native-fsread: filename match "/var/spool/lpd" then permit |
|
|
|
|
|
native-fsread: filename match "/var/spool/output" then permit |
|
|
|
|
|
native-fstat: permit |
|
|
|
|
|
native-fstatfs: permit |
|
|
|
|
|
native-fswrite: filename eq "/dev/console" then permit |
|
|
|
|
|
native-fswrite: filename eq "/dev/null" then permit |
|
|
|
|
|
native-fswrite: filename eq "/var/log/lpd-errs" then permit |
|
|
|
|
|
native-fswrite: filename eq "/var/run/lpd.pid" then permit |
|
|
|
|
|
native-fswrite: filename eq "/var/run/printer" then permit |
|
|
|
|
|
native-fswrite: filename match "/var/spool/lpd/*" then permit |
|
|
|
|
|
native-fswrite: filename match "/var/spool/output/*" then permit |
|
|
|
|
|
native-ftruncate: permit |
|
|
|
|
|
native-getdirentries: permit |
|
|
|
|
|
native-getegid: permit |
|
|
|
|
|
native-getentropy: permit |
|
|
|
|
|
native-geteuid: permit |
|
|
|
|
|
native-getpid: permit |
|
|
|
|
|
native-getsockname: permit |
|
|
|
|
|
native-getsockopt: permit |
|
|
|
|
|
native-gettimeofday: permit |
|
|
|
|
|
native-issetugid: permit |
|
|
|
|
|
native-kbind: permit |
|
|
|
|
|
native-kill: permit |
|
|
|
|
|
native-listen: permit |
|
|
|
|
|
native-lseek: permit |
|
|
|
|
|
native-minherit: permit |
|
|
|
|
|
native-mmap: permit |
|
|
|
|
|
native-mprotect: permit |
|
|
|
|
|
native-mquery: permit |
|
|
|
|
|
native-munmap: permit |
|
|
|
|
|
native-nanosleep: permit |
|
|
|
|
|
native-pread: permit |
|
|
|
|
|
native-read: permit |
|
|
|
|
|
native-recvfrom: permit |
|
|
|
|
|
native-select: permit |
|
|
|
|
|
native-sendsyslog: permit |
|
|
|
|
|
native-sendto: permit |
|
|
|
|
|
native-setegid: gid eq "1" then permit |
|
|
|
|
|
native-seteuid: uid eq "0" then permit |
|
|
|
|
|
native-seteuid: uid eq "1" then permit |
|
|
|
|
|
native-setitimer: permit |
|
|
|
|
|
native-setpgid: permit |
|
|
|
|
|
native-setsid: permit |
|
|
|
|
|
native-setsockopt: permit |
|
|
|
|
|
native-sigaction: permit |
|
|
|
|
|
native-sigprocmask: permit |
|
|
|
|
|
native-sigreturn: permit |
|
|
|
|
|
native-socket: permit |
|
|
|
|
|
native-sysctl: permit |
|
|
|
|
|
native-umask: permit |
|
|
|
|
|
native-wait4: permit |
|
|
|
|
|
native-write: permit |
|
|
|