Linux command
sestatus 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
sestatus
sestatus -b
sestatus -v
说明
sestatus reports the current status of the SELinux system. It shows whether SELinux is enabled, its current mode (enforcing, permissive, or disabled), the loaded policy type, and various security settings. Typical output includes SELinux status, loaded policy, current mode, policy version, and whether policies are being denied.
参数
- -b
- Display current states of all policy booleans
- -v
- Display security contexts of files and processes from /etc/sestatus.conf
FAQ
What is the sestatus command used for?
sestatus reports the current status of the SELinux system. It shows whether SELinux is enabled, its current mode (enforcing, permissive, or disabled), the loaded policy type, and various security settings. Typical output includes SELinux status, loaded policy, current mode, policy version, and whether policies are being denied.
How do I run a basic sestatus example?
Run `sestatus` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -b do in sestatus?
Display current states of all policy booleans