init: this is a bug in debian where tmpfs is mounted on /run, and so early on in the boot process init creates /run/utmp and /run/initctl in a tmpfs directory (/) tmpfs

Signed-off-by: Dominick Grift <dominick.grift@gmail.com>
This commit is contained in:
Dominick Grift 2013-11-09 10:45:07 +01:00 committed by Chris PeBenito
parent 32d6aac409
commit 75cca597f6
1 changed files with 5 additions and 0 deletions

View File

@ -179,6 +179,11 @@ seutil_read_config(init_t)
miscfiles_read_localization(init_t)
ifdef(`distro_debian',`
fs_tmpfs_filetrans(init_t, initctl_t, fifo, "initctl")
fs_tmpfs_filetrans(init_t, initrc_var_run_t, file, "utmp")
')
ifdef(`distro_gentoo',`
allow init_t self:process { getcap setcap };