diff options
author | Rami Ylimäki <rami.ylimaki@vincit.fi> | 2010-12-22 16:51:09 +0200 |
---|---|---|
committer | Rami Ylimäki <rami.ylimaki@vincit.fi> | 2010-12-23 13:53:18 +0200 |
commit | 1e933665bef26c74196bb7c59910e6a78bcacf0e (patch) | |
tree | c20729cbb2a38a82af774e259d5ab053cee3be6f /dix/main.c | |
parent | 671b2a1823a1c90d0b6254e2e2af8865151fff8c (diff) |
os: Add facilities for client ID tracking.
An interface is provided for figuring out the PID and process name of
a client. Make some existing functionality from SELinux and IA
extensions available for general use.
Signed-off-by: Rami Ylimäki <rami.ylimaki@vincit.fi>
Reviewed-by: Tiago Vignatti <tiago.vignatti@nokia.com>
Diffstat (limited to 'dix/main.c')
-rw-r--r-- | dix/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dix/main.c b/dix/main.c index 692bec1c5..31e2d48c4 100644 --- a/dix/main.c +++ b/dix/main.c @@ -104,6 +104,7 @@ Equipment Corporation. #include "extnsionst.h" #include "privates.h" #include "registry.h" +#include "client.h" #ifdef PANORAMIX #include "panoramiXsrv.h" #else @@ -258,6 +259,7 @@ int main(int argc, char *argv[], char *envp[]) InitCoreDevices(); InitInput(argc, argv); InitAndStartDevices(); + ReserveClientIds(serverClient); dixSaveScreens(serverClient, SCREEN_SAVER_FORCER, ScreenSaverReset); @@ -323,6 +325,7 @@ int main(int argc, char *argv[], char *envp[]) screenInfo.numScreens = i; } + ReleaseClientIds(serverClient); dixFreePrivates(serverClient->devPrivates, PRIVATE_CLIENT); serverClient->devPrivates = NULL; |