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

Bug 519578

Summary: Make /var/lib/gentoo portage_var_lib_t (or similar)
Product: Gentoo Linux Reporter: Sven Vermeulen (RETIRED) <swift>
Component: SELinuxAssignee: SE Linux Bugs <selinux>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 530912    

Description Sven Vermeulen (RETIRED) gentoo-dev 2014-08-10 17:05:51 UTC
Layman (running in portage_fetch_t) in some cases needs access to /var/lib/gentoo/news (creating a lockfile). This location is currently var_lib_t.

We probably need to make this its own file type, and then grant the proper portage domains access to it.

Reproducible: Always
Comment 1 Jason Zaman gentoo-dev 2014-11-09 06:03:17 UTC
(In reply to Sven Vermeulen from comment #0)
> Layman (running in portage_fetch_t) in some cases needs access to
> /var/lib/gentoo/news (creating a lockfile). This location is currently
> var_lib_t.

how do you trigger this?

> We probably need to make this its own file type, and then grant the proper
> portage domains access to it.

this already exists:
/var/lib/portage(/.*)?	gen_context(system_u:object_r:portage_cache_t,s0)

perhaps just re-use portage_cache_t for /var/lib/gentoo too?