Since syslog messages are now sent via the sendsyslog(2) system call,
authorderaadt <deraadt@openbsd.org>
Fri, 18 Jul 2014 18:20:42 +0000 (18:20 +0000)
committerderaadt <deraadt@openbsd.org>
Fri, 18 Jul 2014 18:20:42 +0000 (18:20 +0000)
we no longer need the spread of dev/log AF_UNIX sockets all over the
various chroot spaces.
ok beck millert aja

etc/mtree/4.4BSD.dist
etc/rc.d/syslogd

index 65fce8d..6ab061e 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: 4.4BSD.dist,v 1.260 2014/07/18 11:35:32 ajacoutot Exp $
+#      $OpenBSD: 4.4BSD.dist,v 1.261 2014/07/18 18:20:42 deraadt Exp $
 
 /set type=dir uname=root gname=wheel mode=0755
 
@@ -715,8 +715,6 @@ var
 
     # ./var/empty
     empty                      mode=0755
-        dev                    mode=0555
-        ..
     ..
 
     # ./var/backups
@@ -773,8 +771,6 @@ var
 
     # ./var/named
     named
-        dev
-        ..
         etc                    uname=root gname=named mode=0750
         ..
         master
@@ -791,8 +787,6 @@ var
     nsd
         db                     uname=root gname=_nsd mode=0775
         ..
-        dev
-        ..
         etc                    uname=root gname=_nsd mode=0750
         ..
 
@@ -857,8 +851,6 @@ var
 
     # ./var/unbound
     unbound
-        dev                    uname=root gname=wheel mode=0755
-        ..
         etc                    uname=root gname=wheel mode=0755
         ..
         db                     uname=root gname=_unbound mode=0775
@@ -869,8 +861,6 @@ var
     www                                type=dir uname=root gname=daemon mode=755
         cache                  type=dir uname=www gname=daemon mode=1700
         ..
-        dev                    type=dir uname=root gname=daemon mode=755
-        ..
         cgi-bin                        type=dir uname=root gname=daemon mode=755
         ..
         htdocs                 type=dir uname=root gname=daemon mode=755
index bd02375..9f4e104 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $OpenBSD: syslogd,v 1.3 2014/03/24 09:24:09 sthen Exp $
+# $OpenBSD: syslogd,v 1.4 2014/07/18 18:20:42 deraadt Exp $
 
 daemon="/usr/sbin/syslogd"
 
@@ -9,17 +9,6 @@ daemon="/usr/sbin/syslogd"
 pexp="syslogd: \[priv\]"
 
 rc_pre() {
-       [ X"${nginx_flags}" != X"-u" ] && rm -f /var/www/dev/log && \
-               daemon_flags="${daemon_flags} -a /var/www/dev/log"
-       [ X"${named_flags}" != X"NO" ] && rm -f /var/named/dev/log && \
-               daemon_flags="${daemon_flags} -a /var/named/dev/log"
-       [ X"${nsd_flags}" != X"NO" ] && rm -f /var/nsd/dev/log && \
-               daemon_flags="${daemon_flags} -a /var/nsd/dev/log"
-       [ X"${unbound_flags}" != X"NO" ] && rm -f /var/unbound/dev/log && \
-               daemon_flags="${daemon_flags} -a /var/unbound/dev/log"
-       [ -d /var/empty ] && rm -f /var/empty/dev/log && \
-               mkdir -p -m 0555 /var/empty/dev && \
-               daemon_flags="${daemon_flags} -a /var/empty/dev/log"
        rm -f /dev/log
 }