首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >SELinux不会在AlmaLinux上启用

SELinux不会在AlmaLinux上启用
EN

Unix & Linux用户
提问于 2022-12-24 09:20:14
回答 1查看 199关注 0票数 0

我无法在新安装的SELinux 8.7映像上启用AlmaLinux。

重新启动后:

代码语言:javascript
复制
[root@cs46949 stdusr]# cat /etc/redhat-release &&
> uptime &&
> dnf -y install policycoreutils selinux-policy selinux-policy-targeted libselinux-utils setroubleshoot-server setools setools-console &&
> dnf update &&
> cat /etc/selinux/config &&
> sestatus
AlmaLinux release 8.7 (Stone Smilodon)
 10:03:08 up 0 min,  1 user,  load average: 0.27, 0.08, 0.03
Last metadata expiration check: 0:18:10 ago on Sat Dec 24 09:46:52 2022.
Package policycoreutils-2.9-20.el8.x86_64 is already installed.
Package selinux-policy-3.14.3-108.el8.noarch is already installed.
Package selinux-policy-targeted-3.14.3-108.el8.noarch is already installed.
Package libselinux-utils-2.9-6.el8.x86_64 is already installed.
Package setroubleshoot-server-3.3.26-5.el8.x86_64 is already installed.
Package setools-4.3.0-3.el8.x86_64 is already installed.
Package setools-console-4.3.0-3.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
Last metadata expiration check: 0:18:12 ago on Sat Dec 24 09:46:52 2022.
Dependencies resolved.
Nothing to do.
Complete!

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of these three values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected.
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted


SELinux status:                 disabled

注意:这是与SELINUX不会启用相同的问题,但这个问题是关闭和关闭主题的(因为用户是在linode上使用不支持SELinux的linode提供(自定义)内核)。AlmaLinux有一个RHEL二进制兼容内核vers。4.18.0

EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2022-12-25 08:45:10

这个AlmaLinux实例由dogado.de提供,在下作为VM运行。根据他们的文档,它不支持SELinux。

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/729516

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档