conf/160711: [PATCH] Add log path to /etc/defaults/devfs.rules due to r221323

Jase Thew freebsd at
Tue Sep 13 17:20:13 UTC 2011

>Number:         160711
>Category:       conf
>Synopsis:       [PATCH] Add log path to /etc/defaults/devfs.rules due to r221323
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 13 17:20:12 UTC 2011
>Originator:     Jase Thew
>Release:        FreeBSD 8.2-STABLE amd64
System: FreeBSD jailhost.localdomain 8.2-STABLE FreeBSD 8.2-STABLE #1 r221323: Tue Sep 13 13:38:57 BST 2011 toor at jailhost.localdomain:/usr/obj/usr/src/sys/JAILHOST amd64

        /etc/rc.d/jail attempts to create a symlink inside of a jail's devfs from ../var/log/run to /dev/log, as various applications expect
        syslogd's socket to be /dev/log. r221323 introduced a change that applies devfs.rules onto any directories or symlinks created
        inside of a devfs mount (eg, /dev) - this means that the /dev/log symlink gets hidden and said applications lose their ability to
        log (an example is security/php-suhosin port).
	Upgrade to stable/8 >= r221323, start a jail and check for existence of $jailroot/dev/log symlink

	Expose the log symlink inside of jails by adding the path to the jail ruleset in /etc/defaults/devfs.rules

--- patch-etc_defaults_devfs_rules begins here ---
--- /etc/defaults/devfs.rules.orig	2011-09-13 18:03:00.000000000 +0100
+++ /etc/defaults/devfs.rules	2011-09-13 18:01:00.000000000 +0100
@@ -83,3 +83,4 @@
 add include $devfsrules_hide_all
 add include $devfsrules_unhide_basic
 add include $devfsrules_unhide_login
+add path log unhide
--- patch-etc_defaults_devfs_rules ends here ---


More information about the freebsd-bugs mailing list