last_patch95 from vodz:
[oweals/busybox.git] / procps / top.c
index b70a42a72f3daa7f3298d96121739cf6fec57aca..2e1bd3286d38d324a874f0c10f668c249809a876 100644 (file)
@@ -501,7 +501,11 @@ int top_main(int argc, char **argv)
                /* read process IDs & status for all the processes */
                procps_status_t * p;
 
+#ifdef CONFIG_SELINUX
+               while ((p = procps_scan(0, 0, NULL) ) != 0) {
+#else
                while ((p = procps_scan(0)) != 0) {
+#endif
                        int n = ntop;
 
                        top = xrealloc(top, (++ntop)*sizeof(procps_status_t));