xace: rename hostlist security hook to "server" as this hook will be used

for other types of server access besides just the host list.
This commit is contained in:
Eamon Walsh 2007-08-15 14:14:25 -04:00 • committed by Eamon Walsh
commit 3c9553ac2c
7 changed files with 17 additions and 15 deletions

View file

@ -1500,7 +1500,7 @@ AuthorizedClient(ClientPtr client)
return TRUE;
/* untrusted clients can't change host access */
if (XaceHook(XACE_HOSTLIST_ACCESS, client, DixWriteAccess) != Success)
if (XaceHook(XACE_SERVER_ACCESS, client, DixWriteAccess) != Success)
return FALSE;
return LocalClient(client);