Debian Codegraph @

libsemanage/man/man5/semanage.conf.5

raw
1 .TH semanage.conf "5" "September 2011" "semanage.conf" "Linux System Administration"
2 .SH NAME
3 semanage.conf \- global configuration file for the SELinux Management library
4 .SH DESCRIPTION
5 .PP
6 The
7 .BR semanage.conf
8 file is usually located under the directory /etc/selinux and it is used for run-time configuration of the
9 behavior of the SELinux Management library.
10
11 .PP
12 Each line should contain a configuration parameter followed by the equal sign ("=") and then followed by the configuration value for that
13 parameter. Anything after the "#" symbol is ignored similarly to empty lines.
14
15 .PP
16 The following parameters are allowed:
17
18 .RS
19 .TP
20 .B module-store
21 Specify how the SELinux Management library should interact with the SELinux policy store. When set to "direct", the SELinux
22 Management library writes to the SELinux policy module store directly (this is the default setting).
23 Otherwise a socket path or a server name can be used for the argument.
24 If the argument begins with "/" (as in "/foo/bar"), it represents the path to a named socket that should be used to connect the policy management
25 server.
26 If the argument does not begin with a "/" (as in "foo.com:4242"), it should be interpreted as the name of a remote policy management server
27 to be used through a TCP connection (default port is 4242 unless a different one is specified after the server name using the colon to separate
28 the two fields).
29
30 .TP
31 .B root
32 Specify an alternative root path to use for the store. The default is "/"
33
34 .TP
35 .B store-root
36 Specify an alternative store_root path to use. The default is "/var/lib/selinux"
37
38 .TP
39 .B compiler-directory
40 Specify an alternative directory that contains HLL to CIL compilers. The default value is "/usr/libexec/selinux/hll".
41
42 .TP
43 .B ignore-module-cache
44 Whether or not to ignore the cache of CIL modules compiled from HLL. It can be set to either "true" or "false" and is set to "false" by default.
45 If the cache is ignored, then all CIL modules are recompiled from their HLL modules.
46
47 .TP
48 .B policy-version
49 When generating the policy, by default
50 .BR semanage
51 will set the policy version to POLICYDB_VERSION_MAX, as defined in <sepol/policydb/policydb.h>. Change this setting if a different
52 version needs to be set for the policy.
53
54 .TP
55 .B target-platform
56 The target platform to generate policies for. Valid values are "selinux" and "xen", and is set to "selinux" by default.
57
58 .TP
59 .B expand-check
60 Whether or not to check "neverallow" rules when executing all
61 .BR semanage
62 command. It can be set to either "0" (disabled) or "1" (enabled) and by default it is enabled. There might be a large
63 penalty in execution time if this option is enabled.
64
65 .TP
66 .B file-mode
67 By default the permission mode for the run-time policy files is set to 0644.
68
69 .TP
70 .B save-previous
71 It controls whether the previous module directory is saved after a successful commit to the policy store and it can be set to
72 either "true" or "false". By default it is set to "false" (the previous version is deleted).
73
74 .TP
75 .B save-linked
76 It controls whether the previously linked module is saved (with name "base.linked") after a successful commit to the policy store.
77 It can be set to either "true" or "false" and by default it is set to "false" (the previous module is deleted).
78
79 .TP
80 .B ignoredirs
81 List, separated by ";", of directories to ignore when setting up users homedirs.
82 Some distributions use this to stop labeling /root as a homedir.
83
84 .TP
85 .B usepasswd
86 Whether or not to enable the use getpwent() to obtain a list of home directories to label. It can be set to either "true" or "false".
87 By default it is set to "true".
88
89 .TP
90 .B disable-genhomedircon
91 It controls whether or not the genhomedircon function is executed when using the
92 .BR semanage
93 command and it can be set to either "false" or "true". By default the genhomedircon functionality is enabled (equivalent
94 to this option set to "false").
95
96 .TP
97 .B handle-unknown
98 This option controls the kernel behavior for handling permissions defined in the kernel but missing from the actual policy.
99 It can be set to "deny", "reject" or "allow".
100
101 .TP
102 .B bzip-blocksize
103 It should be in the range 0-9. A value of 0 means no compression. By default the bzip block size is set to 9 (actual block
104 size value is obtained after multiplication by 100000).
105
106 .TP
107 .B bzip-small
108 When set to "true", the bzip algorithm shall try to reduce its system memory usage. It can be set to either "true" or "false" and
109 by default it is set to "false".
110
111 .TP
112 .B remove-hll
113 When set to "true", HLL files will be removed after compilation into CIL. In order to delete HLL files already compiled into CIL,
114 modules will need to be recompiled with the
115 .BR ignore-module-cache
116 option set to 'true' or using the
117 .BR ignore-module-cache
118 option with semodule. The remove-hll option can be set to either "true" or "false"
119 and by default it is set to "false".
120
121 Please note that since this option deletes all HLL files, an updated HLL compiler will not be able to recompile the original HLL file into CIL.
122 In order to compile the original HLL file into CIL, the same HLL file will need to be reinstalled.
123
124 .SH "SEE ALSO"
125 .TP
126 semanage(8)
127 .PP
128
129 .SH AUTHOR
130 This manual page was written by Guido Trentalancia <[email protected]>.
131
132 The SELinux management library was written by Tresys Technology LLC and Red Hat Inc.