mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 00:58:31 +00:00
Needed for future user namespace support. Capabilities will have to be dumped from the parasite, ie from inside the namespace since there is no obvious way to 'translate' capabilities from the global namespace (unlike with uids and gids, where the id mappings can be used for translation). [ additional explanation from Andrew Vagin: "capabilities" are not translated between namespaces. They can exist only in one userns, where a process lives. If a process is created in a new userns, it gets a full set of capabilities in this userns, and loses all caps in a parent userns. So if capabilities are not shown in /proc/pid/stat, we have no way to get it except of using parasite code. ] Signed-off-by: Sophie Blee-Goldman <ableegoldman@google.com> Acked-by: Andrew Vagin <avagin@parallels.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
50 lines
1 KiB
C
50 lines
1 KiB
C
#ifndef __CR_PRCTL_H__
|
|
#define __CR_PRCTL_H__
|
|
|
|
#ifndef PR_SET_NAME
|
|
# define PR_SET_NAME 15
|
|
#endif
|
|
#ifndef PR_GET_NAME
|
|
# define PR_GET_NAME 16
|
|
#endif
|
|
#ifndef PR_CAPBSET_READ
|
|
# define PR_CAPBSET_READ 23
|
|
#endif
|
|
#ifndef PR_CAPBSET_DROP
|
|
# define PR_CAPBSET_DROP 24
|
|
#endif
|
|
#ifndef PR_GET_SECUREBITS
|
|
# define PR_GET_SECUREBITS 27
|
|
#endif
|
|
#ifndef PR_SET_SECUREBITS
|
|
# define PR_SET_SECUREBITS 28
|
|
#endif
|
|
#ifndef PR_GET_DUMPABLE
|
|
# define PR_GET_DUMPABLE 3
|
|
#endif
|
|
#ifndef PR_SET_DUMPABLE
|
|
# define PR_SET_DUMPABLE 4
|
|
#endif
|
|
|
|
#ifndef PR_SET_MM
|
|
#define PR_SET_MM 35
|
|
# define PR_SET_MM_START_CODE 1
|
|
# define PR_SET_MM_END_CODE 2
|
|
# define PR_SET_MM_START_DATA 3
|
|
# define PR_SET_MM_END_DATA 4
|
|
# define PR_SET_MM_START_STACK 5
|
|
# define PR_SET_MM_START_BRK 6
|
|
# define PR_SET_MM_BRK 7
|
|
# define PR_SET_MM_ARG_START 8
|
|
# define PR_SET_MM_ARG_END 9
|
|
# define PR_SET_MM_ENV_START 10
|
|
# define PR_SET_MM_ENV_END 11
|
|
# define PR_SET_MM_AUXV 12
|
|
# define PR_SET_MM_EXE_FILE 13
|
|
#endif
|
|
|
|
#ifndef PR_GET_TID_ADDRESS
|
|
# define PR_GET_TID_ADDRESS 40
|
|
#endif
|
|
|
|
#endif /* __CR_PRCTL_H__ */
|