Skip to content

Commit

Permalink
Merge pull request #1372 from karuboniru/patch-1
Browse files Browse the repository at this point in the history
fix checking of relative idmapped mount
  • Loading branch information
rhatdan authored Dec 11, 2023
2 parents 90b21dd + 487ba3a commit d9b2586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcrun/linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ parse_idmapped_mount_option (runtime_spec_schema_config_schema *def, bool is_uid
mappings = is_uids ? def->linux->uid_mappings : def->linux->gid_mappings;

for (i = 0; i < mappings_len; i++)
if (value[0] >= mappings[i]->container_id && value[0] < mappings[i]->container_id + mappings[i]->size)
if (value[1] >= mappings[i]->container_id && value[1] < mappings[i]->container_id + mappings[i]->size)
break;

if (i == mappings_len)
Expand Down

1 comment on commit d9b2586

@packit-as-a-service
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

podman-next COPR build failed. @containers/packit-build please check.

Please sign in to comment.