blob: f79239e0ea1b0fb8dccb48891c41a3b7c03919ef [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
6.I "[-b] [-d] [-M] [-c policyvers] [-o output_file] [input_file]"
7.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
17policy.conf or policy, depending on whether the -b flag is specified.
18
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
Guido Trentalanciabf57d232009-11-02 18:14:28 +010024.B \-d,\-\-debug
Joshua Brindle13cd4c82008-08-19 15:30:36 -040025Enter debug mode after loading the policy.
26.TP
Guido Trentalanciabf57d232009-11-02 18:14:28 +010027.B \-M,\-\-mls
Joshua Brindle13cd4c82008-08-19 15:30:36 -040028Enable the MLS policy when checking and compiling the policy.
29.TP
Guido Trentalanciabf57d232009-11-02 18:14:28 +010030.B \-o,\-\-output filename
Joshua Brindle13cd4c82008-08-19 15:30:36 -040031Write a binary policy file to the specified filename.
32.TP
33.B \-c policyvers
34Specify the policy version, defaults to the latest.
Guido Trentalanciabf57d232009-11-02 18:14:28 +010035.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.
Joshua Brindle13cd4c82008-08-19 15:30:36 -040047
48.SH "SEE ALSO"
49SELinux documentation at http://www.nsa.gov/selinux,
50especially "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>.