Subject: Re: CVS commit: src/sys/dev/ic
To: Juan RP <juan@xtrarom.org>
From: Jason Thorpe <thorpej@shagadelic.org>
List: source-changes
Date: 07/22/2006 09:02:19
On Jul 22, 2006, at 2:35 AM, Juan RP wrote:

> What about this patch instead?

I think that should be l->l_cred and l->l_acflag now.

>
> Index: com.c
> ===================================================================
> RCS file: /cvsroot/src/sys/dev/ic/com.c,v
> retrieving revision 1.249
> diff -u -p -r1.249 com.c
> --- com.c       22 Jul 2006 09:22:21 -0000      1.249
> +++ com.c       22 Jul 2006 09:35:01 -0000
> @@ -1022,8 +1022,8 @@ comioctl(dev_t dev, u_long cmd, caddr_t
>         error = 0;
>         switch (cmd) {
>         case TIOCSFLAGS:
> -               error = kauth_authorize_generic(p->p_cred,
> -                   KAUTH_GENERIC_ISSUSER, &p->p_acflag);
> +               error = kauth_authorize_generic(l->l_proc->p_cred,
> +                   KAUTH_GENERIC_ISSUSER, &l->l_proc->p_acflag);
>                 break;
>         default:
>                 /* nothing */

-- thorpej