arm架构安装安装selinux
时间: 2023-11-21 17:57:33 浏览: 148
PersonalDebian:个人Debian安装和调整
以下是在arm架构上安装SELinux的步骤:
1.下载SELinux源代码并解压缩:
```shell
wget https://github.com/SELinuxProject/selinux/archive/refs/tags/3.2.2.tar.gz
tar -zxvf 3.2.2.tar.gz
```
2.安装SELinux依赖项:
```shell
yum install -y audit-libs-devel bison bzip2-devel dbus-devel \
expat-devel gcc gcc-c++ gettext-devel libcap-devel libdb-devel \
libsepol-devel libselinux-devel libtool-ltdl-devel ncurses-devel \
newt-devel openssl-devel pam-devel pcre-devel perl-ExtUtils-Embed \
python3-devel xmlto xz-devel zlib-devel
```
3.编译并安装SELinux:
```shell
cd selinux-3.2.2/
make
make install
```
4.重启系统并启用SELinux:
```shell
reboot
setenforce 1
```
阅读全文