2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

v2 security: set suid flag on crtools and check real uid on dump/restore

v2: remove redundant functions and variables.

Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Ruslan Kuprieiev
2013-10-02 17:11:17 +04:00
committed by Pavel Emelyanov
parent 398705d4cb
commit 547d9bf959
4 changed files with 28 additions and 6 deletions

View File

@@ -72,6 +72,7 @@ int main(int argc, char *argv[])
BUILD_BUG_ON(PAGE_SIZE != PAGE_IMAGE_SIZE);
cr_pb_init();
restrict_uid(getuid());
if (argc < 2)
goto usage;