mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 15:00:12 +00:00
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:
parent
17fdc9038a
commit
6024581217
@ -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;
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user