Lines Matching refs:param
169 [r->param.path.operation], in tomoyo_audit_path_log()
170 r->param.path.filename->name); in tomoyo_audit_path_log()
183 [tomoyo_pp2mac[r->param.path2.operation]], in tomoyo_audit_path2_log()
184 r->param.path2.filename1->name, in tomoyo_audit_path2_log()
185 r->param.path2.filename2->name); in tomoyo_audit_path2_log()
199 [tomoyo_pnnn2mac[r->param.mkdev.operation]], in tomoyo_audit_mkdev_log()
200 r->param.mkdev.filename->name, in tomoyo_audit_mkdev_log()
201 r->param.mkdev.mode, r->param.mkdev.major, in tomoyo_audit_mkdev_log()
202 r->param.mkdev.minor); in tomoyo_audit_mkdev_log()
214 const u8 type = r->param.path_number.operation; in tomoyo_audit_path_number_log()
233 tomoyo_print_ulong(buffer, sizeof(buffer), r->param.path_number.number, in tomoyo_audit_path_number_log()
237 r->param.path_number.filename->name, buffer); in tomoyo_audit_path_number_log()
258 if (acl->perm & (1 << r->param.path.operation)) { in tomoyo_check_path_acl()
259 r->param.path.matched_path = in tomoyo_check_path_acl()
260 tomoyo_compare_name_union(r->param.path.filename, in tomoyo_check_path_acl()
262 return r->param.path.matched_path != NULL; in tomoyo_check_path_acl()
281 return (acl->perm & (1 << r->param.path_number.operation)) && in tomoyo_check_path_number_acl()
282 tomoyo_compare_number_union(r->param.path_number.number, in tomoyo_check_path_number_acl()
284 tomoyo_compare_name_union(r->param.path_number.filename, in tomoyo_check_path_number_acl()
302 return (acl->perm & (1 << r->param.path2.operation)) && in tomoyo_check_path2_acl()
303 tomoyo_compare_name_union(r->param.path2.filename1, &acl->name1) in tomoyo_check_path2_acl()
304 && tomoyo_compare_name_union(r->param.path2.filename2, in tomoyo_check_path2_acl()
322 return (acl->perm & (1 << r->param.mkdev.operation)) && in tomoyo_check_mkdev_acl()
323 tomoyo_compare_number_union(r->param.mkdev.mode, in tomoyo_check_mkdev_acl()
325 tomoyo_compare_number_union(r->param.mkdev.major, in tomoyo_check_mkdev_acl()
327 tomoyo_compare_number_union(r->param.mkdev.minor, in tomoyo_check_mkdev_acl()
329 tomoyo_compare_name_union(r->param.mkdev.filename, in tomoyo_check_mkdev_acl()
387 struct tomoyo_acl_param *param) in tomoyo_update_path_acl() argument
395 if (!tomoyo_parse_name_union(param, &e.name)) in tomoyo_update_path_acl()
398 error = tomoyo_update_domain(&e.head, sizeof(e), param, in tomoyo_update_path_acl()
463 struct tomoyo_acl_param *param) in tomoyo_update_mkdev_acl() argument
471 if (!tomoyo_parse_name_union(param, &e.name) || in tomoyo_update_mkdev_acl()
472 !tomoyo_parse_number_union(param, &e.mode) || in tomoyo_update_mkdev_acl()
473 !tomoyo_parse_number_union(param, &e.major) || in tomoyo_update_mkdev_acl()
474 !tomoyo_parse_number_union(param, &e.minor)) in tomoyo_update_mkdev_acl()
477 error = tomoyo_update_domain(&e.head, sizeof(e), param, in tomoyo_update_mkdev_acl()
542 struct tomoyo_acl_param *param) in tomoyo_update_path2_acl() argument
550 if (!tomoyo_parse_name_union(param, &e.name1) || in tomoyo_update_path2_acl()
551 !tomoyo_parse_name_union(param, &e.name2)) in tomoyo_update_path2_acl()
554 error = tomoyo_update_domain(&e.head, sizeof(e), param, in tomoyo_update_path2_acl()
583 r->param.path.filename = filename; in tomoyo_path_permission()
584 r->param.path.operation = operation; in tomoyo_path_permission()
613 r->param.path.filename = filename; in tomoyo_execute_permission()
614 r->param.path.operation = TOMOYO_TYPE_EXECUTE; in tomoyo_execute_permission()
679 struct tomoyo_acl_param *param) in tomoyo_update_path_number_acl() argument
687 if (!tomoyo_parse_name_union(param, &e.name) || in tomoyo_update_path_number_acl()
688 !tomoyo_parse_number_union(param, &e.number)) in tomoyo_update_path_number_acl()
691 error = tomoyo_update_domain(&e.head, sizeof(e), param, in tomoyo_update_path_number_acl()
729 r.param.path_number.operation = type; in tomoyo_path_number_perm()
730 r.param.path_number.filename = &buf; in tomoyo_path_number_perm()
731 r.param.path_number.number = number; in tomoyo_path_number_perm()
879 r.param.mkdev.filename = &buf; in tomoyo_mkdev_perm()
880 r.param.mkdev.operation = operation; in tomoyo_mkdev_perm()
881 r.param.mkdev.mode = mode; in tomoyo_mkdev_perm()
882 r.param.mkdev.major = MAJOR(dev); in tomoyo_mkdev_perm()
883 r.param.mkdev.minor = MINOR(dev); in tomoyo_mkdev_perm()
938 r.param.path2.operation = operation; in tomoyo_path2_perm()
939 r.param.path2.filename1 = &buf1; in tomoyo_path2_perm()
940 r.param.path2.filename2 = &buf2; in tomoyo_path2_perm()
983 static int tomoyo_update_mount_acl(struct tomoyo_acl_param *param) in tomoyo_update_mount_acl() argument
988 if (!tomoyo_parse_name_union(param, &e.dev_name) || in tomoyo_update_mount_acl()
989 !tomoyo_parse_name_union(param, &e.dir_name) || in tomoyo_update_mount_acl()
990 !tomoyo_parse_name_union(param, &e.fs_type) || in tomoyo_update_mount_acl()
991 !tomoyo_parse_number_union(param, &e.flags)) in tomoyo_update_mount_acl()
994 error = tomoyo_update_domain(&e.head, sizeof(e), param, in tomoyo_update_mount_acl()
1012 int tomoyo_write_file(struct tomoyo_acl_param *param) in tomoyo_write_file() argument
1016 const char *operation = tomoyo_read_token(param); in tomoyo_write_file()
1022 return tomoyo_update_path_acl(perm, param); in tomoyo_write_file()
1028 return tomoyo_update_path2_acl(perm, param); in tomoyo_write_file()
1034 return tomoyo_update_path_number_acl(perm, param); in tomoyo_write_file()
1040 return tomoyo_update_mkdev_acl(perm, param); in tomoyo_write_file()
1043 return tomoyo_update_mount_acl(param); in tomoyo_write_file()