r/Gentoo•
DevPump

Portage Compiling in tmpfs with SELinux

Has anyone had success with using a tmpfs for '/var/tmp/portage/' while using SELinux configured as enforcing?

Posted Dec 6, 2015, 7:25 AM UTC

53
superPwnzorMegaMan•

You can use adit2aulow on the log files to create a policy that allows that behaviour.

2
DevPumpOP•

That works, thanks!

1
rfkrocktk•

The Gentoo Handbook in its SELinux section describes how to have SELinux play nicely with tmpfs file systems. I think you need to set a SELinux type in your fstab: https://wiki.gentoo.org/wiki/SELinux/Installation

1