| 1 |
Index: libsemanage-3.9/man/man5/semanage.conf.5 |
| 2 |
=================================================================== |
| 3 |
--- libsemanage-3.9.orig/man/man5/semanage.conf.5 |
| 4 |
+++ libsemanage-3.9/man/man5/semanage.conf.5 |
| 5 |
@@ -1,142 +1,205 @@ |
| 6 |
-.TH semanage.conf "5" "September 2011" "semanage.conf" "Linux System Administration" |
| 7 |
+.TH SEMANAGE.CONF 5 "September 2011" "semanage.conf" |
| 8 |
+"Linux System Administration" |
| 9 |
.SH NAME |
| 10 |
semanage.conf \- global configuration file for the SELinux Management library |
| 11 |
.SH DESCRIPTION |
| 12 |
-.PP |
| 13 |
The |
| 14 |
-.BR semanage.conf |
| 15 |
-file is usually located under the directory /etc/selinux and it is used for run-time configuration of the |
| 16 |
+.B semanage.conf |
| 17 |
+file is usually located under the directory /etc/selinux |
| 18 |
+and it is used for run-time configuration of the |
| 19 |
behavior of the SELinux Management library. |
| 20 |
- |
| 21 |
+. |
| 22 |
.PP |
| 23 |
-Each line should contain a configuration parameter followed by the equal sign ("=") and then followed by the configuration value for that |
| 24 |
-parameter. Anything after the "#" symbol is ignored similarly to empty lines. |
| 25 |
- |
| 26 |
+Each line should contain a configuration parameter |
| 27 |
+followed by the equal sign ("=") |
| 28 |
+and then followed by the configuration value for that parameter. |
| 29 |
+Anything after the "#" symbol is ignored similarly to empty lines. |
| 30 |
+. |
| 31 |
.PP |
| 32 |
The following parameters are allowed: |
| 33 |
- |
| 34 |
-.RS |
| 35 |
+. |
| 36 |
.TP |
| 37 |
.B module-store |
| 38 |
-Specify how the SELinux Management library should interact with the SELinux policy store. When set to "direct", the SELinux |
| 39 |
-Management library writes to the SELinux policy module store directly (this is the default setting). |
| 40 |
+Specify how the SELinux Management library should interact with the |
| 41 |
+SELinux policy store. |
| 42 |
+When set to "direct", |
| 43 |
+the SELinux Management library writes to the SELinux policy module store |
| 44 |
+directly |
| 45 |
+(this is the default setting). |
| 46 |
Otherwise a socket path or a server name can be used for the argument. |
| 47 |
-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 |
| 48 |
-server. |
| 49 |
-If the argument does not begin with a "/" (as in "example.com:4242"), it should be interpreted as the name of a remote policy management server |
| 50 |
-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 |
| 51 |
-the two fields). |
| 52 |
- |
| 53 |
+If the argument begins with "/" |
| 54 |
+(as in "/foo/bar"), |
| 55 |
+it represents the path to a named socket |
| 56 |
+that should be used to connect the policy management server. |
| 57 |
+If the argument does not begin with a "/" |
| 58 |
+(as in "example.com:4242"), |
| 59 |
+it should be interpreted as the name of a remote policy management server |
| 60 |
+to be used through a TCP connection |
| 61 |
+(default port is 4242 |
| 62 |
+unless a different one is specified after the server name using the colon |
| 63 |
+to separate the two fields). |
| 64 |
+. |
| 65 |
.TP |
| 66 |
.B root |
| 67 |
-Specify an alternative root path to use for the store. The default is "/" |
| 68 |
- |
| 69 |
+Specify an alternative root path to use for the store. |
| 70 |
+The default is "/" |
| 71 |
+. |
| 72 |
.TP |
| 73 |
.B store-root |
| 74 |
-Specify an alternative store_root path to use. The default is "/var/lib/selinux" |
| 75 |
- |
| 76 |
+Specify an alternative store_root path to use. |
| 77 |
+The default is "/var/lib/selinux" |
| 78 |
+. |
| 79 |
.TP |
| 80 |
.B compiler-directory |
| 81 |
-Specify an alternative directory that contains HLL to CIL compilers. The default value is "/usr/libexec/selinux/hll". |
| 82 |
- |
| 83 |
+Specify an alternative directory that contains HLL to CIL compilers. |
| 84 |
+The default value is "/usr/libexec/selinux/hll". |
| 85 |
+. |
| 86 |
.TP |
| 87 |
.B ignore-module-cache |
| 88 |
-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. |
| 89 |
-If the cache is ignored, then all CIL modules are recompiled from their HLL modules. |
| 90 |
- |
| 91 |
+Whether or not to ignore the cache of CIL modules compiled from HLL. |
| 92 |
+It can be set to either "true" or "false" |
| 93 |
+and is set to "false" by default. |
| 94 |
+If the cache is ignored, |
| 95 |
+then all CIL modules are recompiled from their HLL modules. |
| 96 |
+. |
| 97 |
.TP |
| 98 |
.B policy-version |
| 99 |
-When generating the policy, by default |
| 100 |
-.BR semanage |
| 101 |
-will set the policy version to POLICYDB_VERSION_MAX, as defined in <sepol/policydb/policydb.h>. Change this setting if a different |
| 102 |
-version needs to be set for the policy. |
| 103 |
- |
| 104 |
+When generating the policy, |
| 105 |
+by default |
| 106 |
+.B semanage |
| 107 |
+will set the policy version to POLICYDB_VERSION_MAX, |
| 108 |
+as defined in <sepol/policydb/policydb.h>. |
| 109 |
+Change this setting |
| 110 |
+if a different version needs to be set for the policy. |
| 111 |
+. |
| 112 |
.TP |
| 113 |
.B target-platform |
| 114 |
-The target platform to generate policies for. Valid values are "selinux" and "xen", and is set to "selinux" by default. |
| 115 |
- |
| 116 |
+The target platform to generate policies for. |
| 117 |
+Valid values are "selinux" and "xen", |
| 118 |
+and is set to "selinux" by default. |
| 119 |
+. |
| 120 |
.TP |
| 121 |
.B expand-check |
| 122 |
Whether or not to check "neverallow" rules when executing all |
| 123 |
-.BR semanage |
| 124 |
-command. It can be set to either "0" (disabled) or "1" (enabled) and by default it is enabled. There might be a large |
| 125 |
-penalty in execution time if this option is enabled. |
| 126 |
- |
| 127 |
+.B semanage |
| 128 |
+command. It can be set to either "0" |
| 129 |
+(disabled) |
| 130 |
+or "1" |
| 131 |
+(enabled) |
| 132 |
+and by default it is enabled. |
| 133 |
+There might be a large penalty in execution time |
| 134 |
+if this option is enabled. |
| 135 |
+. |
| 136 |
.TP |
| 137 |
.B file-mode |
| 138 |
-By default the permission mode for the run-time policy files is set to 0644. |
| 139 |
- |
| 140 |
+By default the permission mode for the run-time policy files is set to |
| 141 |
+0644. |
| 142 |
+. |
| 143 |
.TP |
| 144 |
.B save-previous |
| 145 |
-It controls whether the previous module directory is saved after a successful commit to the policy store and it can be set to |
| 146 |
-either "true" or "false". By default it is set to "false" (the previous version is deleted). |
| 147 |
- |
| 148 |
+It controls |
| 149 |
+whether the previous module directory is saved after a successful commit |
| 150 |
+to the policy store |
| 151 |
+and it can be set to either "true" or "false". |
| 152 |
+By default it is set to "false" |
| 153 |
+(the previous version is deleted). |
| 154 |
+. |
| 155 |
.TP |
| 156 |
.B save-linked |
| 157 |
-It controls whether the previously linked module is saved (with name "base.linked") after a successful commit to the policy store. |
| 158 |
-It can be set to either "true" or "false" and by default it is set to "false" (the previous module is deleted). |
| 159 |
- |
| 160 |
+It controls |
| 161 |
+whether the previously linked module is saved |
| 162 |
+(with name "base.linked") |
| 163 |
+after a successful commit to the policy store. |
| 164 |
+It can be set to either "true" or "false" |
| 165 |
+and by default |
| 166 |
+it is set to "false" |
| 167 |
+(the previous module is deleted). |
| 168 |
+. |
| 169 |
.TP |
| 170 |
.B ignoredirs |
| 171 |
-List, separated by ";", of directories to ignore when setting up users homedirs. |
| 172 |
+List, |
| 173 |
+separated by ";", |
| 174 |
+of directories to ignore |
| 175 |
+when setting up users homedirs. |
| 176 |
Some distributions use this to stop labeling /root as a homedir. |
| 177 |
- |
| 178 |
+. |
| 179 |
.TP |
| 180 |
.B usepasswd |
| 181 |
-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". |
| 182 |
+Whether or not to enable the use |
| 183 |
+.BR getpwent() |
| 184 |
+to obtain a list of home directories to label. |
| 185 |
+It can be set to either "true" or "false". |
| 186 |
By default it is set to "true". |
| 187 |
- |
| 188 |
+. |
| 189 |
.TP |
| 190 |
.B disable-genhomedircon |
| 191 |
It controls whether or not the genhomedircon function is executed when using the |
| 192 |
-.BR semanage |
| 193 |
-command and it can be set to either "false" or "true". By default the genhomedircon functionality is enabled (equivalent |
| 194 |
-to this option set to "false"). |
| 195 |
- |
| 196 |
+.B semanage |
| 197 |
+command |
| 198 |
+and it can be set to either "false" or "true". |
| 199 |
+By default the genhomedircon functionality is enabled |
| 200 |
+(equivalent to this option set to "false"). |
| 201 |
+. |
| 202 |
.TP |
| 203 |
.B handle-unknown |
| 204 |
-This option overrides the kernel behavior for handling permissions defined in the kernel but missing from the actual policy. |
| 205 |
-It can be set to "deny", "reject" or "allow". By default the setting from the policy is taken. |
| 206 |
- |
| 207 |
+This option overrides the kernel behavior for handling permissions |
| 208 |
+defined in the kernel |
| 209 |
+but missing from the actual policy. |
| 210 |
+It can be set to "deny", |
| 211 |
+"reject" or "allow". |
| 212 |
+By default the setting from the policy is taken. |
| 213 |
+. |
| 214 |
.TP |
| 215 |
.B bzip-blocksize |
| 216 |
-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 |
| 217 |
-size value is obtained after multiplication by 100000). |
| 218 |
- |
| 219 |
+It should be in the range 0\(en9. |
| 220 |
+A value of 0 means no compression. |
| 221 |
+By default the bzip block size is set to 9 |
| 222 |
+(actual block size value is obtained after multiplication by 100,000). |
| 223 |
+. |
| 224 |
.TP |
| 225 |
.B bzip-small |
| 226 |
-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 |
| 227 |
+When set to "true", |
| 228 |
+the bzip algorithm shall try to reduce its system memory usage. |
| 229 |
+It can be set to either "true" or "false" and |
| 230 |
by default it is set to "false". |
| 231 |
- |
| 232 |
+. |
| 233 |
.TP |
| 234 |
.B remove-hll |
| 235 |
-When set to "true", HLL files will be removed after compilation into CIL. In order to delete HLL files already compiled into CIL, |
| 236 |
+When set to "true", |
| 237 |
+HLL files will be removed after compilation into CIL. |
| 238 |
+In order to delete HLL files already compiled into CIL, |
| 239 |
modules will need to be recompiled with the |
| 240 |
-.BR ignore-module-cache |
| 241 |
+.B ignore-module-cache |
| 242 |
option set to 'true' or using the |
| 243 |
-.BR ignore-module-cache |
| 244 |
-option with semodule. The remove-hll option can be set to either "true" or "false" |
| 245 |
+.B ignore-module-cache |
| 246 |
+option with semodule. |
| 247 |
+The remove-hll option can be set to either "true" or "false" |
| 248 |
and by default it is set to "false". |
| 249 |
- |
| 250 |
-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. |
| 251 |
-In order to compile the original HLL file into CIL, the same HLL file will need to be reinstalled. |
| 252 |
- |
| 253 |
+. |
| 254 |
+Please note |
| 255 |
+that since this option deletes all HLL files, |
| 256 |
+an updated HLL compiler will not be able to recompile the original HLL |
| 257 |
+file into CIL. |
| 258 |
+In order to compile the original HLL file into CIL, |
| 259 |
+the same HLL file will need to be reinstalled. |
| 260 |
+. |
| 261 |
.TP |
| 262 |
.B optimize-policy |
| 263 |
-When set to "true", the kernel policy will be optimized upon rebuilds. |
| 264 |
+When set to "true", |
| 265 |
+the kernel policy will be optimized upon rebuilds. |
| 266 |
It can be set to either "true" or "false" and by default it is set to "true". |
| 267 |
- |
| 268 |
+. |
| 269 |
.TP |
| 270 |
.B multiple-decls |
| 271 |
-When set to "true", duplicate type, type attribute, and role declarations will be allowed. |
| 272 |
+When set to "true", duplicate type, type attribute, and role declarations |
| 273 |
+will be allowed. |
| 274 |
It can be set to either "true" or "false" and by default it is set to "true". |
| 275 |
- |
| 276 |
-.RE |
| 277 |
+. |
| 278 |
.PP |
| 279 |
For certain tasks the SELinux Management library resorts to running |
| 280 |
external commands. For the following commands their path and arguments can |
| 281 |
be overridden: |
| 282 |
- |
| 283 |
+. |
| 284 |
.RS |
| 285 |
.RS |
| 286 |
.TP |
| 287 |
@@ -146,7 +209,7 @@ Requires no argument. |
| 288 |
Defaults to |
| 289 |
.IR /sbin/load_policy |
| 290 |
with no arguments. |
| 291 |
- |
| 292 |
+. |
| 293 |
.TP |
| 294 |
.B setfiles |
| 295 |
Command to verify file context definitions. |
| 296 |
@@ -155,7 +218,7 @@ file context definition file. |
| 297 |
Defaults to |
| 298 |
.IR /sbin/setfiles |
| 299 |
with the arguments '\-q \-c $@ $<'. |
| 300 |
- |
| 301 |
+. |
| 302 |
.TP |
| 303 |
.B sefcontext_compile |
| 304 |
Command to compile a file context definition file. |
| 305 |
@@ -164,7 +227,7 @@ definition file. |
| 306 |
Defaults to |
| 307 |
.IR /sbin/sefcontext_compile |
| 308 |
with the argument '$@'. |
| 309 |
- |
| 310 |
+. |
| 311 |
.RE |
| 312 |
.PP |
| 313 |
Either |
| 314 |
@@ -175,9 +238,9 @@ can be omitted. |
| 315 |
The argument string must contain '$@' for the first required argument, |
| 316 |
and '$<' for the second one. |
| 317 |
The syntax for overriding an external command property is: |
| 318 |
- |
| 319 |
+. |
| 320 |
.RS |
| 321 |
- |
| 322 |
+. |
| 323 |
[\fIname\fR] |
| 324 |
.sp 0 |
| 325 |
path = /path/to/command |
| 326 |
@@ -185,14 +248,14 @@ path = /path/to/command |
| 327 |
args = --flag |
| 328 |
.sp 0 |
| 329 |
[end] |
| 330 |
- |
| 331 |
+. |
| 332 |
.RE |
| 333 |
- |
| 334 |
+. |
| 335 |
.TP |
| 336 |
Example |
| 337 |
- |
| 338 |
+. |
| 339 |
.RS |
| 340 |
- |
| 341 |
+. |
| 342 |
[sefcontext_compile] |
| 343 |
.sp 0 |
| 344 |
path = /usr/sbin/sefcontext_compile |
| 345 |
@@ -200,7 +263,7 @@ path = /usr/sbin/sefcontext_compile |
| 346 |
args = -r $@ |
| 347 |
.sp 0 |
| 348 |
[end] |
| 349 |
- |
| 350 |
+. |
| 351 |
.RE |
| 352 |
.PP |
| 353 |
Optionally the SELinux Management library can invoke external commands to |
| 354 |
@@ -209,13 +272,13 @@ verify source modules (\fBverify module\ |
| 355 |
The syntax is identical to the above command overrides. |
| 356 |
The program should exit with a value of 0 on success, and non zero on |
| 357 |
failure. |
| 358 |
- |
| 359 |
-.SH "SEE ALSO" |
| 360 |
+. |
| 361 |
+.SH SEE ALSO |
| 362 |
.TP |
| 363 |
-semanage(8) |
| 364 |
-.PP |
| 365 |
- |
| 366 |
+.BR semanage(8) |
| 367 |
+. |
| 368 |
.SH AUTHOR |
| 369 |
This manual page was written by Guido Trentalancia <[email protected]>. |
| 370 |
- |
| 371 |
-The SELinux management library was written by Tresys Technology LLC and Red Hat Inc. |
| 372 |
+. |
| 373 |
+The SELinux management library was written by Tresys Technology LLC |
| 374 |
+and Red Hat Inc. |