Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Sep 2011 18:17:55 +0100 (BST)
From:      Jase Thew <freebsd@beardz.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Jaakko Heinonen <jh@FreeBSD.org>
Subject:   conf/160711: [PATCH] Add log path to /etc/defaults/devfs.rules due to r221323
Message-ID:  <201109131717.p8DHHtY1068128@beardz.net>
Resent-Message-ID: <201109131720.p8DHKCtD019506@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 13 17:20:12 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Jase Thew
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
>Environment:
System: FreeBSD jailhost.localdomain 8.2-STABLE FreeBSD 8.2-STABLE #1 r221323: Tue Sep 13 13:38:57 BST 2011 toor@jailhost.localdomain:/usr/obj/usr/src/sys/JAILHOST amd64


	
>Description:
        /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).
>How-To-Repeat:
	Upgrade to stable/8 >= r221323, start a jail and check for existence of $jailroot/dev/log symlink
>Fix:

	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 ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109131717.p8DHHtY1068128>