eliminate-libaudit-requirement-20001104

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)
This commit is contained in:
Derrick Brashear 2000-11-05 03:25:14 +00:00 committed by Derrick Brashear
parent 17fdc9038a
commit 6024581217
2 changed files with 10 additions and 10 deletions

View 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;

View File

@ -52,6 +52,16 @@
#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) {