Subject: Re: kern/35226: Problems with permissions in /usr/pkg/emul/linux/proc .
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Nicolas Joly <njoly@pasteur.fr>
List: netbsd-bugs
Date: 12/10/2006 23:55:02
The following reply was made to PR kern/35226; it has been noted by GNATS.

From: Nicolas Joly <njoly@pasteur.fr>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@NetBSD.org, gnats-admin@NetBSD.org,
	netbsd-bugs@NetBSD.org
Subject: Re: kern/35226: Problems with permissions in /usr/pkg/emul/linux/proc .
Date: Mon, 11 Dec 2006 00:51:59 +0100

 On Sun, Dec 10, 2006 at 11:30:00AM +0000, jfranz@bsdprojects.net wrote:
 > >Number:         35226
 > >Category:       kern
 > >Synopsis:       Problems with permissions in /usr/pkg/emul/linux/proc .
 [...]
 > >Arrival-Date:   Sun Dec 10 11:30:00 +0000 2006
 > >Originator:     Johann Franz
 > >Release:        NetBSD 4.0_BETA2 of 2006/12/09
 > >Organization:
 > >Environment:
 > System: NetBSD trillian 4.0_BETA2 NetBSD 4.0_BETA2 (TRILLIAN) #4: Sun Dec 10 11:18:47 CET 2006  jf@trillian:/usr/obj/sys/arch/i386/compile/TRILLIAN i386
 > Architecture: i386
 > Machine: i386
 > >Description:
 > Since 4.0 BETA2 I'm having problems with linux emulation and procfs that other users on IRC approved. 
 > A normal user can't access essential files in /usr/pkg/emul/linux/procfs, which may be the reason for some linux-emulated programs not working.
 > An earlier checkout of BETA2 a few days ago even didn't let a normal user do ls /usr/pkg/emul/linux/procfs at all.
 > >How-To-Repeat:
 > # mount -t procfs -o rw,linux procfs /usr/pkg/emul/linux/procfs
 > $ cat /usr/pkg/emul/linux/procfs/cpuinfo
 
 Same here, on -current.
 
 njoly@cixy [~]> uname -a
 NetBSD cixy.dial.pasteur.fr 4.99.5 NetBSD 4.99.5 (CIXY) #39: Sat Dec  9 18:11:44 CET 2006  njoly@cixy.dial.pasteur.fr:/local/src/NetBSD/obj/i386/sys/arch/i386/compile/CIXY i386
 njoly@cixy [~]> cat /emul/linux/proc/cpuinfo 
 cat: /emul/linux/proc/cpuinfo: Operation not permitted
 
 I tracked down to `procfs_rw()' (sys/miscfs/procfs/procfs_subr.c)
 where 'kauth_authorize_process()' call return a non-zero value.
 
 -- 
 Nicolas Joly
 
 Biological Software and Databanks.
 Institut Pasteur, Paris.