Has anyone ever gotten Stdio.File()->grantpt() to work? All I get is
grantpt failed: No child processes module.c:58()->files()->Fd: Fd()->grantpt() Stdio.File: Stdio.File("/dev/ptmx", "rw", 666 /* fd=3 */)->grantpt() HilfeInput:1: HilfeInput()->___HilfeWrapper()
The man page for grantpt also says that
The grantpt() function will fail if it is unable to success- fully invoke the setuid root program. It may also fail if the application has installed a signal handler to catch SIGCHLD signals.
Yes. But only on linux.
/ Per Hedbor ()
Previous text:
2003-05-14 16:06: Subject: grantpt
Has anyone ever gotten Stdio.File()->grantpt() to work? All I get is
grantpt failed: No child processes module.c:58()->files()->Fd: Fd()->grantpt() Stdio.File: Stdio.File("/dev/ptmx", "rw", 666 /* fd=3 */)->grantpt() HilfeInput:1: HilfeInput()->___HilfeWrapper()
The man page for grantpt also says that
The grantpt() function will fail if it is unable to success- fully invoke the setuid root program. It may also fail if the application has installed a signal handler to catch SIGCHLD signals.
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Quite true, but it's somewhat hard to fix it on Solaris, I guess that it's possible to uninstall the sigchld handler, though.
/ Per Hedbor ()
Previous text:
2003-05-14 16:07: Subject: grantpt
It would be rather nice if it worked on other systems as well. Last time I checked, Pike wasn't Linux-only... ;-)
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
If worst comes to worst, I suppose it's possible to make our own code to run the setuid binary, in cooperation with the installed SIGCHLD handler?
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2003-05-14 16:25: Subject: grantpt
Quite true, but it's somewhat hard to fix it on Solaris, I guess that it's possible to uninstall the sigchld handler, though.
/ Per Hedbor ()
In fact, it looks rather simple. It seems you just have to run the binary with the ptmx as the right fd, and it should take care of the rest... *tries it*
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2003-05-14 17:05: Subject: grantpt
Most likely, yes.
/ Per Hedbor ()
pike-devel@lists.lysator.liu.se