projects
/
platform
/
upstream
/
nsjail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49faea7
)
Make __user_cap_data_struct const
author
Jagger
<robert@swiecki.net>
Sun, 18 Oct 2015 18:39:06 +0000
(20:39 +0200)
committer
Jagger
<robert@swiecki.net>
Sun, 18 Oct 2015 18:39:06 +0000
(20:39 +0200)
contain.c
patch
|
blob
|
history
diff --git
a/contain.c
b/contain.c
index c70d0a3f1acb0c24f5947b1548c368fec968b074..8744530847be8ea84f0869c4a091cc7c17c6c65c 100644
(file)
--- a/
contain.c
+++ b/
contain.c
@@
-144,7
+144,7
@@
bool containDropPrivs(struct nsjconf_t * nsjconf)
.version = _LINUX_CAPABILITY_VERSION_3,
.pid = 0,
};
-
struct __user_cap_data_struc
t cap_data[_LINUX_CAPABILITY_U32S_3] = {
+
const struct __user_cap_data_struct cons
t cap_data[_LINUX_CAPABILITY_U32S_3] = {
[0 ... (_LINUX_CAPABILITY_U32S_3 - 1)].inheritable = 0U,
[0 ... (_LINUX_CAPABILITY_U32S_3 - 1)].effective = 0U,
[0 ... (_LINUX_CAPABILITY_U32S_3 - 1)].permitted = 0U,