blob: 600d5cdde6113f9b47b23ab6cb69a6349df146d6 [file] [log] [blame]
Joshua Brindle13cd4c82008-08-19 15:30:36 -04001.TH CHECKPOLICY 8
2.SH NAME
3checkpolicy \- SELinux policy compiler
4.SH SYNOPSIS
5.B checkpolicy
James Carterb1d94562015-04-01 10:05:04 -04006.I "[\-b] [\-C] [\-d] [\-M] [\-c policyvers] [\-o output_file] [input_file]"
Joshua Brindle13cd4c82008-08-19 15:30:36 -04007.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
Laurent Bigonvillef074bb32013-05-10 14:45:18 +020017policy.conf or policy, depending on whether the \-b flag is specified.
Joshua Brindle13cd4c82008-08-19 15:30:36 -040018
19.SH OPTIONS
20.TP
Guido Trentalanciabf57d232009-11-02 18:14:28 +010021.B \-b,\-\-binary
Joshua Brindle13cd4c82008-08-19 15:30:36 -040022Read an existing binary policy file rather than a source policy.conf file.
23.TP
James Carterb1d94562015-04-01 10:05:04 -040024.B \-C,\-\-cil
25Write CIL policy file rather than binary policy file.
26.TP
Guido Trentalanciabf57d232009-11-02 18:14:28 +010027.B \-d,\-\-debug
Joshua Brindle13cd4c82008-08-19 15:30:36 -040028Enter debug mode after loading the policy.
29.TP
Guido Trentalanciabf57d232009-11-02 18:14:28 +010030.B \-M,\-\-mls
Joshua Brindle13cd4c82008-08-19 15:30:36 -040031Enable the MLS policy when checking and compiling the policy.
32.TP
Guido Trentalanciabf57d232009-11-02 18:14:28 +010033.B \-o,\-\-output filename
Joshua Brindle13cd4c82008-08-19 15:30:36 -040034Write a binary policy file to the specified filename.
35.TP
36.B \-c policyvers
37Specify the policy version, defaults to the latest.
Guido Trentalanciabf57d232009-11-02 18:14:28 +010038.TP
39.B \-t,\-\-target
40Specify the target platform (selinux or xen).
41.TP
42.B \-U,\-\-handle-unknown <action>
43Specify how the kernel should handle unknown classes or permissions (deny, allow or reject).
44.TP
45.B \-V,\-\-version
46Show version information.
47.TP
48.B \-h,\-\-help
49Show usage information.
Joshua Brindle13cd4c82008-08-19 15:30:36 -040050
51.SH "SEE ALSO"
Dan Walsh18e3a8d2012-01-16 12:09:43 -050052SELinux documentation at http://www.nsa.gov/research/selinux,
Joshua Brindle13cd4c82008-08-19 15:30:36 -040053especially "Configuring the SELinux Policy".
54
55
56.SH AUTHOR
57This manual page was written by Arpad Magosanyi <mag@bunuel.tii.matav.hu>,
58and edited by Stephen Smalley <sds@epoch.ncsc.mil>.
59The program was written by Stephen Smalley <sds@epoch.ncsc.mil>.