diff options
| author | Patrick Mochel <mochel@digitalimplant.org> | 2004-09-02 15:40:36 -0700 |
|---|---|---|
| committer | Patrick Mochel <mochel@digitalimplant.org> | 2004-09-02 15:40:36 -0700 |
| commit | 80e1f7fa6e60e7a32409f121775ec510aad60df2 (patch) | |
| tree | e47bbaebb1e649d3d40f386ab675504b647c5a7a /kernel/capability.c | |
| parent | 30611d8282d0cd850132b5db013fedf24d6e07b9 (diff) | |
| parent | 3411df4ee64e032426f09392526ca74179aceee5 (diff) | |
Merge digitalimplant.org:/home/mochel/src/linux-2.6-virgin
into digitalimplant.org:/home/mochel/src/linux-2.6-power
Diffstat (limited to 'kernel/capability.c')
| -rw-r--r-- | kernel/capability.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/capability.c b/kernel/capability.c index 1c5c35718450..7e864e2ccf6a 100644 --- a/kernel/capability.c +++ b/kernel/capability.c @@ -89,14 +89,12 @@ static inline void cap_set_pg(int pgrp, kernel_cap_t *effective, kernel_cap_t *permitted) { task_t *g, *target; - struct list_head *l; - struct pid *pid; - for_each_task_pid(pgrp, PIDTYPE_PGID, g, l, pid) { + do_each_task_pid(pgrp, PIDTYPE_PGID, g) { target = g; while_each_thread(g, target) security_capset_set(target, effective, inheritable, permitted); - } + } while_each_task_pid(pgrp, PIDTYPE_PGID, g); } /* |
