Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/dist/pf/net
On 30.12.09 08:00, Elad Efrat wrote:
> Module Name: src
> Committed By: elad
> Date: Wed Dec 30 07:00:01 UTC 2009
>
> Modified Files:
> src/sys/dist/pf/net: pf.c
>
> Log Message:
> Get uid/gid from the socket's credentials.
>
>
> To generate a diff of this commit:
> cvs rdiff -u -r1.57 -r1.58 src/sys/dist/pf/net/pf.c
>
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.
>
>
> @@ -2824,12 +2824,13 @@
> break;
> #endif /* INET6 */
> }
> - pd->lookup.uid = so->so_uidinfo->ui_uid;
> + pd->lookup.uid = kauth_cred_geteuid(so->so_cred);
> + pd->lookup.gid = kauth_cred_getegid(so->so_cred);
> #else
> so = inp->inp_socket;
> pd->lookup.uid = so->so_euid;
> + pd->lookup.uid = so->so_egid;
typo. should be pd->lookup.gid.
> #endif /* !__NetBSD__ */
> - pd->lookup.gid = so->so_egid;
> pd->lookup.pid = so->so_cpid;
> return (1);
> }
>
Home |
Main Index |
Thread Index |
Old Index