Skip to content

Commit

Permalink
Merge pull request #248 from giuseppe/drop-warning
Browse files Browse the repository at this point in the history
cgroup: drop warning for rootless
  • Loading branch information
giuseppe authored Feb 6, 2020
2 parents ed35fa1 + 1eb4e16 commit df5f2b2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
* FUTURE

* crun-0.12.1
- fix the order of clone syscall arguments on s390 and cris.
- if no mode is specified use 0666 for devices.
- fix running with a relative bundle directory.
- fix some regressions in the mounts path resolution.
- drop a warning when cgroup are not available for rootless.

* crun-0.12

Expand Down
2 changes: 1 addition & 1 deletion libocispec
Submodule libocispec updated 1 files
+39 −16 .gitignore
3 changes: 0 additions & 3 deletions src/libcrun/cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -1080,9 +1080,6 @@ libcrun_cgroup_enter (runtime_spec_schema_config_linux_resources *resources, int

if (rootless > 0 && (cgroup_mode != CGROUP_MODE_UNIFIED || manager != CGROUP_MANAGER_SYSTEMD))
{
if (cgroup_mode == CGROUP_MODE_UNIFIED && manager != CGROUP_MANAGER_SYSTEMD)
libcrun_warning ("cannot configure rootless cgroup using the cgroupfs manager");

/* Ignore cgroups errors and set there is no cgroup path to use. */
free (*path);
*path = NULL;
Expand Down

0 comments on commit df5f2b2

Please sign in to comment.