[Devel] [PATCH libvzctl] scripts: vz-rst-action.in -- Get back @pseudosuper release

Cyrill Gorcunov gorcunov at virtuozzo.com
Wed Jan 20 05:47:48 PST 2016


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 <gorcunov at openvz.org>
---
 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



More information about the Devel mailing list