Lines Matching refs:perm
284 unsigned long arg, bool perm) in vt_k_ioctl() argument
293 if (!perm) in vt_k_ioctl()
307 if (!perm) in vt_k_ioctl()
377 if (!perm) in vt_k_ioctl()
397 if (!perm) in vt_k_ioctl()
420 perm = 0; in vt_k_ioctl()
421 return vt_do_kbkeycode_ioctl(cmd, up, perm); in vt_k_ioctl()
425 return vt_do_kdsk_ioctl(cmd, up, perm, console); in vt_k_ioctl()
429 return vt_do_kdgkb_ioctl(cmd, up, perm); in vt_k_ioctl()
437 return vt_do_diacrit(cmd, up, perm); in vt_k_ioctl()
445 return vt_do_kdskled(console, cmd, arg, perm); in vt_k_ioctl()
455 if (!perm || !capable(CAP_KILL)) in vt_k_ioctl()
472 if (!perm && op.op != KD_FONT_OP_GET) in vt_k_ioctl()
490 bool perm, struct vc_data *vc) in do_unimap_ioctl() argument
498 if (!perm) in do_unimap_ioctl()
502 if (!perm && fg_console != vc->vc_num) in do_unimap_ioctl()
511 bool perm) in vt_io_ioctl() argument
515 if (!perm) in vt_io_ioctl()
523 if (!perm) in vt_io_ioctl()
531 if (!perm) in vt_io_ioctl()
539 if (!perm) in vt_io_ioctl()
546 return do_unimap_ioctl(cmd, up, perm, vc); in vt_io_ioctl()
741 int i, perm; in vt_ioctl() local
748 perm = 0; in vt_ioctl()
750 perm = 1; in vt_ioctl()
752 ret = vt_k_ioctl(tty, cmd, arg, perm); in vt_ioctl()
756 ret = vt_io_ioctl(vc, cmd, up, perm); in vt_ioctl()
767 if (!perm) in vt_ioctl()
842 if (!perm) in vt_ioctl()
858 if (!perm) in vt_ioctl()
867 if (!perm) in vt_ioctl()
884 if (!perm) in vt_ioctl()
915 if (!perm) in vt_ioctl()
936 if (!perm) in vt_ioctl()
1013 int perm, struct console_font_op *op, struct vc_data *vc) in compat_kdfontop_ioctl() argument
1019 if (!perm && op->op != KD_FONT_OP_GET) in compat_kdfontop_ioctl()
1038 int perm, struct vc_data *vc) in compat_unimap_ioctl() argument
1048 if (!perm) in compat_unimap_ioctl()
1052 if (!perm && fg_console != vc->vc_num) in compat_unimap_ioctl()
1065 int perm; in vt_compat_ioctl() local
1071 perm = 0; in vt_compat_ioctl()
1073 perm = 1; in vt_compat_ioctl()
1081 return compat_kdfontop_ioctl(up, perm, &op, vc); in vt_compat_ioctl()
1085 return compat_unimap_ioctl(cmd, up, perm, vc); in vt_compat_ioctl()