Eric Paris | 1654b96 | 2011-07-19 16:05:23 -0400 | [diff] [blame] | 1 | .TH "semanage" "8" "20100223" "" "" |
Joshua Brindle | 13cd4c8 | 2008-08-19 15:30:36 -0400 | [diff] [blame] | 2 | .SH "NAME" |
| 3 | semanage \- SELinux Policy Management tool |
| 4 | |
| 5 | .SH "SYNOPSIS" |
Daniel Jurgens | b217ffd | 2017-05-22 16:08:31 +0300 | [diff] [blame] | 6 | .B semanage {import,export,login,user,port,interface,module,node,fcontext,boolean,permissive,dontaudit,ibpkey,ibendport} |
Dan Walsh | 1925e1e | 2013-10-11 08:34:44 -0400 | [diff] [blame] | 7 | ... |
| 8 | .B positional arguments: |
| 9 | |
| 10 | .B import |
AJ | f8185ee | 2016-08-18 19:29:10 +0100 | [diff] [blame] | 11 | Import local customizations |
Eric Paris | e25ea71 | 2011-07-19 11:38:57 -0400 | [diff] [blame] | 12 | |
Dan Walsh | 1925e1e | 2013-10-11 08:34:44 -0400 | [diff] [blame] | 13 | .B export |
| 14 | Output local customizations |
Eric Paris | e25ea71 | 2011-07-19 11:38:57 -0400 | [diff] [blame] | 15 | |
Dan Walsh | 1925e1e | 2013-10-11 08:34:44 -0400 | [diff] [blame] | 16 | .B login |
| 17 | Manage login mappings between linux users and SELinux confined users |
Eric Paris | 1654b96 | 2011-07-19 16:05:23 -0400 | [diff] [blame] | 18 | |
Dan Walsh | 1925e1e | 2013-10-11 08:34:44 -0400 | [diff] [blame] | 19 | .B user |
Eric Paris | 1654b96 | 2011-07-19 16:05:23 -0400 | [diff] [blame] | 20 | Manage SELinux confined users (Roles and levels for an SELinux user) |
Eric Paris | 1654b96 | 2011-07-19 16:05:23 -0400 | [diff] [blame] | 21 | |
Dan Walsh | 1925e1e | 2013-10-11 08:34:44 -0400 | [diff] [blame] | 22 | .B port |
Eric Paris | 1654b96 | 2011-07-19 16:05:23 -0400 | [diff] [blame] | 23 | Manage network port type definitions |
Eric Paris | 1654b96 | 2011-07-19 16:05:23 -0400 | [diff] [blame] | 24 | |
Dan Walsh | 1925e1e | 2013-10-11 08:34:44 -0400 | [diff] [blame] | 25 | .B interface |
Eric Paris | 1654b96 | 2011-07-19 16:05:23 -0400 | [diff] [blame] | 26 | Manage network interface type definitions |
Eric Paris | 1654b96 | 2011-07-19 16:05:23 -0400 | [diff] [blame] | 27 | |
Dan Walsh | 1925e1e | 2013-10-11 08:34:44 -0400 | [diff] [blame] | 28 | .B module |
| 29 | Manage SELinux policy modules |
| 30 | |
| 31 | .B node |
Eric Paris | 1654b96 | 2011-07-19 16:05:23 -0400 | [diff] [blame] | 32 | Manage network node type definitions |
Eric Paris | d01c33c | 2011-07-19 14:21:08 -0400 | [diff] [blame] | 33 | |
Dan Walsh | 1925e1e | 2013-10-11 08:34:44 -0400 | [diff] [blame] | 34 | .B fcontext |
Eric Paris | d01c33c | 2011-07-19 14:21:08 -0400 | [diff] [blame] | 35 | Manage file context mapping definitions |
Eric Paris | 1654b96 | 2011-07-19 16:05:23 -0400 | [diff] [blame] | 36 | |
Dan Walsh | 1925e1e | 2013-10-11 08:34:44 -0400 | [diff] [blame] | 37 | .B boolean |
| 38 | Manage booleans to selectively enable functionality |
Eric Paris | 1654b96 | 2011-07-19 16:05:23 -0400 | [diff] [blame] | 39 | |
Dan Walsh | 1925e1e | 2013-10-11 08:34:44 -0400 | [diff] [blame] | 40 | .B permissive |
| 41 | Manage process type enforcement mode |
| 42 | |
| 43 | .B dontaudit |
Eric Paris | 1654b96 | 2011-07-19 16:05:23 -0400 | [diff] [blame] | 44 | Disable/Enable dontaudit rules in policy |
Eric Paris | 1654b96 | 2011-07-19 16:05:23 -0400 | [diff] [blame] | 45 | |
Daniel Jurgens | b217ffd | 2017-05-22 16:08:31 +0300 | [diff] [blame] | 46 | .B ibpkey |
| 47 | Manage infiniband pkey type definitions |
| 48 | |
| 49 | .B ibendport |
| 50 | Manage infiniband end port type definitions |
| 51 | |
Joshua Brindle | 13cd4c8 | 2008-08-19 15:30:36 -0400 | [diff] [blame] | 52 | .SH "DESCRIPTION" |
| 53 | semanage is used to configure certain elements of |
| 54 | SELinux policy without requiring modification to or recompilation |
| 55 | from policy sources. This includes the mapping from Linux usernames |
| 56 | to SELinux user identities (which controls the initial security context |
| 57 | assigned to Linux users when they login and bounds their authorized role set) |
| 58 | as well as security context mappings for various kinds of objects, such |
Daniel Jurgens | b217ffd | 2017-05-22 16:08:31 +0300 | [diff] [blame] | 59 | as network ports, interfaces, infiniband pkeys and endports, and nodes (hosts) |
Dan Walsh | 6ded76a | 2019-01-31 20:41:40 +0100 | [diff] [blame] | 60 | as well as the file context mapping. Note that the semanage login command deals |
| 61 | with the mapping from Linux usernames (logins) to SELinux user identities, |
Joshua Brindle | 13cd4c8 | 2008-08-19 15:30:36 -0400 | [diff] [blame] | 62 | while the semanage user command deals with the mapping from SELinux |
| 63 | user identities to authorized role sets. In most cases, only the |
| 64 | former mapping needs to be adjusted by the administrator; the latter |
| 65 | is principally defined by the base policy and usually does not require |
| 66 | modification. |
| 67 | |
| 68 | .SH "OPTIONS" |
| 69 | .TP |
Dan Walsh | 1925e1e | 2013-10-11 08:34:44 -0400 | [diff] [blame] | 70 | .I \-h, \-\-help |
| 71 | List help information |
Eric Paris | f78aa2f | 2011-07-19 12:15:41 -0400 | [diff] [blame] | 72 | |
Dan Walsh | 1925e1e | 2013-10-11 08:34:44 -0400 | [diff] [blame] | 73 | .SH "SEE ALSO" |
Alan Jenkins | 62f0589 | 2017-01-11 12:41:09 +0000 | [diff] [blame] | 74 | .BR selinux (8), |
| 75 | .BR semanage-boolean (8), |
| 76 | .BR semanage-dontaudit (8), |
| 77 | .BR semanage-export (8), |
| 78 | .BR semanage-fcontext (8), |
| 79 | .BR semanage-import (8), |
| 80 | .BR semanage-interface (8), |
| 81 | .BR semanage-login (8), |
| 82 | .BR semanage-module (8), |
| 83 | .BR semanage-node (8), |
| 84 | .BR semanage-permissive (8), |
| 85 | .BR semanage-port (8), |
| 86 | .BR semanage-user (8) |
Daniel Jurgens | b217ffd | 2017-05-22 16:08:31 +0300 | [diff] [blame] | 87 | .BR semanage-ibkey (8), |
| 88 | .BR semanage-ibendport (8), |
Joshua Brindle | 13cd4c8 | 2008-08-19 15:30:36 -0400 | [diff] [blame] | 89 | |
| 90 | .SH "AUTHOR" |
Eric Paris | 1654b96 | 2011-07-19 16:05:23 -0400 | [diff] [blame] | 91 | This man page was written by Daniel Walsh <dwalsh@redhat.com> |
| 92 | .br |
| 93 | and Russell Coker <rcoker@redhat.com>. |
| 94 | .br |
Joshua Brindle | 13cd4c8 | 2008-08-19 15:30:36 -0400 | [diff] [blame] | 95 | Examples by Thomas Bleher <ThomasBleher@gmx.de>. |
Laurent Bigonville | 2e93833 | 2013-11-06 13:24:01 +0100 | [diff] [blame] | 96 | usage: semanage [\-h] |