]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/capability.c
[PATCH] csa: basic accounting over taskstats
[linux-2.6-omap-h63xx.git] / kernel / capability.c
index c7685ad00a97c4ddfd2f47029f0b5b4342da80be..edb845a6e84ae5e649ece39e18384620c5dac74e 100644 (file)
@@ -133,7 +133,7 @@ static inline int cap_set_all(kernel_cap_t *effective,
      int found = 0;
 
      do_each_thread(g, target) {
-             if (target == current || target->pid == 1)
+             if (target == current || is_init(target))
                      continue;
              found = 1;
             if (security_capset_check(target, effective, inheritable,