Home > System Tutorial > LINUX > Detailed explanation of seinfo command

Detailed explanation of seinfo command

WBOY
Release: 2024-01-04 18:54:20
forward
1121 people have browsed it
Introduction The seinfo command is used to query how many relevant rules the SELinux policy provides. Whether a subject process can read the target file resources focuses on the SELinux policy and the rules in the policy, and then passes the The definition of rules handles the security context of each target file, especially the "type" part. SELinux policy and rule management related commands: seinfo command, sesearch command, getsebool command, setsebool command, semanage command. Let us explain in detail how to use the seinfo command.
grammar
seinfo(选项)
Copy after login
Options
-A:列出SELinux的状态、规则布尔值、身份识别、角色、类型等所有信息。 
-t:列出SELinux所有类型(type)的种类。 
-r:列出SELinux所有角色(role)的种类。 
-u:列出SELinux所有身份识别(user)的种类。 
-b:列出所有规则的种类(布尔值)。
Copy after login
Example List rules related to httpd:
seinfo -b | grep httpd
Copy after login

The above is the detailed content of Detailed explanation of seinfo command. For more information, please follow other related articles on the PHP Chinese website!

source:linuxprobe.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template