Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 245367 - openrc does not honour fstab shm options
Summary: openrc does not honour fstab shm options
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-03 08:13 UTC by Balint Dobai-Pataky
Modified: 2009-10-11 09:43 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Balint Dobai-Pataky 2008-11-03 08:13:03 UTC
grep shm /etc/fstab 
shm /dev/shm tmpfs exec,size=3G 0 0

mount|grep shm
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec)

grep shm /etc/make.conf
PORTAGE_TMPFS="/dev/shm"
PORTAGE_TMPDIR="/dev/shm"
BUILD_PREFIX="/dev/shm"

and the result is: portage complaining about not being to emerge anything, since exec is denied on shm:
emerge output: please make sure that portage can execute files in this directory.

is it since i upgraded to sys-apps/openrc-0.3.0-r1? i'm not sure.

i usually do a mount -oremount /dev/shm , i get the fstab mount options, and portage works

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-11-03 17:01:50 UTC
Yes, I was bitten by that as well. I was able to fix it by making this change:

-shm             /dev/shm    tmpfs       nodev,nosuid,noexec 0 0
+/dev/shm        /dev/shm    tmpfs       nodev               0 0

It probably should be documented somewhere.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-11-03 17:42:30 UTC
(In reply to comment #1)
> Yes, I was bitten by that as well. I was able to fix it by making this change:
> 
> -shm             /dev/shm    tmpfs       nodev,nosuid,noexec 0 0
> +/dev/shm        /dev/shm    tmpfs       nodev               0 0

Forgot to write that the relevant bit is "/dev/shm" instead of plain "shm", which apparently isn't recognised.
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-04-17 03:44:04 UTC
This should be in 0.4.3 by now, right? I can't find it in the svn repo.
Comment 5 Roy Marples 2009-04-17 06:38:51 UTC
(In reply to comment #4)
> This should be in 0.4.3 by now, right? I can't find it in the svn repo.

http://roy.marples.name/projects/openrc/changeset/1406/trunk