All of lore.kernel.org
 help / color / mirror / Atom feed
* open_init_pty function?
@ 2014-12-15 11:32 eric gisse
  2014-12-15 13:55 ` Christopher J. PeBenito
  0 siblings, 1 reply; 5+ messages in thread
From: eric gisse @ 2014-12-15 11:32 UTC (permalink / raw)
  To: selinux

In tracking down some related issues, the subject of the helper
program /usr/sbin/open_init_pty came up.

This gets called by run_init as the final step for running a program
in the initrc context, like this:

if (execvp("/usr/sbin/open_init_pty", argv)) {
  perror("execvp");
  exit(-1);
}

The context for this problem is the discovery that open_init_pty
doesn't play well with others by refusing to pass along return codes.
Eg, run_init from stock will always return 0.

Debian fixes this problem by fixing open_init_pty to return status
codes, redhat bypasses it in favor of execvp(), and gentoo uses stock
and is evaluating its' options.

What I'm trying to figure out is, is the function of open_init_pty in
the general sense.

Init scripts don't generally get a pty, so I don't understand the
necessity and hope someone here can shed a little light on this.

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

end of thread, other threads:[~2014-12-17 13:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-15 11:32 open_init_pty function? eric gisse
2014-12-15 13:55 ` Christopher J. PeBenito
2014-12-15 16:33   ` eric gisse
2014-12-15 18:26     ` Christopher J. PeBenito
2014-12-17 13:32       ` Daniel J Walsh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.