eliminate-libaudit-requirement-20001104
authorDerrick Brashear <shadow@andrew.cmu.edu>
Sun, 5 Nov 2000 03:25:14 +0000 (03:25 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sun, 5 Nov 2000 03:25:14 +0000 (03:25 +0000)
move afsconf_CheckAuth which requires afsconf_SuperUser into userok.c
where afsconf_SuperUser is, eliminating the need for libaudit when using
archive libraries (doesn't help with shlibs)

src/auth/authcon.c
src/auth/userok.c

index 9772a43..ac8d81e 100644 (file)
@@ -74,16 +74,6 @@ extern struct rx_securityClass *rxkad_NewClientSecurityObject();
 #endif /* defined(UKERNEL) */
 
 
-#if !defined(UKERNEL)
-int afsconf_CheckAuth(adir, acall)
-register struct rx_call *acall;
-register struct afsconf_dir *adir; {
-    LOCK_GLOBAL_MUTEX
-    return ((afsconf_SuperUser(adir, acall, (char *)0) == 0)? 10029 : 0);
-    UNLOCK_GLOBAL_MUTEX
-}
-#endif /* !defined(UKERNEL) */
-
 /* return a null security object if nothing else can be done */
 static afs_int32 QuickAuth(astr, aindex)
 struct rx_securityClass **astr;
index 0eef770..33a5a8a 100644 (file)
 #include "afs/audit.h"
 
 
+#if !defined(UKERNEL)
+int afsconf_CheckAuth(adir, acall)
+register struct rx_call *acall;
+register struct afsconf_dir *adir; {
+    LOCK_GLOBAL_MUTEX
+    return ((afsconf_SuperUser(adir, acall, (char *)0) == 0)? 10029 : 0);
+    UNLOCK_GLOBAL_MUTEX
+}
+#endif /* !defined(UKERNEL) */
+
 static GetNoAuthFlag(adir)
 struct afsconf_dir *adir; {
     if (access(AFSDIR_SERVER_NOAUTH_FILEPATH, 0) == 0) {