Re: do_execve calls destroy_context when init_new_context has failed

From: Chris Wright
Date: Thu Nov 04 2004 - 15:40:23 EST


* David Meybohm (frumplestillskins@xxxxxxxxxxx) 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/