mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
os: unexport auth and access control management functions
These aren't called (and suited for being called) by drivers, thus drop them from the public module API. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
@@ -43,6 +43,9 @@ in this Software without prior written authorization from The Open Group.
|
||||
#include <fcntl.h>
|
||||
#include <X11/X.h>
|
||||
#include <X11/Xproto.h>
|
||||
|
||||
#include "os/auth.h"
|
||||
|
||||
#include "misc.h"
|
||||
#include "os.h"
|
||||
#include "dixstruct.h"
|
||||
|
||||
@@ -50,6 +50,9 @@ SOFTWARE.
|
||||
#endif
|
||||
|
||||
#include <X11/X.h>
|
||||
|
||||
#include "os/auth.h"
|
||||
|
||||
#include "misc.h"
|
||||
#include <X11/Xproto.h>
|
||||
#include <X11/extensions/XI2.h>
|
||||
|
||||
@@ -100,6 +100,8 @@ Equipment Corporation.
|
||||
#include <dix-config.h>
|
||||
#endif
|
||||
|
||||
#include "os/auth.h"
|
||||
|
||||
#include "misc.h"
|
||||
#include "scrnintstr.h"
|
||||
#include "os.h"
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
#include <X11/Xatom.h>
|
||||
|
||||
#include "dix/screenint_priv.h"
|
||||
#include "os/auth.h"
|
||||
|
||||
#include <selection.h>
|
||||
#include <micmap.h>
|
||||
|
||||
51
include/os.h
51
include/os.h
@@ -355,8 +355,6 @@ PrivsElevated(void);
|
||||
|
||||
extern _X_EXPORT void
|
||||
CheckUserParameters(int argc, char **argv, char **envp);
|
||||
extern _X_EXPORT void
|
||||
CheckUserAuthorization(void);
|
||||
|
||||
extern _X_EXPORT int
|
||||
AddHost(ClientPtr /*client */ ,
|
||||
@@ -410,9 +408,6 @@ GetLocalClientCreds(ClientPtr, LocalClientCredRec **);
|
||||
extern _X_EXPORT void
|
||||
FreeLocalClientCreds(LocalClientCredRec *);
|
||||
|
||||
extern _X_EXPORT int
|
||||
ChangeAccessControl(ClientPtr /*client */ , int /*fEnabled */ );
|
||||
|
||||
extern _X_EXPORT int
|
||||
GetClientFd(ClientPtr);
|
||||
|
||||
@@ -458,52 +453,6 @@ DefineSelf(int /*fd */ );
|
||||
extern _X_EXPORT void
|
||||
AugmentSelf(void *from, int len);
|
||||
|
||||
extern _X_EXPORT void
|
||||
RegisterAuthorizations(void);
|
||||
#endif
|
||||
|
||||
extern _X_EXPORT void
|
||||
InitAuthorization(const char * /*filename */ );
|
||||
|
||||
/* extern int LoadAuthorization(void); */
|
||||
|
||||
extern _X_EXPORT int
|
||||
AuthorizationFromID(XID id,
|
||||
unsigned short *name_lenp,
|
||||
const char **namep,
|
||||
unsigned short *data_lenp, char **datap);
|
||||
|
||||
extern _X_EXPORT XID
|
||||
CheckAuthorization(unsigned int /*namelength */ ,
|
||||
const char * /*name */ ,
|
||||
unsigned int /*datalength */ ,
|
||||
const char * /*data */ ,
|
||||
ClientPtr /*client */ ,
|
||||
const char ** /*reason */
|
||||
);
|
||||
|
||||
extern _X_EXPORT void
|
||||
ResetAuthorization(void);
|
||||
|
||||
extern _X_EXPORT int
|
||||
RemoveAuthorization(unsigned short name_length,
|
||||
const char *name,
|
||||
unsigned short data_length, const char *data);
|
||||
|
||||
extern _X_EXPORT int
|
||||
AddAuthorization(unsigned int /*name_length */ ,
|
||||
const char * /*name */ ,
|
||||
unsigned int /*data_length */ ,
|
||||
char * /*data */ );
|
||||
|
||||
#ifdef XCSECURITY
|
||||
extern _X_EXPORT XID
|
||||
GenerateAuthorization(unsigned int /* name_length */ ,
|
||||
const char * /* name */ ,
|
||||
unsigned int /* data_length */ ,
|
||||
const char * /* data */ ,
|
||||
unsigned int * /* data_length_return */ ,
|
||||
char ** /* data_return */ );
|
||||
#endif
|
||||
|
||||
extern _X_EXPORT int
|
||||
|
||||
40
os/auth.h
40
os/auth.h
@@ -26,4 +26,44 @@ typedef int (*AuthRemCFunc) (AuthRemCArgs);
|
||||
#define AuthRstCArgs void
|
||||
typedef int (*AuthRstCFunc) (AuthRstCArgs);
|
||||
|
||||
void CheckUserAuthorization(void);
|
||||
|
||||
void InitAuthorization(const char *filename);
|
||||
|
||||
int AuthorizationFromID(XID id,
|
||||
unsigned short *name_lenp,
|
||||
const char **namep,
|
||||
unsigned short *data_lenp, char **datap);
|
||||
|
||||
XID CheckAuthorization(unsigned int namelength,
|
||||
const char *name,
|
||||
unsigned int datalength,
|
||||
const char *data,
|
||||
ClientPtr client,
|
||||
const char **reason);
|
||||
|
||||
void ResetAuthorization(void);
|
||||
|
||||
int RemoveAuthorization(unsigned short name_length,
|
||||
const char *name,
|
||||
unsigned short data_length, const char *data);
|
||||
|
||||
int AddAuthorization(unsigned int name_length,
|
||||
const char *name,
|
||||
unsigned int data_length,
|
||||
char *data);
|
||||
|
||||
XID GenerateAuthorization(unsigned int name_length,
|
||||
const char *name,
|
||||
unsigned int data_length,
|
||||
const char *data,
|
||||
unsigned int *data_length_return,
|
||||
char **data_return);
|
||||
|
||||
void RegisterAuthorizations(void);
|
||||
|
||||
int ChangeAccessControl(ClientPtr client, int fEnabled);
|
||||
|
||||
int GetAccessControl(void);
|
||||
|
||||
#endif /* _XSERVER_OS_AUTH_H */
|
||||
|
||||
@@ -55,6 +55,8 @@
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "os/auth.h"
|
||||
|
||||
#include "client.h"
|
||||
#include "os.h"
|
||||
#include "dixstruct.h"
|
||||
|
||||
@@ -97,6 +97,9 @@ SOFTWARE.
|
||||
#include <sys/uio.h>
|
||||
|
||||
#endif /* WIN32 */
|
||||
|
||||
#include "os/auth.h"
|
||||
|
||||
#include "misc.h" /* for typedef of pointer */
|
||||
#include "osdep.h"
|
||||
#include "opaque.h"
|
||||
|
||||
@@ -103,6 +103,8 @@ __stdcall unsigned long GetTickCount(void);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "os/auth.h"
|
||||
|
||||
#include "dixstruct.h"
|
||||
#include "dix_priv.h"
|
||||
#include "xkbsrv.h"
|
||||
|
||||
Reference in New Issue
Block a user