OS Manuals

/usr/bin/selabel_lookup

SELinux library and simple utilities

From libselinux 3.11-r2 (os), captured 2026-11-05 by running selabel_lookup --help (exit 1). permalink

usage: /usr/bin/selabel_lookup -b backend [-v] [-r] -k key [-t type] [-f file]

Where:
	-b  The backend - "file", "media", "x", "db" or "prop"
	-v  Validate entries against loaded policy.
	-r  Use "raw" function.
	-k  Lookup key - Depends on backend.
	-t  Lookup type - Optional as depends on backend.
	-f  Optional file containing the specs (defaults to
	    those used by loaded policy).

Examples:
	/usr/bin/selabel_lookup -v -b file -k /run -t 0
	   lookup with validation against the loaded policy, the
	   "file" backend for path "/run" with mode = 0
	/usr/bin/selabel_lookup -r -b x -t 4 -k X11:ButtonPress
	   lookup_raw the "X" backend for type SELABEL_X_EVENT
	   using key "X11:ButtonPress"
Options (6)
OptionDescriptionSource
-bThe backend - "file", "media", "x", "db" or "prop"help
-vValidate entries against loaded policy.help
-rUse "raw" function.help
-kLookup key - Depends on backend.help
-tLookup type - Optional as depends on backend.help
-fOptional file containing the specs (defaults to those used by loaded policy).help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.