Commit 3479607f authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] fix "compat ioctl consolidation" for "move job

A little fix which is needed if both the "compat ioctl consolidation" and
"move job control fields from task_struct to signal_struct" patches are
applied.
parent 1bd563fd
......@@ -1574,7 +1574,7 @@ static int vt_check(struct file *file)
* To have permissions to do most of the vt ioctls, we either have
* to be the owner of the tty, or super-user.
*/
if (current->tty == tty || capable(CAP_SYS_ADMIN))
if (process_tty(current) == tty || capable(CAP_SYS_ADMIN))
return 1;
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment