Okay, these should either be global or apply to the invoked (file
descriptor) tty. Anything else is completely broken. In fact, I'd
argue that using ioctl's for anything but global data (since it's
global, it has to be privileged) is in itself broken. (Note: all the
font stuff used to be global state for kernel memory reasons.)
Why do you have the following in your patch? It makes the permissions
on the console depend on whether or not it is in the foreground, which
seems like another stupid inconsistency:
> + if (!perm && fg_console !=3D console)
> + return -EPERM;
-hpa
-- <hpa@transmeta.com> at work, <hpa@zytor.com> in private! "Unix gives you enough rope to shoot yourself in the foot." http://www.zytor.com/~hpa/puzzle.txt - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/