|
@@ -57,6 +57,7 @@
|
|
|
#include <linux/pipe_fs_i.h>
|
|
|
#include <linux/oom.h>
|
|
|
#include <linux/kmod.h>
|
|
|
+#include <linux/capability.h>
|
|
|
|
|
|
#include <asm/uaccess.h>
|
|
|
#include <asm/processor.h>
|
|
@@ -134,6 +135,7 @@ static int minolduid;
|
|
|
static int min_percpu_pagelist_fract = 8;
|
|
|
|
|
|
static int ngroups_max = NGROUPS_MAX;
|
|
|
+static const int cap_last_cap = CAP_LAST_CAP;
|
|
|
|
|
|
#ifdef CONFIG_INOTIFY_USER
|
|
|
#include <linux/inotify.h>
|
|
@@ -740,6 +742,13 @@ static struct ctl_table kern_table[] = {
|
|
|
.mode = 0444,
|
|
|
.proc_handler = proc_dointvec,
|
|
|
},
|
|
|
+ {
|
|
|
+ .procname = "cap_last_cap",
|
|
|
+ .data = (void *)&cap_last_cap,
|
|
|
+ .maxlen = sizeof(int),
|
|
|
+ .mode = 0444,
|
|
|
+ .proc_handler = proc_dointvec,
|
|
|
+ },
|
|
|
#if defined(CONFIG_LOCKUP_DETECTOR)
|
|
|
{
|
|
|
.procname = "watchdog",
|