Lines Matching refs:error
393 int error; in tomoyo_update_path_acl() local
396 error = -EINVAL; in tomoyo_update_path_acl()
398 error = tomoyo_update_domain(&e.head, sizeof(e), param, in tomoyo_update_path_acl()
402 return error; in tomoyo_update_path_acl()
469 int error; in tomoyo_update_mkdev_acl() local
475 error = -EINVAL; in tomoyo_update_mkdev_acl()
477 error = tomoyo_update_domain(&e.head, sizeof(e), param, in tomoyo_update_mkdev_acl()
484 return error; in tomoyo_update_mkdev_acl()
548 int error; in tomoyo_update_path2_acl() local
552 error = -EINVAL; in tomoyo_update_path2_acl()
554 error = tomoyo_update_domain(&e.head, sizeof(e), param, in tomoyo_update_path2_acl()
559 return error; in tomoyo_update_path2_acl()
576 int error; in tomoyo_path_permission() local
587 error = tomoyo_audit_path_log(r); in tomoyo_path_permission()
588 } while (error == TOMOYO_RETRY_REQUEST); in tomoyo_path_permission()
589 return error; in tomoyo_path_permission()
685 int error; in tomoyo_update_path_number_acl() local
689 error = -EINVAL; in tomoyo_update_path_number_acl()
691 error = tomoyo_update_domain(&e.head, sizeof(e), param, in tomoyo_update_path_number_acl()
696 return error; in tomoyo_update_path_number_acl()
715 int error = -ENOMEM; in tomoyo_path_number_perm() local
734 error = tomoyo_audit_path_number_log(&r); in tomoyo_path_number_perm()
735 } while (error == TOMOYO_RETRY_REQUEST); in tomoyo_path_number_perm()
740 error = 0; in tomoyo_path_number_perm()
741 return error; in tomoyo_path_number_perm()
757 int error = 0; in tomoyo_check_open_permission() local
772 error = -ENOMEM; in tomoyo_check_open_permission()
777 error = tomoyo_path_permission(&r, TOMOYO_TYPE_READ, in tomoyo_check_open_permission()
779 if (!error && (acc_mode & MAY_WRITE)) in tomoyo_check_open_permission()
780 error = tomoyo_path_permission(&r, (flag & O_APPEND) ? in tomoyo_check_open_permission()
789 error = 0; in tomoyo_check_open_permission()
790 return error; in tomoyo_check_open_permission()
809 int error; in tomoyo_path_perm() local
819 error = -ENOMEM; in tomoyo_path_perm()
838 error = tomoyo_path_permission(&r, operation, &buf); in tomoyo_path_perm()
845 error = 0; in tomoyo_path_perm()
846 return error; in tomoyo_path_perm()
866 int error = -ENOMEM; in tomoyo_mkdev_perm() local
874 error = -ENOMEM; in tomoyo_mkdev_perm()
885 error = tomoyo_audit_mkdev_log(&r); in tomoyo_mkdev_perm()
890 error = 0; in tomoyo_mkdev_perm()
891 return error; in tomoyo_mkdev_perm()
906 int error = -ENOMEM; in tomoyo_path2_perm() local
943 error = tomoyo_audit_path2_log(&r); in tomoyo_path2_perm()
944 } while (error == TOMOYO_RETRY_REQUEST); in tomoyo_path2_perm()
950 error = 0; in tomoyo_path2_perm()
951 return error; in tomoyo_path2_perm()
986 int error; in tomoyo_update_mount_acl() local
992 error = -EINVAL; in tomoyo_update_mount_acl()
994 error = tomoyo_update_domain(&e.head, sizeof(e), param, in tomoyo_update_mount_acl()
1000 return error; in tomoyo_update_mount_acl()