Messages in this thread | | | Date | Thu, 4 Nov 2004 12:27:38 -0800 | From | Chris Wright <> | Subject | Re: do_execve calls destroy_context when init_new_context has failed |
| |
* David Meybohm (frumplestillskins@yahoo.co.uk) wrote: > Who's right here? fork or exec?
I think both are right. The difference is on execve the mm is completely fresh (specifically it's zeroed out, including the context). On fork it's manually copied from the parent, so destroying it could actually destory some parent context.
thanks, -chris -- Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |