Lines Matching refs:path
149 static bool tomoyo_get_realpath(struct tomoyo_path_info *buf, const struct path *path) in tomoyo_get_realpath() argument
151 buf->name = tomoyo_realpath_from_path(path); in tomoyo_get_realpath()
169 [r->param.path.operation], in tomoyo_audit_path_log()
170 r->param.path.filename->name); in tomoyo_audit_path_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()
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()
708 int tomoyo_path_number_perm(const u8 type, const struct path *path, in tomoyo_path_number_perm() argument
713 .path1 = { .mnt = path->mnt, .dentry = path->dentry }, in tomoyo_path_number_perm()
720 == TOMOYO_CONFIG_DISABLED || !path->dentry) in tomoyo_path_number_perm()
723 if (!tomoyo_get_realpath(&buf, path)) in tomoyo_path_number_perm()
754 const struct path *path, const int flag) in tomoyo_check_open_permission() argument
761 .path1 = { .mnt = path->mnt, .dentry = path->dentry }, in tomoyo_check_open_permission()
771 if (!tomoyo_get_realpath(&buf, path)) { in tomoyo_check_open_permission()
803 int tomoyo_path_perm(const u8 operation, const struct path *path, const char *target) in tomoyo_path_perm() argument
807 .path1 = { .mnt = path->mnt, .dentry = path->dentry }, in tomoyo_path_perm()
822 if (!tomoyo_get_realpath(&buf, path)) in tomoyo_path_perm()
859 int tomoyo_mkdev_perm(const u8 operation, const struct path *path, in tomoyo_mkdev_perm() argument
864 .path1 = { .mnt = path->mnt, .dentry = path->dentry }, in tomoyo_mkdev_perm()
875 if (tomoyo_get_realpath(&buf, path)) { in tomoyo_mkdev_perm()
903 int tomoyo_path2_perm(const u8 operation, const struct path *path1, in tomoyo_path2_perm()
904 const struct path *path2) in tomoyo_path2_perm()