From: Roger Binns <rogerb@ro...> - 2002-03-20 00:13:08
The Suse version of mingetty fails to run because TIOCSCTTY
fails on the tty devices. An strace shows:
351 open("/dev/ttys/2", O_RDWR|O_LARGEFILE) = 3
351 ioctl(3, 0x540e) = -1 EPERM (Operation not permitted)
(There is a third argument to the ioctl which strace doesn't show.
A value if (int)1 seems to mean that the caller wants to override
any existing controlling terminal. Any other values are ignored.
I wrote a small test program as below. Run it as root under strace to
see calls and results. Inside UML as well as on a real host, I
always get EPERM. Does anyone have any idea why this would work on
a real Suse machine, but apparently nowhere else? [I am currently
working around the problem by using agetty, but would like to understand
what is going on.]
/* quick and dirty way of getting defn */
#define O_LARGEFILE 0100000
int main(int argc, char **argv)
ioctl(fd, TIOCSCTTY, 0);
ioctl(fd, TIOCSCTTY, 1);
I'm wondering if an archive of the UML mailing list exists someplace?
I saw a bunch of messages go by about IPv6 several days ago now. I wasn't
interested at the time, but by a turn of events, now I am. If there's an
archive somewhere, I could peruse these old messages without having to