setenforce: SELinux is disabled 문제...
OS는 Redhat계열의 Redsleeve을 사용중이구요,
ARM에서 작동합니다.
커널은 3.13.5버젼, 커널 컴파일시 SELinux관련 포함시켰습니다.
커널설정
CONFIG_SECURITY_SELINUX=y
CONFIG_SECURITY_SELINUX_BOOTPARAM=y
CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=1
# CONFIG_SECURITY_SELINUX_DISABLE is not set
CONFIG_SECURITY_SELINUX_DEVELOP=y
CONFIG_SECURITY_SELINUX_AVC_STATS=y
CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
# CONFIG_SECURITY_SELINUX_POLICYDB_VERSION_MAX is not set
CONFIG_DEFAULT_SECURITY_SELINUX=y
/etc/selinux/config
# 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:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
이렇게 했는데
# getenforce
Disabled
# setenforce 1
setenforce: SELinux is disabled
이렇게 나옵니다. 왜 이런가요??
참고로 # ls -lz /
dr-xr-xr-x root root ? bin
drwxr-xr-x root root ? boot
drwxr-xr-x root root ? cgroup
drwxr-xr-x root root ? dev
drwxr-xr-x root root ? etc
drwxr-xr-x root root ? home
dr-xr-xr-x root root ? lib
drwx------ root root ? lost+found
drwxr-xr-x root root ? media
drwxr-xr-x root root ? mnt
drwxr-xr-x root root ? opt
dr-xr-xr-x root root ? proc
dr-xr-x--- root root ? root
dr-xr-xr-x root root ? sbin
drwxr-xr-x root root ? selinux
drwxr-xr-x root root ? srv
dr-xr-xr-x root root ? sys
drwxrwxrwt root root ? tmp
drwxr-xr-x root root ? usr
drwxr-xr-x root root ? var
이렇게 ?가 나옵니다...
boot시에 SELinux ReLabeling도 해봤는데 안되네요....
어떻게 해야 할까요?
댓글 달기