[태그:] SELinux

SELinux와 Apache

최근에 웹에서 PHP를 이용하여 Python 스크립트를 실행할 일이 있어 구성 후 실행을 하였으나 정상적으로 실행이 안되어 문제를 확인하다 보니 SELinux 문제로 확인되었다. 문제 확인 방법은 ‘audit2allow -a’ 명령어를 통해 SELinux 관련 로그를 파싱에서 볼 수 있다. [root@localhost Honeypot]# audit2allow -a #============= httpd_sys_script_t ============== #!!!! This avc can be allowed using one of the these booleans: …

SSH 접속 Port 변경 (SELinux 설정 방법)

Fedora 9에서 SSH 접속 Port 변경 시 데몬이 제대로 안뜨는 경우가 있다. selinux 때문인데 다음과 같이 수정하도록 한다. semange port -t ssh_port_t -p tcp 1234 만약 semange 명령어가 없다면 아래와 같이 찾아보면 된다. [root@localhost byjjoon]# yum whatprovides /usr/sbin/semanage Loaded plugins: fastestmirror Determining fastest mirrors * base: mirror.khlug.org * extras: mirror.khlug.org * updates: mirror.khlug.org base | …