Bug 814427
| Summary: | Unexpected /sbin/securetty failure with read-only root file system | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Rick Mohr <rfmohr> | ||||||
| Component: | initscripts | Assignee: | Lukáš Nykrýn <lnykryn> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | qe-baseos-daemons | ||||||
| Severity: | low | Docs Contact: | |||||||
| Priority: | low | ||||||||
| Version: | 6.2 | CC: | azelinka, bugzilla, jrieden, jscotka, notting, vpavlin | ||||||
| Target Milestone: | rc | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: |
Cause:
Securetty always tries to open file /etc/securetty read/write mode
Consequence:
On readonly root filesystem this leads to failure even if the tty already exists, thus file won't be changed
Fix:
Check if the file really needs to be edited, if not, just exit correctly.
Result:
Securetty should now work correctly with readonly root.
|
Story Points: | --- | ||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2013-11-21 22:09:51 UTC | Type: | Bug | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
|
Description
Rick Mohr
2012-04-19 20:38:59 UTC
Created attachment 578786 [details]
lightly tested patch
Here's a lightly tested patch to do just that.
Created attachment 578789 [details]
better patch
And a better one that removes the now-obsolete check in rewrite_securetty.
This request was not resolved in time for the current release. Red Hat invites you to ask your support representative to propose this request, if still desired, for consideration in the next release of Red Hat Enterprise Linux. This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development. This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4. this never made 6.4 as far as I can tell. I have the exact same problem. No, this will be fixed in 6.5. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-1679.html |