Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the Linux getsebool command

2025-01-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the relevant knowledge of how to use the Linux getsebool command, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value. I believe you will gain something after reading this Linux getsebool command article. Let's take a look at it.

The Linux common command getsebool command is used to query the Boolean values of the rules within the SElinux policy.

Getsebool queries Boolean values of rules in SElinux policy

Add SELinux's policy and rule management related commands: seinfo command, sesearch command, getsebool command, setsebool command, semanage command.

Syntax getsebool [- a] [Boolean clause] option-a: lists all Boolean clauses on the current system set to on or off values. Query the status of all Boolean settings in the system with an example:

Getsebool-a NetworkManager_disable_trans-> off allow_console_login-- > off allow_cvs_read_shadow-- > off allow_daemons_dump_core-- > on.... (omitted below). Query whether httpd_enable_homedirs is closed. If not, close it:

Getsebool httpd_enable_homedirs setsebool-P httpd_enable_homedirs=0 # 0 is off and 1 is on. That's all for the article on "how to use the Linux getsebool command". Thank you for reading! I believe you all have a certain understanding of the knowledge of "how to use Linux getsebool commands". If you want to learn more, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 221

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report