diff options
author | Andrew G. Morgan <morgan@kernel.org> | 2008-04-27 14:46:07 -0700 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2008-04-27 14:48:58 -0700 |
commit | a0349b0e7489689d6442f30436c3c22399e94d65 (patch) | |
tree | b19d99dac5468be3b26ae972d03d96bae9739785 | |
parent | ff04a875a8da18c0e1ccd0b4f5f5fdbb4f44407c (diff) | |
download | libcap-a0349b0e7489689d6442f30436c3c22399e94d65.tar.gz |
Revised numbers for the SECUREBITS prctl()s
Andrew Morton said:
The hitherto-invisible-to-me PR_GET_TSC and PR_SET_TSC have turned up in
mainline, so I have renumbered your prctl options to
/* Get/set securebits (as per security/commoncap.c) */
#define PR_GET_SECUREBITS 27
#define PR_SET_SECUREBITS 28
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
-rw-r--r-- | libcap/libcap.h | 4 | ||||
-rw-r--r-- | progs/capsh.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libcap/libcap.h b/libcap/libcap.h index bd22397..d250aac 100644 --- a/libcap/libcap.h +++ b/libcap/libcap.h @@ -166,7 +166,7 @@ extern int capsetp(pid_t pid, cap_t cap_d); #define PR_SET_KEEPCAPS 8 #define PR_CAPBSET_READ 23 #define PR_CAPBSET_DROP 24 -#define PR_GET_SECUREBITS 25 -#define PR_SET_SECUREBITS 26 +#define PR_GET_SECUREBITS 27 +#define PR_SET_SECUREBITS 28 #endif /* LIBCAP_H */ diff --git a/progs/capsh.c b/progs/capsh.c index 20ec453..6786995 100644 --- a/progs/capsh.c +++ b/progs/capsh.c @@ -23,8 +23,8 @@ #define PR_SET_KEEPCAPS 8 #define PR_CAPBSET_READ 23 #define PR_CAPBSET_DROP 24 -#define PR_GET_SECUREBITS 25 -#define PR_SET_SECUREBITS 26 +#define PR_GET_SECUREBITS 27 +#define PR_SET_SECUREBITS 28 static const cap_value_t raise_setpcap[1] = { CAP_SETPCAP }; static const cap_value_t raise_chroot[1] = { CAP_SYS_CHROOT }; |