OS Manuals

/usr/bin/selabel_partial_match

SELinux library and simple utilities

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

/usr/bin/selabel_partial_match: invalid option -- '-'
usage:  /usr/bin/selabel_partial_match [-v] -p <path> [-f file]

Where:
	-v  Validate file_contxts entries against loaded policy.
	-p  Path to check if a match or partial match is possible
	    against a regex entry in the file_contexts file.
	-f  Optional file_contexts file (defaults to current policy).

Example:
	/usr/bin/selabel_partial_match -p /sys/devices/system/cpu/online
	   Check if a match or partial match is possible against
	   the path "/sys/devices/system/cpu/online", returning
	   TRUE or FALSE.
Options (3)
OptionDescriptionSource
-vValidate file_contxts entries against loaded policy.help
-pPath to check if a match or partial match is possible against a regex entry in the file_contexts file.help
-fOptional file_contexts file (defaults to current 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.