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