Skip to contentSkip to conversation

bootmisc init script, 2nd try

PATCH New Chris Richards 2 participants 2 messages Apr 24, 2010 – Apr 26, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bootmisc init script, 2nd try

Allow to create /var/lock/.keep. This prevents Portage from destroying /var/lock under certain conditions. This patch is Gentoo specific.

---
 policy/modules/system/init.te |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
policy/modules/system/init.te +3 -0
index 764c4be..6de52b6 100644
@@ -437,6 +437,9 @@ ifdef(`distro_gentoo',`
 	dev_create_generic_dirs(initrc_t)
 	dev_delete_generic_dirs(initrc_t)
 
+	# allow bootmisc to create /var/lock/.keep.
+	files_manage_generic_locks(initrc_t)
+
 	# openrc uses tmpfs for its state data
 	fs_tmpfs_filetrans(initrc_t, initrc_state_t, { dir file fifo_file lnk_file })
 
Signature · 1 line
1.6.4.4
#1 lore raw

PATCH 1/1 bootmisc init script, 2nd try

Quoted 1 line · Chris Richards

Allow to create /var/lock/.keep. This prevents Portage from destroying /var/lock under certain conditions. This patch is Gentoo specific.

Merged.

Quoted 19 lines
---
 policy/modules/system/init.te |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
policy/modules/system/init.te +3 -0
index 764c4be..6de52b6 100644
@@ -437,6 +437,9 @@ ifdef(`distro_gentoo',`
 	dev_create_generic_dirs(initrc_t)
 	dev_delete_generic_dirs(initrc_t)
 
+	# allow bootmisc to create /var/lock/.keep.
+	files_manage_generic_locks(initrc_t)
+
 	# openrc uses tmpfs for its state data
 	fs_tmpfs_filetrans(initrc_t, initrc_state_t, { dir file fifo_file lnk_file })
 
Signature · 2 lines
Chris PeBenito
Tresys Technology, LLC