[BusyBox] Readonly fs "can't access tty; job control turned off"
Paul TOTH
tothpaul at free.fr
Mon Dec 30 03:00:07 UTC 2002
Hi,
There're some messages about the message "sh: can't access tty; job control
turned off"
I've found where this error come from...but don't know what's wrong.
The init applet add inittab's task with new_init_action().
This function check the tty access with access().
My Kernel (Mandrake 7.0) return an error -EROFS in fs/open.c :
int sys_access(const char * filename, int mode)
[...]
dentry=namei(filename);
res=PTR_ERR(dentry);
if (!IS_ERR(dentry)) {
res=permission(dentry->d_inode,mode);
/* SuS V2 requires we report a read only fs too */
if (!res && (mode & S_IWOTH) && IS_RDONLY(dentry->d_inode)
res=-EROFS;
dput(dentry);
}
[...]
I don't know if the root fs should be read only or not when init start.
So is it a busybox bug or not ?
Regards
Paul TOTH <tothpaul at free.fr>
http://tothpaul.free.fr
More information about the busybox
mailing list