1
Description: fix privilege escalation via file permission change
2
Author: Matthieu Herrb <matthieu@herrb.eu>
4
diff -Nur xorg-server-1.10.1/os/utils.c xorg-server-1.10.1.new/os/utils.c
5
--- xorg-server-1.10.1/os/utils.c 2011-10-13 11:03:33.252840314 -0400
6
+++ xorg-server-1.10.1.new/os/utils.c 2011-10-13 11:03:37.824840433 -0400
8
FatalError("Could not create lock file in %s\n", tmp);
9
(void) sprintf(pid_str, "%10ld\n", (long)getpid());
10
(void) write(lfd, pid_str, 11);
11
- (void) chmod(tmp, 0444);
12
+ (void) fchmod(lfd, 0444);