3.4. SELinux에서 제한된 관리자 역할
SELinux에서 제한된 관리자 역할은 Linux 사용자에게 특정 작업을 수행할 수 있는 특정 권한 및 권한을 부여합니다. 별도의 제한된 관리자 역할을 할당하면 시스템 관리의 다양한 도메인에 대한 권한을 개별 사용자로 나눌 수 있습니다. 이는 각각 별도의 도메인이 있는 여러 관리자가 있는 시나리오에서 유용합니다.
semanage user
명령을 사용하여 SELinux 사용자에게 이러한 역할을 할당할 수 있습니다.
SELinux에는 다음과 같은 제한된 관리자 역할이 있습니다.
auditadm_r
감사 관리자 역할을 사용하면 감사 하위 시스템과 관련된 프로세스를 관리할 수 있습니다.
관련 부울:
SELinux boolean State Default Description auditadm_exec_content (on , on) Allow auditadm to exec content
SELinux boolean State Default Description auditadm_exec_content (on , on) Allow auditadm to exec content
Copy to Clipboard Copied! Toggle word wrap Toggle overflow dbadm_r
데이터베이스 관리자 역할을 사용하면 MariaDB 및 PostgreSQL 데이터베이스를 관리할 수 있습니다.
관련 부울:
SELinux boolean State Default Description dbadm_exec_content (on , on) Allow dbadm to exec content dbadm_manage_user_files (off , off) Determine whether dbadm can manage generic user files. dbadm_read_user_files (off , off) Determine whether dbadm can read generic user files.
SELinux boolean State Default Description dbadm_exec_content (on , on) Allow dbadm to exec content dbadm_manage_user_files (off , off) Determine whether dbadm can manage generic user files. dbadm_read_user_files (off , off) Determine whether dbadm can read generic user files.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow logadm_r
로그 관리자 역할을 사용하면 Rsyslog 로깅 서비스 및 감사 하위 시스템과 관련된 로그, 특히 SELinux 유형을 관리할 수 있습니다.
관련 부울:
SELinux boolean State Default Description logadm_exec_content (on , on) Allow logadm to exec content
SELinux boolean State Default Description logadm_exec_content (on , on) Allow logadm to exec content
Copy to Clipboard Copied! Toggle word wrap Toggle overflow webadm_r
웹 관리자는 Apache HTTP 서버를 관리할 수 있습니다.
관련 부울:
SELinux boolean State Default Description webadm_manage_user_files (off , off) Determine whether webadm can manage generic user files. webadm_read_user_files (off , off) Determine whether webadm can read generic user files.
SELinux boolean State Default Description webadm_manage_user_files (off , off) Determine whether webadm can manage generic user files. webadm_read_user_files (off , off) Determine whether webadm can read generic user files.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow secadm_r
보안 관리자 역할을 사용하면 SELinux 데이터베이스를 관리할 수 있습니다.
관련 부울:
SELinux boolean State Default Description secadm_exec_content (on , on) Allow secadm to exec content
SELinux boolean State Default Description secadm_exec_content (on , on) Allow secadm to exec content
Copy to Clipboard Copied! Toggle word wrap Toggle overflow sysadm_r
시스템 관리자 역할을 사용하면 이전에 나열된 모든 역할을 수행할 수 있으며 추가 권한이 있습니다. 기본이 아닌 구성에서 보안 관리는 SELinux 정책에서
sysadm_secadm
모듈을 비활성화하여 시스템 관리와 분리할 수 있습니다. 자세한 내용은 MLS의 보안 관리에서 시스템 관리 분리를 참조하십시오.sysadm_u
사용자는 SSH를 사용하여 직접 로그인할 수 없습니다.sysadm_u
에
대한 SSH 로그인을 활성화하려면ssh_sysadm_login
부울을 다음과 같이 설정합니다.setsebool -P ssh_sysadm_login on
# setsebool -P ssh_sysadm_login on
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 관련 부울:
SELinux boolean State Default Description ssh_sysadm_login (on , on) Allow ssh logins as sysadm_r:sysadm_t sysadm_exec_content (on , on) Allow sysadm to exec content xdm_sysadm_login (on , on) Allow the graphical login program to login directly as sysadm_r:sysadm_t
SELinux boolean State Default Description ssh_sysadm_login (on , on) Allow ssh logins as sysadm_r:sysadm_t sysadm_exec_content (on , on) Allow sysadm to exec content xdm_sysadm_login (on , on) Allow the graphical login program to login directly as sysadm_r:sysadm_t
Copy to Clipboard Copied! Toggle word wrap Toggle overflow