mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* patch to exec_domain
@ 2001-10-24 14:34 Kjohn Sasitorn
  2001-10-24 10:12 ` Paul Larson
  0 siblings, 1 reply; 2+ messages in thread
From: Kjohn Sasitorn @ 2001-10-24 14:34 UTC (permalink / raw)
  To: linux-kernel; +Cc: torvalds

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-10-24 15:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-24 14:34 patch to exec_domain Kjohn Sasitorn
2001-10-24 10:12 ` Paul Larson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®