Lines Matching refs:error
385 int error; in tomoyo_update_path_acl() local
387 error = -EINVAL; in tomoyo_update_path_acl()
389 error = tomoyo_update_domain(&e.head, sizeof(e), param, in tomoyo_update_path_acl()
393 return error; in tomoyo_update_path_acl()
458 int error; in tomoyo_update_mkdev_acl() local
463 error = -EINVAL; in tomoyo_update_mkdev_acl()
465 error = tomoyo_update_domain(&e.head, sizeof(e), param, in tomoyo_update_mkdev_acl()
472 return error; in tomoyo_update_mkdev_acl()
534 int error; in tomoyo_update_path2_acl() local
537 error = -EINVAL; in tomoyo_update_path2_acl()
539 error = tomoyo_update_domain(&e.head, sizeof(e), param, in tomoyo_update_path2_acl()
544 return error; in tomoyo_update_path2_acl()
561 int error; in tomoyo_path_permission() local
572 error = tomoyo_audit_path_log(r); in tomoyo_path_permission()
573 } while (error == TOMOYO_RETRY_REQUEST); in tomoyo_path_permission()
574 return error; in tomoyo_path_permission()
668 int error; in tomoyo_update_path_number_acl() local
671 error = -EINVAL; in tomoyo_update_path_number_acl()
673 error = tomoyo_update_domain(&e.head, sizeof(e), param, in tomoyo_update_path_number_acl()
678 return error; in tomoyo_update_path_number_acl()
697 int error = -ENOMEM; in tomoyo_path_number_perm() local
716 error = tomoyo_audit_path_number_log(&r); in tomoyo_path_number_perm()
717 } while (error == TOMOYO_RETRY_REQUEST); in tomoyo_path_number_perm()
722 error = 0; in tomoyo_path_number_perm()
723 return error; in tomoyo_path_number_perm()
739 int error = 0; in tomoyo_check_open_permission() local
754 error = -ENOMEM; in tomoyo_check_open_permission()
759 error = tomoyo_path_permission(&r, TOMOYO_TYPE_READ, in tomoyo_check_open_permission()
761 if (!error && (acc_mode & MAY_WRITE)) in tomoyo_check_open_permission()
762 error = tomoyo_path_permission(&r, (flag & O_APPEND) ? in tomoyo_check_open_permission()
771 error = 0; in tomoyo_check_open_permission()
772 return error; in tomoyo_check_open_permission()
791 int error; in tomoyo_path_perm() local
801 error = -ENOMEM; in tomoyo_path_perm()
820 error = tomoyo_path_permission(&r, operation, &buf); in tomoyo_path_perm()
827 error = 0; in tomoyo_path_perm()
828 return error; in tomoyo_path_perm()
848 int error = -ENOMEM; in tomoyo_mkdev_perm() local
856 error = -ENOMEM; in tomoyo_mkdev_perm()
867 error = tomoyo_audit_mkdev_log(&r); in tomoyo_mkdev_perm()
872 error = 0; in tomoyo_mkdev_perm()
873 return error; in tomoyo_mkdev_perm()
888 int error = -ENOMEM; in tomoyo_path2_perm() local
925 error = tomoyo_audit_path2_log(&r); in tomoyo_path2_perm()
926 } while (error == TOMOYO_RETRY_REQUEST); in tomoyo_path2_perm()
932 error = 0; in tomoyo_path2_perm()
933 return error; in tomoyo_path2_perm()
967 int error; in tomoyo_update_mount_acl() local
972 error = -EINVAL; in tomoyo_update_mount_acl()
974 error = tomoyo_update_domain(&e.head, sizeof(e), param, in tomoyo_update_mount_acl()
980 return error; in tomoyo_update_mount_acl()