2
0
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:
Pavel Emelyanov
2012-01-27 21:39:14 +04:00
committed by Cyrill Gorcunov
parent f382d2a376
commit d846d108f6
3 changed files with 50 additions and 0 deletions

View File

@@ -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 {