aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/filesystems/proc.txt2
-rw-r--r--fs/proc/array.c8
2 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt
index 74cb394e6888..12665ee7094a 100644
--- a/Documentation/filesystems/proc.txt
+++ b/Documentation/filesystems/proc.txt
@@ -181,6 +181,7 @@ read the file /proc/PID/status:
181 CapPrm: 0000000000000000 181 CapPrm: 0000000000000000
182 CapEff: 0000000000000000 182 CapEff: 0000000000000000
183 CapBnd: ffffffffffffffff 183 CapBnd: ffffffffffffffff
184 Seccomp: 0
184 voluntary_ctxt_switches: 0 185 voluntary_ctxt_switches: 0
185 nonvoluntary_ctxt_switches: 1 186 nonvoluntary_ctxt_switches: 1
186 187
@@ -237,6 +238,7 @@ Table 1-2: Contents of the status files (as of 2.6.30-rc7)
237 CapPrm bitmap of permitted capabilities 238 CapPrm bitmap of permitted capabilities
238 CapEff bitmap of effective capabilities 239 CapEff bitmap of effective capabilities
239 CapBnd bitmap of capabilities bounding set 240 CapBnd bitmap of capabilities bounding set
241 Seccomp seccomp mode, like prctl(PR_GET_SECCOMP, ...)
240 Cpus_allowed mask of CPUs on which this process may run 242 Cpus_allowed mask of CPUs on which this process may run
241 Cpus_allowed_list Same as previous, but in "list format" 243 Cpus_allowed_list Same as previous, but in "list format"
242 Mems_allowed mask of memory nodes allowed to this process 244 Mems_allowed mask of memory nodes allowed to this process
diff --git a/fs/proc/array.c b/fs/proc/array.c
index 377a37366dde..077235ffb38b 100644
--- a/fs/proc/array.c
+++ b/fs/proc/array.c
@@ -336,6 +336,13 @@ static inline void task_cap(struct seq_file *m, struct task_struct *p)
336 render_cap_t(m, "CapBnd:\t", &cap_bset); 336 render_cap_t(m, "CapBnd:\t", &cap_bset);
337} 337}
338 338
339static inline void task_seccomp(struct seq_file *m, struct task_struct *p)
340{
341#ifdef CONFIG_SECCOMP
342 seq_printf(m, "Seccomp:\t%d\n", p->seccomp.mode);
343#endif
344}
345
339static inline void task_context_switch_counts(struct seq_file *m, 346static inline void task_context_switch_counts(struct seq_file *m,
340 struct task_struct *p) 347 struct task_struct *p)
341{ 348{
@@ -369,6 +376,7 @@ int proc_pid_status(struct seq_file *m, struct pid_namespace *ns,
369 } 376 }
370 task_sig(m, task); 377 task_sig(m, task);
371 task_cap(m, task); 378 task_cap(m, task);
379 task_seccomp(m, task);
372 task_cpus_allowed(m, task); 380 task_cpus_allowed(m, task);
373 cpuset_task_status_allowed(m, task); 381 cpuset_task_status_allowed(m, task);
374 task_context_switch_counts(m, task); 382 task_context_switch_counts(m, task);