1 diff -aur procps-3.2.8.pristine//Makefile procps-3.2.8.new//Makefile
2 --- procps-3.2.8.pristine//Makefile 2010-07-23 15:45:52.829554761 +0200
3 +++ procps-3.2.8.new//Makefile 2010-07-23 15:48:55.956206700 +0200
5 # Something like this is probably needed to make the SE Linux
6 # library loading not conflict with embedded systems stuff.
10 -#LIBTYPE := -DSHAREDLIB
12 -#LIBTYPE := -DSTATICLIB
16 +LIBTYPE := -DSHAREDLIB
18 +LIBTYPE := -DSTATICLIB
22 PKG_CPPFLAGS := -D_GNU_SOURCE -I proc
23 CPPFLAGS := -I/usr/include/ncurses
24 -ALL_CPPFLAGS := $(PKG_CPPFLAGS) $(CPPFLAGS)
25 +ALL_CPPFLAGS := $(PKG_CPPFLAGS) $(CPPFLAGS) $(LIBTYPE)
27 # Left out -Wconversion due to noise in glibc headers.
28 # Left out -Wunreachable-code and -Wdisabled-optimization
29 diff -aur procps-3.2.8.pristine//ps/output.c procps-3.2.8.new//ps/output.c
30 --- procps-3.2.8.pristine//ps/output.c 2010-07-23 15:45:52.836223643 +0200
31 +++ procps-3.2.8.new//ps/output.c 2010-07-23 15:54:41.372842564 +0200
33 return snprintf(outbuf, COLWID, "*");
38 /****************** FLASK & seLinux security stuff **********************/
39 // move the bulk of this to libproc sometime
47 // This needs more study, considering:
48 // 1. the static linking option (maybe disable this in that case)
49 // 2. the -z and -Z option issue
53 if(!ps_getpidcon && !tried_load){
54 - void *handle = dlopen("libselinux.so.1", RTLD_NOW);
55 + void *handle = dlopen("libselinux.so", RTLD_NOW);
58 ps_getpidcon = dlsym(handle, "getpidcon");
59 diff -aur procps-3.2.8.pristine//w.c procps-3.2.8.new//w.c
60 --- procps-3.2.8.pristine//w.c 2010-07-23 15:45:52.829554761 +0200
61 +++ procps-3.2.8.new//w.c 2010-07-23 16:05:53.042775257 +0200
63 if(best && tmp->start_time <= best->start_time) continue;
66 + /* It is there but SELinux wouldn't allow us to know the detail. Really
67 + w should just be given rights */
68 + if(!kill(u->ut_pid, 0) || errno != ESRCH)
70 return best ? best : secondbest;