Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 155566 Details for
Bug 236848
mount/fstab.c:lock_mtab() should open with proper permissions
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to fix mtab~ lock permission when CAP_DAC_OVERRIDE is revoked
util-linux-2.13-pre7-mtab-lock-perms.patch (text/plain), 913 bytes, created by
Flavio Leitner
on 2007-05-28 22:05:44 UTC
(
hide
)
Description:
Patch to fix mtab~ lock permission when CAP_DAC_OVERRIDE is revoked
Filename:
MIME Type:
Creator:
Flavio Leitner
Created:
2007-05-28 22:05:44 UTC
Size:
913 bytes
patch
obsolete
>[IT#116584] mount should set proper permissions on locktime > >When creating the "/etc/mtab~" lockfile (specifically 'linktargetfile' in the >lock_mtab function), the file is created with incorrect permissions ('000') >which necessitates root to leverage CAP_DAC_OVERRIDE. If proper file modes (it >would appear 0600 would be sufficient) were used in the open this would >function properly with CAP_DAC_OVERRIDE revoked. > > >Index: util-linux-2.13-pre7/mount/fstab.c >=================================================================== >--- util-linux-2.13-pre7.orig/mount/fstab.c >+++ util-linux-2.13-pre7/mount/fstab.c >@@ -486,7 +486,7 @@ lock_mtab (void) { > > sprintf(linktargetfile, MOUNTLOCK_LINKTARGET, getpid ()); > >- i = open (linktargetfile, O_WRONLY|O_CREAT, 0); >+ i = open (linktargetfile, O_WRONLY|O_CREAT, S_IRUSR|S_IWUSR); > if (i < 0) { > int errsv = errno; > /* linktargetfile does not exist (as a file)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 236848
: 155566