capabilities: add bounding set to /proc/self/status

There is currently no way to query the bounding set of another task. As there
appears to be no security reason not to, and as Michael Kerrisk points out the
following valid reasons to do so exist:

* consistency (I can see all of the other per-thread/process sets in
/proc/.../status)

* debugging -- I could imagine that it would make the job of debugging an
application that uses capabilities a little simpler.

this patch adds the bounding set to /proc/self/status right after the
effective set.

Signed-off-by: Serge E. Hallyn <serue@us.ibm.com>
Acked-by: Michael Kerrisk <mtk.manpages@gmail.com>
Acked-by: Andrew G. Morgan <morgan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Serge E. Hallyn and committed by
Linus Torvalds
289f8e27 c8894419

+1
+1
fs/proc/array.c
··· 298 298 render_cap_t(m, "CapInh:\t", &p->cap_inheritable); 299 299 render_cap_t(m, "CapPrm:\t", &p->cap_permitted); 300 300 render_cap_t(m, "CapEff:\t", &p->cap_effective); 301 + render_cap_t(m, "CapBnd:\t", &p->cap_bset); 301 302 } 302 303 303 304 static inline void task_context_switch_counts(struct seq_file *m,