Lines Matching refs:path
148 static bool tomoyo_get_realpath(struct tomoyo_path_info *buf, struct path *path) in tomoyo_get_realpath() argument
150 buf->name = tomoyo_realpath_from_path(path); in tomoyo_get_realpath()
168 [r->param.path.operation], in tomoyo_audit_path_log()
169 r->param.path.filename->name); in tomoyo_audit_path_log()
255 if (acl->perm & (1 << r->param.path.operation)) { in tomoyo_check_path_acl()
256 r->param.path.matched_path = in tomoyo_check_path_acl()
257 tomoyo_compare_name_union(r->param.path.filename, in tomoyo_check_path_acl()
259 return r->param.path.matched_path != NULL; in tomoyo_check_path_acl()
568 r->param.path.filename = filename; in tomoyo_path_permission()
569 r->param.path.operation = operation; in tomoyo_path_permission()
598 r->param.path.filename = filename; in tomoyo_execute_permission()
599 r->param.path.operation = TOMOYO_TYPE_EXECUTE; in tomoyo_execute_permission()
690 int tomoyo_path_number_perm(const u8 type, struct path *path, in tomoyo_path_number_perm() argument
695 .path1 = *path, in tomoyo_path_number_perm()
702 == TOMOYO_CONFIG_DISABLED || !path->dentry) in tomoyo_path_number_perm()
705 if (!tomoyo_get_realpath(&buf, path)) in tomoyo_path_number_perm()
736 struct path *path, const int flag) in tomoyo_check_open_permission() argument
743 .path1 = *path, in tomoyo_check_open_permission()
753 if (!tomoyo_get_realpath(&buf, path)) { in tomoyo_check_open_permission()
785 int tomoyo_path_perm(const u8 operation, struct path *path, const char *target) in tomoyo_path_perm() argument
789 .path1 = *path, in tomoyo_path_perm()
804 if (!tomoyo_get_realpath(&buf, path)) in tomoyo_path_perm()
841 int tomoyo_mkdev_perm(const u8 operation, struct path *path, in tomoyo_mkdev_perm() argument
846 .path1 = *path, in tomoyo_mkdev_perm()
857 if (tomoyo_get_realpath(&buf, path)) { in tomoyo_mkdev_perm()
885 int tomoyo_path2_perm(const u8 operation, struct path *path1, in tomoyo_path2_perm()
886 struct path *path2) in tomoyo_path2_perm()