Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F169701668
D27411.id80113.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D27411.id80113.diff
View Options
Index: libexec/rc/rc.d/syslogd
===================================================================
--- libexec/rc/rc.d/syslogd
+++ libexec/rc/rc.d/syslogd
@@ -21,6 +21,7 @@
extra_commands="reload"
sockfile="/var/run/syslogd.sockets"
+privsockfile="/var/run/syslogd.privsockets"
evalargs="rc_flags=\"\`set_socketlist\` \$rc_flags\""
syslogd_precmd()
@@ -37,6 +38,7 @@
# Create default list of syslog sockets to watch
#
( umask 022 ; > $sockfile )
+ ( umask 022 ; > $privsockfile )
# If running named(8) or ntpd(8) chrooted, added appropriate
# syslog socket to list of sockets to watch.
@@ -48,6 +50,14 @@
fi
done
+ # We can also provide logging facilities to jails
+ # Jails might need a log socket for priviledged applications too
+ for _j in $altlog_jaillist; do
+ _ldir=`jls -aj $_j path`
+ echo "${_ldir}/var/run/log" >> $sockfile
+ echo "${_ldir}/var/run/logpriv" >> $privsockfile
+ done
+
# If other sockets have been provided, change run_rc_command()'s
# internal copy of $syslogd_flags to force use of specific
# syslogd sockets.
@@ -56,6 +66,10 @@
echo "/var/run/log" >> $sockfile
eval $evalargs
fi
+ if [ -s $privsockfile ]; then
+ echo "/var/run/logpriv" >> $sockfile
+ eval $evalargs
+ fi
return 0
}
@@ -68,6 +82,9 @@
for _s in `cat $sockfile | tr '\n' ' '` ; do
_socketargs="-l $_s $_socketargs"
done
+ for _s in `cat $privsockfile | tr '\n' ' '` ; do
+ _socketargs="-S $_s $_socketargs"
+ done
echo $_socketargs
}
load_rc_config $name
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Sep 3, 8:13 AM (4 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38084154
Default Alt Text
D27411.id80113.diff (1 KB)
Attached To
Mode
D27411: add altlog_jaillist to syslogd's rc script
Attached
Detach File
Event Timeline
Log In to Comment