kern/63954: devfs looses permissions

Edwin Groothuis edwin at mavetju.org
Mon Mar 8 17:30:20 PST 2004


>Number:         63954
>Category:       kern
>Synopsis:       devfs looses permissions
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 08 17:30:17 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Edwin Groothuis
>Release:        FreeBSD 5.2.1-RELEASE i386
>Organization:
-
>Environment:
System: FreeBSD k7.mavetju 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #3: Fri Feb 27 13:54:29 EST 2004 edwin at k7.mavetju:/usr/src/sys/i386/compile/k7 i386

>Description:

I have this in /etc/devfs.conf:
	perm    bpf0    640
	perm    bpf1    640
	perm    bpf2    640
	perm    bpf3    640

Running "/etc/rc.d/devfs start" will create the devices:
	[~] edwin at k7>ls -al /dev/bpf*
	crw-r-----  1 root  wheel   23,   0 Mar  8 16:46 /dev/bpf0
	crw-r-----  1 root  wheel   23,   1 Feb 27 15:09 /dev/bpf1
	crw-r-----  1 root  wheel   23,   2 Feb 27 16:46 /dev/bpf3
	crw-r-----  1 root  wheel   23,   3 Feb 27 16:46 /dev/bpf3

Only to see the next morning:
	[~] edwin at k7>ls -al /dev/bpf*
	crw-r-----  1 root  wheel   23,   0 Mar  8 16:46 /dev/bpf0
	crw-r-----  1 root  wheel   23,   1 Feb 27 15:09 /dev/bpf1

	(bpf1 is constantly opened by trafshow)

"devfs rule showsets" and "devfs rule show" don't return any
information.

>How-To-Repeat:

as above

>Fix:

Any suggestions?
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list