patch to exec_domain

Kjohn Sasitorn (kjohn@cs.utexas.edu)
Wed, 24 Oct 2001 09:34:20 -0500


Currently, the personality(2) system call always returns the previous
persona. However, according to the manpage, it should return the previous
persona when successful and -1 otherwise. The following patch to
lookup_exec_domain() should remedy this behavior:

--- kernel-source-2.4.12.orig/kernel/exec_domain.c Thu Oct 18 09:12:47
2001
+++ kernel-source-2.4.12/kernel/exec_domain.c Thu Oct 18 09:23:59 2001
@@ -100,7 +100,7 @@
}
#endif

- ep = &default_exec_domain;
+ ep = NULL;
out:
read_unlock(&exec_domains_lock);
return (ep);

Kjohn Sasitorn
kjohn@cs.utexas.edu
-
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/