patch-2.1.100 linux/fs/proc/array.c
Next file: linux/fs/proc/inode.c
Previous file: linux/fs/pipe.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Wed May 6 11:01:45 1998
- Orig file:
v2.1.99/linux/fs/proc/array.c
- Orig date:
Tue Mar 17 22:18:15 1998
diff -u --recursive --new-file v2.1.99/linux/fs/proc/array.c linux/fs/proc/array.c
@@ -764,6 +764,17 @@
return buffer;
}
+extern inline char *task_cap(struct task_struct *p, char *buffer)
+{
+ return buffer + sprintf(buffer, "CapInh:\t%016x\n"
+ "CapPrm:\t%016x\n"
+ "CapEff:\t%016x\n",
+ p->cap_inheritable.cap,
+ p->cap_permitted.cap,
+ p->cap_effective.cap);
+}
+
+
static int get_status(int pid, char * buffer)
{
char * orig = buffer;
@@ -778,6 +789,7 @@
buffer = task_state(tsk, buffer);
buffer = task_mem(tsk, buffer);
buffer = task_sig(tsk, buffer);
+ buffer = task_cap(tsk, buffer);
return buffer - orig;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov