栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

debian11 安装selinux

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

debian11 安装selinux

安装软件

aptitude install selinux-basics selinux-policy-default auditd -y

重新生成内核initrd文件

update-initramfs -u

update-initramfs: Generating /boot/initrd.img-5.10.0-10-amd64

重新配置GRUB (启动参数会自动加上 security=selinux)

selinux-activate

Activating SE Linux

Generating grub configuration file ...

Found linux image: /boot/vmlinuz-5.10.0-10-amd64

Found initrd image: /boot/initrd.img-5.10.0-10-amd64

done

SE Linux is activated.  You may need to reboot now.

检查selinux配置情况(暂时未配置成功)

check-selinux-installation  

getfilecon:  getfilecon(/proc/1) failed

SELinux is not enabled.

Could not read the domain of PID 1.

The directories /sys/fs/selinux and /selinux are missing.

重启,第一次重启,selinux会给文件打上标签,过程会有几分钟之后,系统会自动重启

再次检查selinux配置情况(无输出极为正确)

check-selinux-installation 

 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/734021.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号