Bug 489974
| Summary: | Encrypted /tmp partition prevents server from booting | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Thomas <theitsmith> |
| Component: | initscripts | Assignee: | initscripts Maintenance Team <initscripts-maint-list> |
| Status: | CLOSED WONTFIX | QA Contact: | BaseOS QE <qe-baseos-auto> |
| Severity: | high | Docs Contact: | |
| Priority: | low | ||
| Version: | 5.2 | CC: | agk, dwysocha, mbroz, notting, prockai |
| Target Milestone: | rc | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-02-11 21:47:02 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Thomas
2009-03-12 18:25:17 UTC
/etc/crypttab is processed by inittscripts, reassigning to that component. (the tmp option is documented in crypttab man page, so it really should work...) Just note - using random key means that partition doesn't use LUKS but simple crypt mapping. *** This bug has been marked as a duplicate of bug 251494 *** Whoops, wrong tab. You're attempting to use /dev/urandom as a key, before the RNG is seeded. That won't work. Yes, but the fact still remains--this is a documented capability in the crypttab man page. So one would expect it to work as advertised. In order for my desired partition layout to work, things need to be started in this order: 1) LVM. 2) RNG. 3) Encrypted partitions. 4) File system checks, etc. 5) swap partitions. For those who use software RAID, that would need to be handled prior to LVM. But the order things are loading in appears to be this: 1) LVM. 2) File system checks, etc. (This is where luks_tmp is failing, for reasons stated in the previous post.) 3) RNG. 4) Encrypted partitions. 5) swap partitions. Would it be possible to modify the order that these things are initialized in? The ability to do have an encypted /tmp partition, just like swap, adds to the overall security of the server. And since /tmp really has no reusable data between boots, it also makes sense to be able to use a random key. RNG requires a readable /var, to get the seed to put in the RNG. This may not be available until after fsck, as it may not be mounted then if it's a separate fs. It also requires writable /var, to save the seed once it's initialized. Obviously, that doesn't work until after fsck & remount r/w. Oof, getting back to this. The only fix likely to be pushed for RHEL, due to the invasiveness, is to remove /dev/urandom as a documented use case. Closing this as WONTFIX for now; this is too invasive for current RHEL. |