Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 289761 Details for
Bug 387069
<x11-base/xorg-server-{1.9.5-r1,1.10.4-r1} Lockfile handling vulnerabilities (CVE-2011-{4028,4029})
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
xorg-cve-2011-4028+4029.patch
xorg-cve-2011-4028+4029.patch (text/plain), 671 bytes, created by
Alex Legler (RETIRED)
on 2011-10-13 20:51:36 UTC
(
hide
)
Description:
xorg-cve-2011-4028+4029.patch
Filename:
MIME Type:
Creator:
Alex Legler (RETIRED)
Created:
2011-10-13 20:51:36 UTC
Size:
671 bytes
patch
obsolete
>diff --git a/os/utils.c b/os/utils.c >index e8ecb71..18ff1ca 100644 >--- a/os/utils.c >+++ b/os/utils.c >@@ -297,7 +297,7 @@ LockServer(void) > FatalError("Could not create lock file in %s\n", tmp); > (void) sprintf(pid_str, "%10ld\n", (long)getpid()); > (void) write(lfd, pid_str, 11); >- (void) chmod(tmp, 0444); >+ (void) fchmod(lfd, 0444); > (void) close(lfd); > > /* >@@ -318,7 +318,7 @@ LockServer(void) > /* > * Read the pid from the existing file > */ >- lfd = open(LockFile, O_RDONLY); >+ lfd = open(LockFile, O_RDONLY|O_NOFOLLOW); > if (lfd < 0) { > unlink(tmp); > FatalError("Can't read lock file %s\n", LockFile);
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 387069
: 289761 |
289769
|
289771