diff options
author | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2007-08-15 14:14:25 -0400 |
---|---|---|
committer | Eamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil> | 2007-08-15 14:14:25 -0400 |
commit | 3c9553ac2cac7f3a41966def44a50d722d7e645b (patch) | |
tree | 7c0e73e257fadf3cd512b109cfa06262eb8cbc55 /Xext/xselinux.c | |
parent | dc84bb3418933297a8c005070902d9a91ed3d18f (diff) |
xace: rename hostlist security hook to "server" as this hook will be used
for other types of server access besides just the host list.
Diffstat (limited to 'Xext/xselinux.c')
-rw-r--r-- | Xext/xselinux.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Xext/xselinux.c b/Xext/xselinux.c index 038ec59c4..9cb2f326b 100644 --- a/Xext/xselinux.c +++ b/Xext/xselinux.c @@ -1175,15 +1175,15 @@ XSELinuxDrawable(CallbackListPtr *pcbl, pointer unused, pointer calldata) } /* XSELinuxDrawable */ static void -XSELinuxHostlist(CallbackListPtr *pcbl, pointer unused, pointer calldata) +XSELinuxServer(CallbackListPtr *pcbl, pointer unused, pointer calldata) { - XaceHostlistAccessRec *rec = (XaceHostlistAccessRec*)calldata; + XaceServerAccessRec *rec = (XaceServerAccessRec*)calldata; access_vector_t perm = (rec->access_mode == DixReadAccess) ? XSERVER__GETHOSTLIST : XSERVER__SETHOSTLIST; if (ServerPerm(rec->client, SECCLASS_XSERVER, perm) != Success) rec->status = BadAccess; -} /* XSELinuxHostlist */ +} /* XSELinuxServer */ /* Extension callbacks */ static void @@ -1397,7 +1397,7 @@ XSELinuxExtensionInit(INITARGS) XaceRegisterCallback(XACE_EXT_DISPATCH, XSELinuxExtDispatch, NULL); XaceRegisterCallback(XACE_RESOURCE_ACCESS, XSELinuxResLookup, NULL); XaceRegisterCallback(XACE_MAP_ACCESS, XSELinuxMap, NULL); - XaceRegisterCallback(XACE_HOSTLIST_ACCESS, XSELinuxHostlist, NULL); + XaceRegisterCallback(XACE_SERVER_ACCESS, XSELinuxServer, NULL); XaceRegisterCallback(XACE_BACKGRND_ACCESS, XSELinuxBackgrnd, NULL); XaceRegisterCallback(XACE_DRAWABLE_ACCESS, XSELinuxDrawable, NULL); XaceRegisterCallback(XACE_PROPERTY_ACCESS, XSELinuxProperty, NULL); |