Occasionally in commit 3544439fe0b210 release of pseudosuper
has been removed. Bring it back, otherwise anyone can mount
cgroups after the restore.

Signed-off-by: Cyrill Gorcunov <[email protected]>
---
 scripts/vz-rst-action.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/vz-rst-action.in b/scripts/vz-rst-action.in
index cfc2eaf..dc23170 100755
--- a/scripts/vz-rst-action.in
+++ b/scripts/vz-rst-action.in
@@ -68,6 +68,7 @@ case "$CRTOOLS_SCRIPT_ACTION" in
        ln -s /proc/$pid/ns/net $VE_NETNS_FILE
 
        if [ -n "$VEID" ]; then
+               cgset -r ve.pseudosuper="0" $VEID
                cgset -r ve.state="START $pid" $VEID || exit
        fi
        ;;
-- 
2.5.0

_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to