SELinux policy without requiring modification to or recompilation
from policy sources. semanage fcontext is used to manage the default
file system labeling on an SELinux system. This command maps file paths using regular expressions to SELinux labels.
.SH"OPTIONS"
.TP
.I\-h,\-\-help
show this help message and exit
.TP
.I\-n,\-\-noheading
Do not print heading when listing the specified object type
.TP
.I\-N,\-\-noreload
Do not reload policy after commit
.TP
.I\-C,\-\-locallist
List local customizations
.TP
.I\-SSTORE,\-\-storeSTORE
Select an alternate SELinux Policy Store to manage
.TP
.I\-a,\-\-add
Add a record of the specified object type
.TP
.I\-d,\-\-delete
Delete a record of the specified object type
.TP
.I\-m,\-\-modify
Modify a record of the specified object type
.TP
.I\-l,\-\-list
List records of the specified object type
.TP
.I\-E,\-\-extract
Extract customizable commands, for use within a transaction
.TP
.I\-D,\-\-deleteall
Remove all local customizations
.TP
.I\-eEQUAL,\-\-equalEQUAL
Substitute target path with sourcepath when generating default label. This is used with fcontext. Requires source and target path arguments. The context labeling for the target subtree is made equivalent to that defined for the source.
File Type. This is used with fcontext. Requires a file type as shown in the mode field by ls, e.g. use 'd' to match only directories or 'f' to match only regular files. The following file type options can be passed: f (regular file),d (directory),c (character device), b (block device),s (socket),l (symbolic link),p (named pipe). If you do not specify a file type, the file type will default to "all files".
.TP
.I\-sSEUSER,\-\-seuserSEUSER
SELinux user name
.TP
.I\-tTYPE,\-\-typeTYPE
SELinux Type for the object
.TP
.I\-rRANGE,\-\-rangeRANGE
MLS/MCS Security Range (MLS/MCS Systems only) SELinux Range for SELinux login mapping defaults to the SELinux user record range. SELinux Range for SELinux user defaults to s0.