diff options
| author | Gao feng <gaofeng@cn.fujitsu.com> | 2012-12-17 19:03:22 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-17 20:15:23 -0500 |
| commit | a5ba911ec3792168530d35e16a8ec3b6fc60bcb5 (patch) | |
| tree | 1dbffcb920aabeb12dc166aa11299bbddba8a245 /kernel | |
| parent | d740269867021faf4ce38a449353d2b986c34a67 (diff) | |
pidns: remove unused is_container_init()
Since commit 1cdcbec1a337 ("CRED: Neuter sys_capset()")
is_container_init() has no callers.
Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Cc: David Howells <dhowells@redhat.com>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Cc: James Morris <jmorris@namei.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/pid.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/kernel/pid.c b/kernel/pid.c index fd996c1ed9f8..a54a1123c7cf 100644 --- a/kernel/pid.c +++ b/kernel/pid.c | |||
| @@ -81,21 +81,6 @@ struct pid_namespace init_pid_ns = { | |||
| 81 | }; | 81 | }; |
| 82 | EXPORT_SYMBOL_GPL(init_pid_ns); | 82 | EXPORT_SYMBOL_GPL(init_pid_ns); |
| 83 | 83 | ||
| 84 | int is_container_init(struct task_struct *tsk) | ||
| 85 | { | ||
| 86 | int ret = 0; | ||
| 87 | struct pid *pid; | ||
| 88 | |||
| 89 | rcu_read_lock(); | ||
| 90 | pid = task_pid(tsk); | ||
| 91 | if (pid != NULL && pid->numbers[pid->level].nr == 1) | ||
| 92 | ret = 1; | ||
| 93 | rcu_read_unlock(); | ||
| 94 | |||
| 95 | return ret; | ||
| 96 | } | ||
| 97 | EXPORT_SYMBOL(is_container_init); | ||
| 98 | |||
| 99 | /* | 84 | /* |
| 100 | * Note: disable interrupts while the pidmap_lock is held as an | 85 | * Note: disable interrupts while the pidmap_lock is held as an |
| 101 | * interrupt might come in and do read_lock(&tasklist_lock). | 86 | * interrupt might come in and do read_lock(&tasklist_lock). |
