diff -ru default/domains/program/apmd.te current/domains/program/apmd.te --- default/domains/program/apmd.te 2003-05-15 05:22:15.000000000 +0200 +++ current/domains/program/apmd.te 2003-05-24 11:44:40.000000000 +0200 @@ -34,6 +34,12 @@ allow apmd_t { etc_runtime_t modules_conf_t }:file { getattr read }; allow apmd_t etc_t:lnk_file read; +# acpid wants a socket +allow apmd_t var_run_t:sock_file create_file_perms; + +# acpid also has a logfile +log_domain(apmd) + # for id allow apmd_t security_t:security sid_to_context; diff -ru default/file_contexts/program/apmd.fc current/file_contexts/program/apmd.fc --- default/file_contexts/program/apmd.fc 2003-05-15 05:22:15.000000000 +0200 +++ current/file_contexts/program/apmd.fc 2003-05-24 11:38:46.000000000 +0200 @@ -1,4 +1,7 @@ # apmd /usr/sbin/apmd system_u:object_r:apmd_exec_t +/usr/sbin/acpid system_u:object_r:apmd_exec_t /usr/bin/apm system_u:object_r:apm_exec_t /var/run/apmd\.pid system_u:object_r:apmd_var_run_t +/var/run/.acpid.socket system_u:object_r:apmd_var_run_t +