diff --git a/_posts/2021-07-14-lxc-drop-capsysadmin.md b/_posts/2021-07-14-lxc-drop-capsysadmin.md index f0d0fed..6726cd4 100644 --- a/_posts/2021-07-14-lxc-drop-capsysadmin.md +++ b/_posts/2021-07-14-lxc-drop-capsysadmin.md @@ -100,7 +100,7 @@ Indeed, the following directive will do nothing: lxc.mount.entry = cgroup:mixed ``` -Here is why in the code: +Here is a fragment of the function that handle the previous directive, we directly exit the function before running anything when cgroup namespaces are supported: ```c /* @@ -111,8 +111,8 @@ static bool cgfsng_mount(void *hdata, const char *root, int type) { /* some initializations */ if (cgns_supported()) - return true; - /* rest of the function */ + return true; /* we exit the function here */ + /* rest of the function that will never be executed */ } ```