XSetAccessControl()XSetAccessControl()NameXSetAccessControl – disable or enable access control.
Synopsis
XSetAccessControl(display, mode)
Display *display;
int mode;
Arguments
display Specifies a connection to an X server; returned from
XOpenDisplay().
mode Specifies whether you want to enable or disable the access
control. Pass one of these constants: EnableAccess or Dis‐
ableAccess.
DescriptionXSetAccessControl() specifies whether the server should check the host
access list before allowing access to clients running on remote hosts.
If the constant used is DisableAccess, clients from any host have
access unchallenged.
This routine can only be called from a client running on the same host
as the server.
For more information on access control lists, see Volume One, Chapter
15, Other Programming Techniques.
Errors
BadAccess
BadValue
See AlsoXAddHost(), XAddHosts(), XDisableAccessControl(), XEnableAccessCon‐
trol(), XListHosts(), XRemoveHost(), XRemoveHosts().
Xlib - Host Access XSetAccessControl()