Re: [PATCH 3/3] do_wait: return security_task_wait() error code in place of -ECHILD

From: Roland McGrath
Date: Mon Mar 31 2008 - 16:21:40 EST


> Suppose that we have 2 childs. The first one is running, the second is zombie
> but nacked by security_task_wait(). Now waitpid(-1, WHOHANG|WEXITED) returns 0,
> a bit strange/confusing.

What else would it do? There is a child that will be reapable eventually
(the running one). It might be even more strange and more confusing if you
hid the running child just because there is a permission-denied one. If
you ask specifically for the permission-denied zombie you'll get the
permission error. I'm not sure we can do better.


Thanks,
Roland


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/