From: gizmo@giz-works.com (Chris Richards) Date: Fri, 16 Apr 2010 06:28:36 +0000 Subject: [refpolicy] [PATCH 1/1] bootmisc init script Message-ID: <1271399316-4217-1-git-send-email-gizmo@giz-works.com> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com Allow to create /var/lock/.keep. This prevents Portage from destroying /var/lock under certain conditions. This patch is Gentoo specific. Signed-off-by: Chris Richards --- policy/modules/system/init.te | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/policy/modules/system/init.te b/policy/modules/system/init.te index a729ea1..04d5792 100644 --- a/policy/modules/system/init.te +++ b/policy/modules/system/init.te @@ -326,6 +326,9 @@ files_getattr_all_pipes(initrc_t) files_getattr_all_sockets(initrc_t) files_purge_tmp(initrc_t) files_delete_all_locks(initrc_t) +ifdef(`distro_gentoo',` + files_manage_generic_locks(initrc_t) +') files_read_all_pids(initrc_t) files_delete_all_pids(initrc_t) files_delete_all_pid_dirs(initrc_t) -- 1.6.4.4