|
@@ -81,21 +81,6 @@ struct pid_namespace init_pid_ns = {
|
|
};
|
|
};
|
|
EXPORT_SYMBOL_GPL(init_pid_ns);
|
|
EXPORT_SYMBOL_GPL(init_pid_ns);
|
|
|
|
|
|
-int is_container_init(struct task_struct *tsk)
|
|
|
|
-{
|
|
|
|
- int ret = 0;
|
|
|
|
- struct pid *pid;
|
|
|
|
-
|
|
|
|
- rcu_read_lock();
|
|
|
|
- pid = task_pid(tsk);
|
|
|
|
- if (pid != NULL && pid->numbers[pid->level].nr == 1)
|
|
|
|
- ret = 1;
|
|
|
|
- rcu_read_unlock();
|
|
|
|
-
|
|
|
|
- return ret;
|
|
|
|
-}
|
|
|
|
-EXPORT_SYMBOL(is_container_init);
|
|
|
|
-
|
|
|
|
/*
|
|
/*
|
|
* Note: disable interrupts while the pidmap_lock is held as an
|
|
* Note: disable interrupts while the pidmap_lock is held as an
|
|
* interrupt might come in and do read_lock(&tasklist_lock).
|
|
* interrupt might come in and do read_lock(&tasklist_lock).
|