[Users] /dev/tty0

Jun OKAJIMA okajima at digitalinfra.co.jp
Thu Jun 7 11:17:41 EDT 2007


Ummm?? Maybe here is the problem? What is ve_is_super()???

@@ -2506,6 +2603,12 @@ retry_open:
 #ifdef CONFIG_VT
 	if (device == MKDEV(TTY_MAJOR,0)) {
 		extern struct tty_driver *console_driver;
+#ifdef CONFIG_VE
+		if (!ve_is_super(get_exec_env())) {
+			mutex_unlock(&tty_mutex);
+			return -ENODEV;
+		}
+#endif
 		driver = console_driver;
 		index = fg_console;

----------

I still have not solved this issue.
You change something on /dev/tty[0-9] in a VE?
I guess they are not same as usual ones.

-----

I can not open /dev/tty0.
"DEVICES="c:4:all:rw" does not help.

/dev/tty works, but /dev/tty0 does not.
This is feature? or possible to solve this?
It is Okay to run Apache/Sendmail,
but a bit inconvienient for debugging or development or such purposes.

OpenVZ version: 2.6.18-028stab033

                 --- Okajima, Jun. Tokyo, Japan.

[ If you dont add "DEVICES=c:4:all:rw" line to vps.conf ]
# cat /dev/tty0
cat: /dev/tty0: Permission denied
[ If you add "DEVICES=" to vps.conf ]
# cat /dev/tty0
cat: /dev/tty0: No such device
( anyway, you can not access /dev/tty0. Why? This is inevitable feature? )
# ls -la /dev/tty0
crw------- 1 root tty 4, 0 May  6 11:39 /dev/tty0
# uname -r
2.6.18-028stab033

_______________________________________________
Users mailing list
Users at openvz.org
https://openvz.org/mailman/listinfo/users


_______________________________________________
Users mailing list
Users at openvz.org
https://openvz.org/mailman/listinfo/users




More information about the Users mailing list