CentOS下安装semanage
生活随笔
收集整理的這篇文章主要介紹了
CentOS下安装semanage
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
?安裝:
# yum -y install?policycoreutils-python
semanage使用方法:
/usr/sbin/semanage: semanage [ -S store ] -i [ input_file | - ] semanage [ -S store ] -o [ output_file | - ] semanage {boolean|login|user|port|interface|module|node|fcontext} -{l|D|E} [-n] semanage login -{a|d|m} [-sr] login_name | %groupname semanage user -{a|d|m} [-LrRP] selinux_name semanage port -{a|d|m} [-tr] [ -p proto ] port | port_range semanage interface -{a|d|m} [-tr] interface_spec semanage module -{a|d|m} [--enable|--disable] module semanage node -{a|d|m} [-tr] [ -p protocol ] [-M netmask] addr semanage fcontext -{a|d|m} [-efrst] file_spec semanage boolean -{d|m} [--on|--off|-1|-0] -F boolean | boolean_file semanage permissive -{d|a|l} type semanage dontaudit [ on | off ] Primary Options:-a, --add Add a OBJECT record NAME-d, --delete Delete a OBJECT record NAME-m, --modify Modify a OBJECT record NAME-i, --input Input multiple semange commands in a transaction-o, --output Output current customizations as semange commands-l, --list List the OBJECTS-E, --extract extract customizable commands-C, --locallist List OBJECTS local customizations-D, --deleteall Remove all OBJECTS local customizations-h, --help Display this message-n, --noheading Do not print heading when listing OBJECTS-S, --store Select and alternate SELinux store to manage Object-specific Options (see above):-f, --ftype File Type of OBJECT"" (all files)-- (regular file)-d (directory)-c (character device)-b (block device)-s (socket)-l (symbolic link)-p (named pipe)-F, --file Treat target as an input file for command, change multiple settings-p, --proto Port protocol (tcp or udp) or internet protocol version of node (ipv4 or ipv6)-M, --mask Netmask-e, --equal Substitue source path for dest path when labeling-P, --prefix Prefix for home directory labeling-L, --level Default SELinux Level (MLS/MCS Systems only)-R, --roles SELinux Roles (ex: "sysadm_r staff_r")-s, --seuser SELinux User Name-t, --type SELinux Type for the object-r, --range MLS/MCS Security Range (MLS/MCS Systems only)--enable Enable a module--disable Disable a module
轉載于:https://blog.51cto.com/evan2008/1018252
總結
以上是生活随笔為你收集整理的CentOS下安装semanage的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: COCOS2D(3) 菜单
- 下一篇: 学区房概念