summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Willich <sabotageandi@gmail.com>2011-10-29 21:43:27 +0200
committerAndreas Willich <sabotageandi@gmail.com>2011-10-29 21:43:27 +0200
commitc920e8daaa4a4a4a601f606eaa4764750fe80639 (patch)
tree6ee77ae8a68b6a41965a39bdef398543731d3b35 /x11-base/xorg-server/files/xorg-cve-2011-4028+4029.patch
parentUpdate patch with latest nathy release (diff)
downloadsabotageandi-c920e8daaa4a4a4a601f606eaa4764750fe80639.tar.gz
sabotageandi-c920e8daaa4a4a4a601f606eaa4764750fe80639.tar.bz2
sabotageandi-c920e8daaa4a4a4a601f606eaa4764750fe80639.zip
update versions
Diffstat (limited to 'x11-base/xorg-server/files/xorg-cve-2011-4028+4029.patch')
-rw-r--r--x11-base/xorg-server/files/xorg-cve-2011-4028+4029.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/x11-base/xorg-server/files/xorg-cve-2011-4028+4029.patch b/x11-base/xorg-server/files/xorg-cve-2011-4028+4029.patch
new file mode 100644
index 0000000..66e77f6
--- /dev/null
+++ b/x11-base/xorg-server/files/xorg-cve-2011-4028+4029.patch
@@ -0,0 +1,22 @@
+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);