SE Android | 8c48de1 | 2012-01-24 05:27:18 -0800 | [diff] [blame] | 1 | .TH CHECKPOLICY 8 |
| 2 | .SH NAME |
| 3 | checkpolicy \- SELinux policy compiler |
| 4 | .SH SYNOPSIS |
| 5 | .B checkpolicy |
Stephen Smalley | 968aed0 | 2013-10-30 15:38:49 -0400 | [diff] [blame] | 6 | .I "[\-b] [\-d] [\-M] [\-c policyvers] [\-o output_file] [input_file]" |
SE Android | 8c48de1 | 2012-01-24 05:27:18 -0800 | [diff] [blame] | 7 | .br |
| 8 | .SH "DESCRIPTION" |
| 9 | This manual page describes the |
| 10 | .BR checkpolicy |
| 11 | command. |
| 12 | .PP |
| 13 | .B checkpolicy |
| 14 | is a program that checks and compiles a SELinux security policy configuration |
| 15 | into a binary representation that can be loaded into the kernel. If no |
| 16 | input file name is specified, checkpolicy will attempt to read from |
Stephen Smalley | 968aed0 | 2013-10-30 15:38:49 -0400 | [diff] [blame] | 17 | policy.conf or policy, depending on whether the \-b flag is specified. |
SE Android | 8c48de1 | 2012-01-24 05:27:18 -0800 | [diff] [blame] | 18 | |
| 19 | .SH OPTIONS |
| 20 | .TP |
| 21 | .B \-b,\-\-binary |
| 22 | Read an existing binary policy file rather than a source policy.conf file. |
| 23 | .TP |
| 24 | .B \-d,\-\-debug |
| 25 | Enter debug mode after loading the policy. |
| 26 | .TP |
| 27 | .B \-M,\-\-mls |
| 28 | Enable the MLS policy when checking and compiling the policy. |
| 29 | .TP |
| 30 | .B \-o,\-\-output filename |
| 31 | Write a binary policy file to the specified filename. |
| 32 | .TP |
| 33 | .B \-c policyvers |
| 34 | Specify the policy version, defaults to the latest. |
| 35 | .TP |
| 36 | .B \-t,\-\-target |
| 37 | Specify the target platform (selinux or xen). |
| 38 | .TP |
| 39 | .B \-U,\-\-handle-unknown <action> |
| 40 | Specify how the kernel should handle unknown classes or permissions (deny, allow or reject). |
| 41 | .TP |
| 42 | .B \-V,\-\-version |
| 43 | Show version information. |
| 44 | .TP |
| 45 | .B \-h,\-\-help |
| 46 | Show usage information. |
| 47 | |
| 48 | .SH "SEE ALSO" |
Stephen Smalley | ba8e992 | 2012-09-25 10:57:09 -0400 | [diff] [blame] | 49 | SELinux documentation at http://www.nsa.gov/research/selinux, |
SE Android | 8c48de1 | 2012-01-24 05:27:18 -0800 | [diff] [blame] | 50 | especially "Configuring the SELinux Policy". |
| 51 | |
| 52 | |
| 53 | .SH AUTHOR |
| 54 | This manual page was written by Arpad Magosanyi <mag@bunuel.tii.matav.hu>, |
| 55 | and edited by Stephen Smalley <sds@epoch.ncsc.mil>. |
| 56 | The program was written by Stephen Smalley <sds@epoch.ncsc.mil>. |