mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
userns: define protobuf messages for uid and gid maps
Normally, one of the first steps after creating a new user namespace is to define the mappings used for the user and group IDs of the processes that will be created in that namespace. This is done by writing mapping information to the /proc/PID/uid_map and /proc/PID/gid_map files corresponding to one of the processes in the user namespace. Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
4ed63afa00
commit
7450349446
2 changed files with 11 additions and 0 deletions
|
|
@ -62,6 +62,7 @@ proto-obj-y += siginfo.o
|
|||
proto-obj-y += rpc.o
|
||||
proto-obj-y += ext-file.o
|
||||
proto-obj-y += cgroup.o
|
||||
proto-obj-y += userns.o
|
||||
|
||||
proto := $(proto-obj-y:.o=)
|
||||
proto-c := $(proto-obj-y:.o=.pb-c.c)
|
||||
|
|
|
|||
10
protobuf/userns.proto
Normal file
10
protobuf/userns.proto
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
message uid_gid_extent {
|
||||
required uint32 first = 1;
|
||||
required uint32 lower_first = 2;
|
||||
required uint32 count = 3;
|
||||
}
|
||||
|
||||
message userns_entry {
|
||||
repeated uid_gid_extent uid_map = 1;
|
||||
repeated uid_gid_extent gid_map = 2;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue