当前位置:网站首页>Fedora/rehl installation semanage

Fedora/rehl installation semanage

2022-07-06 06:44:00 51CTO

Semanage yes   Used for configuration SELinux A tool that does not need to modify or recompile policy sources .

This includes Linux The user name is mapped to SELinux  User identity and object ( Such as network port , Interface and host ) Security context mapping for .

Semanage yes   Used for configuration SELinux  A tool that does not need to modify or recompile policy sources .

without Semanage, You have to be right SELinux Configuration is troublesome , however SELinux Now again Linux It's standard with , So this bag becomes very important .

Check the package to install

occasionally , You may not know what package to install .

Run the following command :

      
      
dnf
  • 1.

Then you can see the following output , In the following output , You'll see one called :

policycoreutils-python-utils-3.2-1.fc34.noarch Package name and version number .

There is no need to provide the version number when installing .

 

 ​

Fedora/REHL install semanage_ Version number

 ​

 

install

When you find the name of the package , Run the command :

      
      
sudo
  • 1.

That's all right. , You don't need to provide the version number here .

dnf Will automatically help you install the latest package .

Verification and installation

Enter the command

      
      
semanage
  • 1.

If you can see the output below , It means that your installation has been successful .

      
      
[[email protected] conf.d]$ semanage -h
usage: semanage [-h] {import,export,login,user,port,ibpkey,ibendport,interface,module,node,fcontext,boolean,permissive,dontaudit} ...

semanage is used to configure certain elements of SELinux policy with-out requiring modification to or recompilation from policy source.

positional arguments:
{import,export,login,user,port,ibpkey,ibendport,interface,module,node,fcontext,boolean,permissive,dontaudit}
import Import local customizations
export Output local customizations
login Manage login mappings between linux users and SELinux confined users
user Manage SELinux confined users (Roles and levels for an SELinux user)
port Manage network port type definitions
ibpkey Manage infiniband ibpkey type definitions
ibendport Manage infiniband end port type definitions
interface Manage network interface type definitions
module Manage SELinux policy modules
node Manage network node type definitions
fcontext Manage file context mapping definitions
boolean Manage booleans to selectively enable functionality
permissive Manage process type enforcement mode
dontaudit Disable/Enable dontaudit rules in policy

options:
-h, --help show this
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.

The help for this command is provided above .

 

Fedora/REHL install semanage_linux_02

 ​

 

thus , The configuration is complete .

 ​https://www.ossez.com/t/fedora-semanage/14028​

原网站

版权声明
本文为[51CTO]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207060632318381.html