Subject: Re: lfs problem (after ~ 6th Sep)
To: Geoff Wing <gcw@pobox.com>
From: Kouichirou Hiratsuka <hira@po6.nsk.ne.jp>
List: current-users
Date: 09/12/2006 23:46:07
Hello,
At Tue, 12 Sep 2006 13:19:57 +1000,
Geoff Wing wrote:
>
> Ah, found it. The change in dofhopen() was misdone and was
> causing dofhopen() to always abort early.
>
> --- sys/kern/vfs_syscalls.c.org 2006-09-09 18:50:38.000000000 +1000
> +++ sys/kern/vfs_syscalls.c 2006-09-12 13:10:26.000000000 +1000
> @@ -1495,8 +1495,8 @@
> /*
> * Must be super user
> */
> - error = kauth_authorize_system(l->l_cred, KAUTH_SYSTEM_FILEHANDLE,
> - 0, NULL, NULL, NULL);
> + if ((error = kauth_authorize_system(l->l_cred, KAUTH_SYSTEM_FILEHANDLE,
> + 0, NULL, NULL, NULL)) != KAUTH_RESULT_ALLOW)
> return (error);
>
> flags = FFLAGS(oflags);
>
Revision 1.269 of vfs_syscalls.c fixes the problem. Thanks.
--
Kouichirou Hiratsuka
hira@po6.nsk.ne.jp