Provided by: selinux-utils_2.0.65-2_i386
selabel_x - userspace SELinux labeling interface: X Window System
int selabel_lookup(struct selabel_handle *hnd,
const char *object_name, int object_type);
The X contexts backend maps from X Window System object names into
security contexts. It is used to find the appropriate context for X
Window System objects whose significance and/or usage semantics are
determined primarily by name. This backend is also used to determine
the default context for labeling remotely connected X clients.
The object_type argument should be set to one of the following values:
The object_name argument specifies the name of a window
property, such as "WM_NAME".
The object_name argument specifies the name of a protocol
extension, such as "RENDER".
The object_name argument is ignored and should be set to NULL.
The default context for labeling remote X clients is returned.
In addition to the global options described in selabel_open(3), this
backend recognizes the following options:
A non-null value for this option specifies a path to a file that
will be opened in lieu of the standard X contexts file.
selabel_open(3), selabel_lookup(3), selabel_stats(3), selinux(8)
18 Jun 2007 selabel_x(5)