selabel_mediaSection: SELinux API documentation (5)
Updated: 18 Jun 2007
Index Return to Main Contents
NAMEselabel_media - userspace SELinux labeling interface: media contexts backend.
int selabel_lookup(struct selabel_handle *hnd, security_context_t *context,
const char *device_name, int unused);
DESCRIPTIONThe media contexts backend maps from media device names such as "cdrom" or "floppy" into security contexts. It is used to find the appropriate context for establishing context mounts on these devices.
The integer lookup argument is currently unused and should be set to zero.
OPTIONSIn 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 media contexts file.
SEE ALSOselabel_open(3), selabel_lookup(3), selabel_stats(3), selinux(8)
This document was created by man2html, using the manual pages.
Time: 05:34:00 GMT, December 24, 2015