What difference? (running screen in chroot)
Posted: Sun Sep 18, 2005 4:00 pm
i`d like to run program in screen under chrooted enviroment.
When i try to run screen, i get error: "Must be connected to a terminal."
I searched a bit and found that problem is in device files. for example see this thread: http://lists.gnu.org/archive/html/scree ... 00068.html
I tried to create all required device files under chroot,but no luck.
When i made mount --bind /dev/ /my/chroot/dev, screen seems to work.
What is the difference if i have /my/chroot/dev mounted with --bind or i have device files naturally in dir?
does anyone succeded in running screen under chroot with grsecurity?
============
I ran strace in both cases and made diff file on strace logs. Diff is here:
http://rafb.net/paste/results/McLhkE85.html [24 hours]
Looks pretty same till line 155, after that changes start. ( some condition met?)
When i try to run screen, i get error: "Must be connected to a terminal."
I searched a bit and found that problem is in device files. for example see this thread: http://lists.gnu.org/archive/html/scree ... 00068.html
I tried to create all required device files under chroot,but no luck.
When i made mount --bind /dev/ /my/chroot/dev, screen seems to work.
What is the difference if i have /my/chroot/dev mounted with --bind or i have device files naturally in dir?
does anyone succeded in running screen under chroot with grsecurity?
============
I ran strace in both cases and made diff file on strace logs. Diff is here:
http://rafb.net/paste/results/McLhkE85.html [24 hours]
Looks pretty same till line 155, after that changes start. ( some condition met?)