2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
10 #include <afsconfig.h>
11 #include "afs/param.h"
16 #include "afs/sysincludes.h"
17 #include "afsincludes.h"
18 #include <sys/namei.h>
21 osi_lookupname(char *aname, enum uio_seg seg, int followlink,
32 NDINIT(&n, LOOKUP, flags, seg, aname, current_proc());
33 if (error = namei(&n))
36 /* should we do this? */
37 VOP_UNLOCK(n.ni_vp, 0, current_proc());
42 * afs_suser() returns true if the caller is superuser, false otherwise.
44 * Note that it must NOT set errno.
47 afs_suser(void *credp)
50 struct proc *p = current_proc();
52 if ((error = suser(p->p_ucred, &p->p_acflag)) == 0) {