mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
syscalls: Prepare syscalls and bits for (mostly) setting creds
These are setXXXid, capset and various bits for prctl and caps machinery. The thing is that the caps API is not yet fully in glibc so we have to declare some bits even for core code, not just for restorer/parasite. Signed-off-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
committed by
Cyrill Gorcunov
parent
f382d2a376
commit
d846d108f6
@@ -24,6 +24,12 @@
|
||||
#define PR_SET_NAME 15
|
||||
#define PR_GET_NAME 16
|
||||
|
||||
#define PR_CAPBSET_DROP 24
|
||||
#define PR_GET_SECUREBITS 27
|
||||
#define PR_SET_SECUREBITS 28
|
||||
|
||||
#define SECURE_NO_SETUID_FIXUP 2
|
||||
|
||||
#define PR_SET_MM 35
|
||||
# define PR_SET_MM_START_CODE 1
|
||||
# define PR_SET_MM_END_CODE 2
|
||||
@@ -72,6 +78,9 @@ typedef signed char s8;
|
||||
|
||||
#define MAJOR(dev) ((dev)>>8)
|
||||
|
||||
#define _LINUX_CAPABILITY_VERSION_3 0x20080522
|
||||
#define _LINUX_CAPABILITY_U32S_3 2
|
||||
|
||||
#ifdef CONFIG_X86_64
|
||||
|
||||
typedef struct {
|
||||
|
Reference in New Issue
Block a user