OS Manuals

/usr/bin/checkpolicy

SELinux policy checkpolicy

From checkpolicy 3.11-r4 (enterprise-packages), captured 2026-11-08 by running checkpolicy --help (exit 1). permalink

usage:  /usr/bin/checkpolicy [-b[F]] [-C] [-d] [-U handle_unknown (allow,deny,reject)] [-M] [-N] [-c policyvers (15-35)] [-o output_file|-] [-S] [-O] [-t target_platform (selinux,xen)] [-E] [-V] [-L] [input_file]
Options (16)
OptionDescriptionSource
-b, --binaryRead an existing binary policy file rather than a source policy.conf file.man
-F, --confWrite policy.conf file rather than binary policy file.man
-C, --cilWrite CIL policy file rather than binary policy file.man
-d, --debugEnter debug mode after loading the policy.man
-U, --handle-unknown actionSpecify how the kernel should handle unknown classes or permissions (deny, allow or reject).man
-M, --mlsEnable the MLS policy when checking and compiling the policy.man
-N, --disable-neverallowDo not check neverallow rules.man
-L, --line-marker-for-allowOutput line markers for allow rules, in addition to neverallow rules.man
-c policyversSpecify the policy version, defaults to the latest.man
-o, --output filenameWrite a policy file (binary, policy.conf, or CIL policy) to the specified filename.man
-S, --sortSort ocontexts before writing out the binary policy.man
-t, --targetSpecify the target platform (selinux or xen).man
-O, --optimizeOptimize the final kernel policy (remove redundant rules).man
-E, --werrorTreat warnings as errorsman
-V, --versionShow version information.man
-h, --helpShow usage information.man
Examples (1) from the manual page, untested

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