Debian Codegraph @

checkpolicy/checkmodule.8

raw
1 .TH CHECKMODULE 8
2 .SH NAME
3 checkmodule \- SELinux policy module compiler
4 .SH SYNOPSIS
5 .B checkmodule
6 .I "[\-h] [\-b] [\-C] [\-m] [\-M] [\-U handle_unknown ] [\-V] [\-o output_file] [input_file]"
7 .SH "DESCRIPTION"
8 This manual page describes the
9 .BR checkmodule
10 command.
11 .PP
12 .B checkmodule
13 is a program that checks and compiles a SELinux security policy module
14 into a binary representation. It can generate either a base policy
15 module (default) or a non-base policy module (\-m option); typically,
16 you would build a non-base policy module to add to an existing module
17 store that already has a base module provided by the base policy. Use
18 semodule_package to combine this module with its optional file
19 contexts to create a policy package, and then use semodule to install
20 the module package into the module store and load the resulting policy.
21
22 .SH OPTIONS
23 .TP
24 .B \-b,\-\-binary
25 Read an existing binary policy module file rather than a source policy
26 module file. This option is a development/debugging aid.
27 .TP
28 .B \-C,\-\-cil
29 Write CIL policy file rather than binary policy file.
30 .TP
31 .B \-h,\-\-help
32 Print usage.
33 .TP
34 .B \-m
35 Generate a non-base policy module.
36 .TP
37 .B \-M,\-\-mls
38 Enable the MLS/MCS support when checking and compiling the policy module.
39 .TP
40 .B \-V,\-\-version
41 Show policy versions created by this program. Note that you cannot currently build older versions.
42 .TP
43 .B \-o,\-\-output filename
44 Write a binary policy module file to the specified filename.
45 Otherwise, checkmodule will only check the syntax of the module source file
46 and will not generate a binary module at all.
47 .TP
48 .B \-U,\-\-handle-unknown <action>
49 Specify how the kernel should handle unknown classes or permissions (deny, allow or reject).
50
51 .SH EXAMPLE
52 .nf
53 # Build a MLS/MCS-enabled non-base policy module.
54 $ checkmodule \-M \-m httpd.te \-o httpd.mod
55 .fi
56
57 .SH "SEE ALSO"
58 .B semodule(8), semodule_package(8)
59 SELinux documentation at http://www.nsa.gov/research/selinux,
60 especially "Configuring the SELinux Policy".
61
62
63 .SH AUTHOR
64 This manual page was copied from the checkpolicy man page
65 written by Arpad Magosanyi <[email protected]>,
66 and edited by Dan Walsh <[email protected]>.
67 The program was written by Stephen Smalley <[email protected]>.