Como alterar os modos de selinux permissivos a serem aplicados no Ubuntu 14.04

0

Como alterar os modos do selinux de permissivos para impingidos no Ubuntu 14.04.

Eu tentei

# vim /etc/selinux/config
SELINUX=enforcing
save and quiet
# init 6

depois disso ... sem sorte. quando executo o comando getenforce mostrando desativado.

    
por Ravindra Reddy 13.04.2015 / 05:24

2 respostas

1

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
    
por Satish Aherkar 17.11.2017 / 12:36
-2

Que tal essa ideia? Abra um terminal

sudo -i
cd /etc/selinux/
gedit config

Aqui está o que parece:

# 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 two values:
# default - equivalent to the old strict and targeted policies
# mls     - Multi-Level Security (for military and educational use)
# src     - Custom policy built from source
SELINUXTYPE=ubuntu

# SETLOCALDEFS= Check local definition changes
SETLOCALDEFS=0

Faça suas alterações e salve como

    
por Travis Wells 29.05.2015 / 03:04