getty: setsid: Operation not permitted on busybox v1.20.2

Johannes Stezenbach js at sig21.net
Thu Aug 16 13:39:08 UTC 2012


On Thu, Aug 16, 2012 at 03:33:25PM +0200, Denys Vlasenko wrote:
> On Thu, Aug 16, 2012 at 8:01 AM, Priebe, Sebastian
> <Sebastian.Priebe at cadcon.de> wrote:
> >>and modify it to print this:
> >>
> >>bb_perror_msg_and_die("setsid fails: pid %d ppid %d sid %d", pid, getppid(), getsid(0));
> >
> > getty: setsid fails: pid 1100 ppid 1092 sid 1092: Operation not permitted
> >
> >>> I want to call getty from init to provide a login.
> >>
> >>Please post your iniitab and .config file
> >
> > Inittab:
> > ::shutdown:/bin/umount -a -r
> > ::restart:/sbin/init
> > ::respawn:/bin/cttyhack /bin/sh
> > ::sysinit:/etc/init.d/rcS
> > ::respawn:/sbin/getty tty0
> 
> I am surprised that parent PID is 1092.
> When you run getty from init, parent PID should be 1.
> Did you run getty from init for this test?
> It looks like you ran getty from a shell.

Besides the ppid issue, does the cttyhack screw things up for getty?


Johannes


More information about the busybox mailing list