Debian Codegraph @

checkpolicy/checkpolicy.8

raw
1 .TH CHECKPOLICY 8
2 .SH NAME
3 checkpolicy \- SELinux policy compiler
4 .SH SYNOPSIS
5 .B checkpolicy
6 .I "[\-b[F]] [\-C] [\-d] [\-U handle_unknown (allow,deny,reject)] [\-M] [\-c policyvers] [\-o output_file] [\-S] [\-t target_platform (selinux,xen)] [\-V] [input_file]"
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
17 policy.conf or policy, depending on whether the \-b flag is specified.
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 \-F,\-\-conf
25 Write policy.conf file rather than binary policy file. Can only be used with binary policy file.
26 .TP
27 .B \-C,\-\-cil
28 Write CIL policy file rather than binary policy file.
29 .TP
30 .B \-d,\-\-debug
31 Enter debug mode after loading the policy.
32 .TP
33 .B \-U,\-\-handle-unknown <action>
34 Specify how the kernel should handle unknown classes or permissions (deny, allow or reject).
35 .TP
36 .B \-M,\-\-mls
37 Enable the MLS policy when checking and compiling the policy.
38 .TP
39 .B \-c policyvers
40 Specify the policy version, defaults to the latest.
41 .TP
42 .B \-o,\-\-output filename
43 Write a binary policy file to the specified filename.
44 .TP
45 .B \-S,\-\-sort
46 Sort ocontexts before writing out the binary policy. This option makes output of checkpolicy consistent with binary policies created by semanage and secilc.
47 .TP
48 .B \-t,\-\-target
49 Specify the target platform (selinux or xen).
50 .TP
51 .B \-V,\-\-version
52 Show version information.
53 .TP
54 .B \-h,\-\-help
55 Show usage information.
56
57 .SH "SEE ALSO"
58 SELinux documentation at http://www.nsa.gov/research/selinux,
59 especially "Configuring the SELinux Policy".
60
61
62 .SH AUTHOR
63 This manual page was written by Arpad Magosanyi <[email protected]>,
64 and edited by Stephen Smalley <[email protected]>.
65 The program was written by Stephen Smalley <[email protected]>.