rsync_export_all_ro → on

SELinux 를 사용하면 막히는 것이 아주 많습니다. 그래서 하나하나 다 on 을 시켜줘야 하는데요

rsync 또한 on 시켜줘야 하는 것이 있습니다.

[root@localhost ~]# getsebool -a | grep rsync

postgresql_can_rsync --> off
rsync_anon_write --> off
rsync_client --> off
rsync_export_all_ro --> off
rsync_full_access --> off

[root@localhost ~]#

grep 을 이용해서 rsync 값을 찾아 보면 5가지 정도가 나오는데요.

여기에서 저희가 필요한 값은 rsync_export_all_ro 이것을 on 하는 것 입니다.

[root@localhost ~]# setsebool -P rsync_export_all_ro 1

참고로 -P 옵션은 서버를 재 시작해도 on 시키겠다는 의미 입니다.