AlmaLinuxではSELinuxは有効になりません。

AlmaLinuxではSELinuxは有効になりません。

AlmaLinux 8.7の新しいイメージインストールではSELinuxを有効にすることはできません。

再起動後:

[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が有効になっていませんしかし、そのうちの1つは閉鎖的であり、トピックから離れています(ユーザーがlinodからlinodを提供する(カスタム)カーネルを使用していますが、SELinuxはサポートされていないためです)。 AlmaLinuxにはRHELバイナリ互換カーネルバージョンがあります。 4.18.0

ベストアンサー1

このAlmaLinuxインスタンスはdogado.deで提供され、Paralles Virtuozzoで仮想マシンとして実行されます。その文書によると、SELinuxはサポートされていません。

おすすめ記事