diff options
Diffstat (limited to 'fs/proc/array.c')
-rw-r--r-- | fs/proc/array.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c index ce065cf3104f..f60f0121e331 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c | |||
@@ -308,7 +308,8 @@ static void render_cap_t(struct seq_file *m, const char *header, | |||
308 | static inline void task_cap(struct seq_file *m, struct task_struct *p) | 308 | static inline void task_cap(struct seq_file *m, struct task_struct *p) |
309 | { | 309 | { |
310 | const struct cred *cred; | 310 | const struct cred *cred; |
311 | kernel_cap_t cap_inheritable, cap_permitted, cap_effective, cap_bset; | 311 | kernel_cap_t cap_inheritable, cap_permitted, cap_effective, |
312 | cap_bset, cap_ambient; | ||
312 | 313 | ||
313 | rcu_read_lock(); | 314 | rcu_read_lock(); |
314 | cred = __task_cred(p); | 315 | cred = __task_cred(p); |
@@ -316,12 +317,14 @@ static inline void task_cap(struct seq_file *m, struct task_struct *p) | |||
316 | cap_permitted = cred->cap_permitted; | 317 | cap_permitted = cred->cap_permitted; |
317 | cap_effective = cred->cap_effective; | 318 | cap_effective = cred->cap_effective; |
318 | cap_bset = cred->cap_bset; | 319 | cap_bset = cred->cap_bset; |
320 | cap_ambient = cred->cap_ambient; | ||
319 | rcu_read_unlock(); | 321 | rcu_read_unlock(); |
320 | 322 | ||
321 | render_cap_t(m, "CapInh:\t", &cap_inheritable); | 323 | render_cap_t(m, "CapInh:\t", &cap_inheritable); |
322 | render_cap_t(m, "CapPrm:\t", &cap_permitted); | 324 | render_cap_t(m, "CapPrm:\t", &cap_permitted); |
323 | render_cap_t(m, "CapEff:\t", &cap_effective); | 325 | render_cap_t(m, "CapEff:\t", &cap_effective); |
324 | render_cap_t(m, "CapBnd:\t", &cap_bset); | 326 | render_cap_t(m, "CapBnd:\t", &cap_bset); |
327 | render_cap_t(m, "CapAmb:\t", &cap_ambient); | ||
325 | } | 328 | } |
326 | 329 | ||
327 | static inline void task_seccomp(struct seq_file *m, struct task_struct *p) | 330 | static inline void task_seccomp(struct seq_file *m, struct task_struct *p) |