Basta executar setenforce 1
como root. Uma maneira de fazer isso é executar sudo setenforce 1
.
Você pode verificar se foi bem-sucedido executando sestatus
e examinando a saída.
[root@ec2-54-183-55-79 filebeat]# setenforce 1
[root@ec2-54-183-55-79 filebeat]# sestatus
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: enforcing
Mode from config file: enforcing
Policy MLS status: enabled
Policy deny_unknown status: allowed
Max kernel policy version: 28