Skip to content

Commit

Permalink
linux: use run.oci instead of io.crun
Browse files Browse the repository at this point in the history
oci.run is reserved for crun.

Signed-off-by: Giuseppe Scrivano <[email protected]>
  • Loading branch information
giuseppe committed Dec 9, 2019
1 parent 56f5e31 commit 6df9308
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crun.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,9 @@ Path to the file containing the resources to update.

# Extensions to OCI

## io.crun.keep_original_groups=1
## run.oci.keep_original_groups=1

If the annotation `io.crun.keep_original_groups` is present, then crun
If the annotation `run.oci.keep_original_groups` is present, then crun
will skip the `setgroups` syscall that is used to either set the
additional groups specified in the OCI configuration, or to reset the
list of additional groups if none is specified.
Expand Down
2 changes: 1 addition & 1 deletion src/libcrun/linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -1408,7 +1408,7 @@ can_setgroups (libcrun_container_t *container, libcrun_error_t *err)
const char *annotation;

/* Skip setgroups if the annotation is set to anything different than "0". */
annotation = find_annotation (container, "io.crun.keep_original_groups");
annotation = find_annotation (container, "run.oci.keep_original_groups");
if (annotation)
return strcmp (annotation, "0") == 0 ? 1 : 0;
}
Expand Down

0 comments on commit 6df9308

Please sign in to comment.