mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
usernsd: move MAX_MSG_SIZE to namespaces.h
We'll use this size in the next patch to avoid having to do some dynamic allocation. v2: call it MAX_UNSFD_MSG_SIZE instead v3: fix all uses of MAX_MSG_SIZE :) Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
459fb8b7da
commit
72ff44d0dc
2 changed files with 4 additions and 4 deletions
|
|
@ -95,6 +95,8 @@ typedef int (*uns_call_t)(void *arg, int fd);
|
|||
*/
|
||||
#define UNS_FDOUT 0x2
|
||||
|
||||
#define MAX_UNSFD_MSG_SIZE 256
|
||||
|
||||
/*
|
||||
* When we're restoring inside user namespace, some things are
|
||||
* not allowed to be done there due to insufficient capabilities.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue