1
Description: setuid()'s return must be checked in the case that some RLIMIT
2
or other issue does not stop the transition. Additionally, setresuid()
3
should be used so that the process cannot regain its prior uid.
4
Author: Kees Cook <kees@ubuntu.com>
5
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/xsplash/+bug/439272
6
Bug: https://bugs.launchpad.net/xsplash/+bug/439272
7
Last-Update: 2009-10-03
9
diff -Nur -x '*.orig' -x '*~' xsplash-0.8.1/src/xsplash.c xsplash-0.8.1.new/src/xsplash.c
10
--- xsplash-0.8.1/src/xsplash.c 2009-09-30 13:16:13.000000000 -0700
11
+++ xsplash-0.8.1.new/src/xsplash.c 2009-09-30 13:17:30.000000000 -0700
17
+ if ( setresuid (uid, uid, uid) < 0) {
18
+ g_error ("Unable to setuid to: %s", XSPLASH_USER);
22
context = g_option_context_new ("xsplash");
23
g_option_context_add_main_entries (context,