大网数据广告活动
服务器运维问答

Where can I find details on selinux Booleans

· 52CE 我爱测

I'm running an openvpn server and I want to use SELinux. When it's activated I see a few "denied" events in the logs. I've used audit2allow to create a '.te' file. My question is about these lines in the file. #============= open…

问题原文

原帖链接 · D.Fitz · CC BY-SA 4.0

I'm running an openvpn server and I want to use SELinux. When it's activated I see a few "denied" events in the logs. I've used audit2allow to create a '.te' file. My question is about these lines in the file.

#============= openvpn_t ==============

#!!!! This avc can be allowed using the boolean 'nis_enabled'
allow openvpn_t unreserved_port_t:tcp_socket name_bind;

I understand 'nis_enabled' boolean will allow this and other context requests.
Where can I find exactly what this boolean will allow?

What would you choose to do, enable the boolean or the policy?

EDIT: Thank you @Michael Hampton.

semanage port -a -t openvpn_t -p tcp <myVpnPort>

已采纳解答

原帖链接 · natxo asenjo · CC BY-SA 4.0

You can use semanage boolean --list | grep nis to find a brief description on what it does and its status.

# semanage boolean -l | grep nis
nis_enabled                    (off  ,  off)  Allow nis to enabled
varnishd_connect_any           (off  ,  off)  Allow varnishd to connect any

You can find all the documentation here.

Edit: the OP indicated in a comment that specific info on what the booleans did was needed, so digging a bit deeper I found that

sesearch -b nis_enabled -A | grep -i openvpn

was the preferred answer.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2019-05-11)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。