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: Elad Efrat <elad@NetBSD.org>
List: netbsd-bugs
Date: 12/11/2006 09:15:05
The following reply was made to PR kern/35226; it has been noted by GNATS.
From: Elad Efrat <elad@NetBSD.org>
To: Nicolas Joly <njoly@pasteur.fr>
Cc: gnats-bugs@NetBSD.org
Subject: Re: kern/35226: Problems with permissions in /usr/pkg/emul/linux/proc .
Date: Mon, 11 Dec 2006 11:12:25 +0200
Nicolas Joly wrote:
> 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.
that's a known issue that I already have a fix for. I'm not sure what
kind of semantics we want to have in procfs (ie., exclude cpuinfo from
the kauth check, or do that depending on uio_rw, or put it in the
secmodel) so I'm holding it for now.
-e.