【Linux】CentOS下安裝semanage

來源:互聯網
上載者:User

【Linux】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 | %groupnamesemanage user -{a|d|m} [-LrRP] se<a style="padding: 0px; margin: 0px; color: #333333; text-decoration: none; font-size: 13px;" title="linux" href="http://www.wzzjla.com/Html/201210/527.html">linux</a>_namesemanage port -{a|d|m} [-tr] [ -p proto ] port | port_rangesemanage interface -{a|d|m} [-tr] interface_specsemanage module -{a|d|m} [--enable|--disable] modulesemanage node -{a|d|m} [-tr] [ -p protocol ] [-M netmask] addrsemanage fcontext -{a|d|m} [-efrst] file_specsemanage boolean -{d|m} [--on|--off|-1|-0] -F boolean | boolean_filesemanage permissive -{d|a|l} typesemanage 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 manageObject-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

來源:http://fcjblog.com/linux-centos-install-semanage

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.