mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-05 08:45:49 +00:00
criu check: don't run as non-root
In case criu check is run as non-root, a lot of information is printed to a user, with the only missing bit is it should run it as root. Fix it. I still don't like the fact that some other stuff is printed here, like the timestamp and the __FILE__:__LINE__, but this should be fixed separately. Signed-off-by: Kir Kolyshkin <kir@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
abd061481b
commit
b11f24fd5d
@@ -272,6 +272,7 @@ extern void shfree_last(void *ptr);
|
||||
extern int run_scripts(char *action);
|
||||
|
||||
extern int cr_system(int in, int out, int err, char *cmd, char *const argv[]);
|
||||
extern int is_root_user(void);
|
||||
|
||||
static inline bool dir_dots(struct dirent *de)
|
||||
{
|
||||
|
Reference in New Issue
Block a user