Gentoo openrc migrates /var/run and /var/lock data to /run(/lock)
Gentoo's OpenRC init framework handles the migration of data from /var/run to /run, and /var/lock to /run/lock. To deal with this, openrc uses "cp -a -r /var/run /run" and "cp -a -r /var/lock/* /run/lock". When done, it will create symlinks in /var towards the new locations. As a result, initrc_t needs to be able to manage symlinks in /var, as well as manage all pidfile content (needed for the migration of /var/run/* towards /run). Signed-off-by: Sven Vermeulen <sven.vermeulen@siphos.be>
This commit is contained in:
parent
5751a33f27
commit
da69156a54
@ -86,7 +86,6 @@ files_pid_file(initrc_var_run_t)
|
|||||||
ifdef(`distro_gentoo',`
|
ifdef(`distro_gentoo',`
|
||||||
type rc_exec_t;
|
type rc_exec_t;
|
||||||
domain_entry_file(initrc_t, rc_exec_t)
|
domain_entry_file(initrc_t, rc_exec_t)
|
||||||
|
|
||||||
')
|
')
|
||||||
|
|
||||||
ifdef(`enable_mls',`
|
ifdef(`enable_mls',`
|
||||||
@ -461,8 +460,10 @@ ifdef(`distro_gentoo',`
|
|||||||
dev_delete_generic_dirs(initrc_t)
|
dev_delete_generic_dirs(initrc_t)
|
||||||
dev_setattr_generic_dirs(initrc_t)
|
dev_setattr_generic_dirs(initrc_t)
|
||||||
|
|
||||||
|
files_manage_all_pids(initrc_t)
|
||||||
# allow bootmisc to create /var/lock/.keep.
|
# allow bootmisc to create /var/lock/.keep.
|
||||||
files_manage_generic_locks(initrc_t)
|
files_manage_generic_locks(initrc_t)
|
||||||
|
files_manage_var_symlinks(initrc_t)
|
||||||
files_pid_filetrans(initrc_t, initrc_state_t, dir, "openrc")
|
files_pid_filetrans(initrc_t, initrc_state_t, dir, "openrc")
|
||||||
|
|
||||||
# openrc uses tmpfs for its state data
|
# openrc uses tmpfs for its state data
|
||||||
|
Loading…
Reference in New Issue
Block a user