Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 388875

Summary: bootmisc wants to write to /var/log
Product: Gentoo Linux Reporter: Sven Vermeulen (RETIRED) <swift>
Component: HardenedAssignee: Sven Vermeulen (RETIRED) <swift>
Status: VERIFIED FIXED    
Severity: normal CC: selinux
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 293742    

Description Sven Vermeulen (RETIRED) gentoo-dev 2011-10-29 18:39:59 UTC
In the bootmisc code, the script wants to write to /var/log to dump the output of "dmesg" into a /var/log/dmesg file. SELinux might hinder this, as initrc_t does not hold the proper privileges on var_log_t to do so.

{ create } comm="mkdir" name=".test.1390" scontext=system_u:system_r:initrc_t
tcontext=system_u:object_r:var_log_t tclass=dir  
{ rmdir } comm="rmdir" name=".test.1390" dev=vda4 ino=16285
scontext=system_u:system_r:initrc_t tcontext=system_u:object_r:var_log_t
tclass=dir

Reproducible: Always
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2011-10-29 18:41:00 UTC
Bug originally reported by Nick Kossifidis (bug #293742)
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2011-11-12 21:20:14 UTC
In hardened-dev overlay
Comment 3 Sven Vermeulen (RETIRED) gentoo-dev 2011-11-15 10:52:15 UTC
Moved to main portage tree, ~arch'ed.
Comment 4 Sven Vermeulen (RETIRED) gentoo-dev 2011-12-20 18:53:32 UTC
stabilized.