Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 380537 - Segmentation Fault when booting gentoo hardened amd64 on mount
Summary: Segmentation Fault when booting gentoo hardened amd64 on mount
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: SE Linux Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-24 17:44 UTC by Joel
Modified: 2011-08-25 10:30 UTC (History)
0 users

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


Attachments
FSTAB (fstab,423 bytes, text/plain)
2011-08-24 17:45 UTC, Joel
Details
Mtab (mtab,761 bytes, text/plain)
2011-08-24 17:46 UTC, Joel
Details
emerge --info (info,4.75 KB, text/plain)
2011-08-24 17:47 UTC, Joel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joel 2011-08-24 17:44:48 UTC
Hi, I've set this fstab (works ok with archlinux) in a gentoo hardened machine, but when boots, it throws the following segmentation fault:

'/etc/init.d/localmount: Line 16: 3592 Segmentation fault mount -at "$types" $no_netdev'

I think that's related to tmpfs because it doesn't get mounted. I supply the fstab and the mtab of the system. 

I'm using gentoo amd64 stable, installed and updated from 23rd August 2011.
Thanks

Reproducible: Always
Comment 1 Joel 2011-08-24 17:45:14 UTC
Created attachment 284499 [details]
FSTAB
Comment 2 Joel 2011-08-24 17:46:02 UTC
Created attachment 284503 [details]
Mtab
Comment 3 Joel 2011-08-24 17:46:35 UTC
I've updated to the last util-linux 2.19.1-r1, with no luck
Comment 4 Joel 2011-08-24 17:47:06 UTC
Created attachment 284505 [details]
emerge --info
Comment 5 Joel 2011-08-24 20:59:26 UTC
Next time I'll read the official docs, not the wiki :)
Comment 6 Anthony Basile gentoo-dev 2011-08-24 21:25:15 UTC
(In reply to comment #5)
> Next time I'll read the official docs, not the wiki :)

Post the two and point out the discrepency since you may not be the only person to get bitten by this.  Thanks.
Comment 7 Joel 2011-08-24 22:13:41 UTC
The official docs say this:

# For a "targeted" or "strict" policy type:
tmpfs  /tmp  tmpfs  defaults,noexec,nosuid,rootcontext=system_u:object_r:tmp_t  0 0

# For an "mls" or "mcs" policy type:
tmpfs  /tmp  tmpfs  defaults,noexec,nosuid,rootcontext=system_u:object_r:tmp_t:s0  0 0

While there's no info on the wiki, so I assumed that the tmpfs had the same config on both profiles. Thanks.
Comment 8 Anthony Basile gentoo-dev 2011-08-25 10:30:40 UTC
Thanks

@Sven, beware the unofficial wiki!  We're not responsible for it, but should we contact them and asked them to track our pages better?  Lots of people use it.