os: unexport local client creds handling
these functions aren't used by modules, so no need to export them. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1344>
This commit is contained in:
parent
cbc9f557e5
commit
5f19eab1ee
|
@ -44,6 +44,7 @@ in this Software without prior written authorization from The Open Group.
|
|||
#include <X11/X.h>
|
||||
#include <X11/Xproto.h>
|
||||
|
||||
#include "os/auth.h"
|
||||
#include "os/busfault.h"
|
||||
|
||||
#include "misc.h"
|
||||
|
|
|
@ -55,6 +55,7 @@ SOFTWARE.
|
|||
#include <X11/extensions/XI2.h>
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
#include "os/auth.h"
|
||||
|
||||
#include "windowstr.h"
|
||||
#include "inputstr.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"
|
||||
|
|
21
include/os.h
21
include/os.h
|
@ -354,27 +354,6 @@ typedef struct sockaddr *sockaddrPtr;
|
|||
extern _X_EXPORT int
|
||||
InvalidHost(sockaddrPtr /*saddr */ , int /*len */ , ClientPtr client);
|
||||
|
||||
#define LCC_UID_SET (1 << 0)
|
||||
#define LCC_GID_SET (1 << 1)
|
||||
#define LCC_PID_SET (1 << 2)
|
||||
#define LCC_ZID_SET (1 << 3)
|
||||
|
||||
typedef struct {
|
||||
int fieldsSet; /* Bit mask of fields set */
|
||||
int euid; /* Effective uid */
|
||||
int egid; /* Primary effective group id */
|
||||
int nSuppGids; /* Number of supplementary group ids */
|
||||
int *pSuppGids; /* Array of supplementary group ids */
|
||||
int pid; /* Process id */
|
||||
int zoneid; /* Only set on Solaris 10 & later */
|
||||
} LocalClientCredRec;
|
||||
|
||||
extern _X_EXPORT int
|
||||
GetLocalClientCreds(ClientPtr, LocalClientCredRec **);
|
||||
|
||||
extern _X_EXPORT void
|
||||
FreeLocalClientCreds(LocalClientCredRec *);
|
||||
|
||||
extern _X_EXPORT int
|
||||
ChangeAccessControl(ClientPtr /*client */ , int /*fEnabled */ );
|
||||
|
||||
|
|
|
@ -187,6 +187,8 @@ SOFTWARE.
|
|||
#define X_INCLUDE_NETDB_H
|
||||
#include <X11/Xos_r.h>
|
||||
|
||||
#include "os/auth.h"
|
||||
|
||||
#include "dixstruct.h"
|
||||
#include "osdep.h"
|
||||
|
||||
|
|
|
@ -48,6 +48,8 @@ from The Open Group.
|
|||
#endif
|
||||
#include <stdlib.h> /* for arc4random_buf() */
|
||||
|
||||
#include "os/auth.h"
|
||||
|
||||
#include "rpcauth.h"
|
||||
#include "xdmcp.h"
|
||||
#include "xdmauth.h"
|
||||
|
|
18
os/auth.h
18
os/auth.h
|
@ -30,4 +30,22 @@ int set_font_authorizations(char **authorizations,
|
|||
int *authlen,
|
||||
void *client);
|
||||
|
||||
#define LCC_UID_SET (1 << 0)
|
||||
#define LCC_GID_SET (1 << 1)
|
||||
#define LCC_PID_SET (1 << 2)
|
||||
#define LCC_ZID_SET (1 << 3)
|
||||
|
||||
typedef struct {
|
||||
int fieldsSet; /* Bit mask of fields set */
|
||||
int euid; /* Effective uid */
|
||||
int egid; /* Primary effective group id */
|
||||
int nSuppGids; /* Number of supplementary group ids */
|
||||
int *pSuppGids; /* Array of supplementary group ids */
|
||||
int pid; /* Process id */
|
||||
int zoneid; /* Only set on Solaris 10 & later */
|
||||
} LocalClientCredRec;
|
||||
|
||||
int GetLocalClientCreds(ClientPtr, LocalClientCredRec **);
|
||||
void FreeLocalClientCreds(LocalClientCredRec *);
|
||||
|
||||
#endif /* _XSERVER_OS_AUTH_H */
|
||||
|
|
|
@ -84,6 +84,8 @@
|
|||
#include <sys/sysctl.h>
|
||||
#endif
|
||||
|
||||
#include "os/auth.h"
|
||||
|
||||
/**
|
||||
* Try to determine a PID for a client from its connection
|
||||
* information. This should be called only once when new client has
|
||||
|
|
|
@ -100,6 +100,7 @@ SOFTWARE.
|
|||
|
||||
#include "dix/dix_priv.h"
|
||||
#include "os/audit.h"
|
||||
#include "os/auth.h"
|
||||
|
||||
#include "misc.h" /* for typedef of pointer */
|
||||
#include "osdep.h"
|
||||
|
|
Loading…
Reference in New Issue