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
15 #include <afsconfig.h>
16 #include "afs/param.h"
21 #include "afs/sysincludes.h" /* Standard vendor system headers */
22 #include "afsincludes.h" /* Afs-based standard headers */
25 * afs_suser() returns true if the caller is superuser, false otherwise.
27 * Note that it must NOT set errno.
30 afs_suser(void *credp)
34 if ((error = suser(u.u_cred, &u.u_acflag)) == 0) {