From 16e3fbd2c114d665755299002f1c50dd11ba7245 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 27 Apr 1999 11:18:52 +0000 Subject: Suser() simplification: 1: s/suser/suser_xxx/ 2: Add new function: suser(struct proc *), prototyped in . 3: s/suser_xxx(\([a-zA-Z0-9_]*\)->p_ucred, \&\1->p_acflag)/suser(\1)/ The remaining suser_xxx() calls will be scrutinized and dealt with later. There may be some unneeded #include , but they are left as an exercise for Bruce. More changes to the suser() API will come along with the "jail" code. --- sys/net/raw_usrreq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/net/raw_usrreq.c') diff --git a/sys/net/raw_usrreq.c b/sys/net/raw_usrreq.c index 348bb85..109c942 100644 --- a/sys/net/raw_usrreq.c +++ b/sys/net/raw_usrreq.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)raw_usrreq.c 8.1 (Berkeley) 6/10/93 - * $Id: raw_usrreq.c,v 1.15 1997/09/14 03:10:38 peter Exp $ + * $Id: raw_usrreq.c,v 1.16 1997/11/07 08:53:18 phk Exp $ */ #include @@ -158,7 +158,7 @@ raw_uattach(struct socket *so, int proto, struct proc *p) if (rp == 0) return EINVAL; - if (p && (error = suser(p->p_ucred, &p->p_acflag)) != 0) + if (p && (error = suser(p)) != 0) return error; return raw_attach(so, proto); } -- cgit v1.1