Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
.gitignore | D | 12-May-2024 | 135 | 16 | 15 | |
Makefile | D | 12-May-2024 | 321 | 12 | 5 | |
README | D | 12-May-2024 | 2.6 KiB | 38 | 28 | |
pidns01.c | D | 12-May-2024 | 3.1 KiB | 119 | 55 | |
pidns02.c | D | 12-May-2024 | 2.8 KiB | 115 | 54 | |
pidns03.c | D | 12-May-2024 | 2.8 KiB | 125 | 74 | |
pidns04.c | D | 12-May-2024 | 3.9 KiB | 151 | 75 | |
pidns05.c | D | 12-May-2024 | 6.4 KiB | 257 | 155 | |
pidns06.c | D | 12-May-2024 | 4.1 KiB | 134 | 71 | |
pidns10.c | D | 12-May-2024 | 3 KiB | 113 | 58 | |
pidns12.c | D | 12-May-2024 | 4.3 KiB | 170 | 85 | |
pidns13.c | D | 12-May-2024 | 2.8 KiB | 127 | 80 | |
pidns16.c | D | 12-May-2024 | 4.3 KiB | 158 | 89 | |
pidns17.c | D | 12-May-2024 | 4.1 KiB | 163 | 90 | |
pidns20.c | D | 12-May-2024 | 5.3 KiB | 208 | 116 | |
pidns30.c | D | 12-May-2024 | 7.2 KiB | 297 | 181 | |
pidns31.c | D | 12-May-2024 | 8.2 KiB | 331 | 205 | |
pidns32.c | D | 12-May-2024 | 2.1 KiB | 102 | 69 | |
pidns_helper.h | D | 12-May-2024 | 1 KiB | 38 | 19 |
README
1################################################################################ 2## ## 3## Copyright (c) International Business Machines Corp., 2007 ## 4## ## 5## This program is free software; you can redistribute it and#or modify ## 6## it under the terms of the GNU General Public License as published by ## 7## the Free Software Foundation; either version 2 of the License, or ## 8## (at your option) any later version. ## 9## ## 10## This program is distributed in the hope that it will be useful, but ## 11## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ## 12## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ## 13## for more details. ## 14## ## 15## You should have received a copy of the GNU General Public License ## 16## along with this program; if not, write to the Free Software ## 17## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## 18## ## 19################################################################################ 20 21PIDNS testcases Overview: 22 23 A pid namespace is a view of particular set of tasks on the system. For processes, a process may have pid 1234 in one namespace, but have pid 1 in another.This allows processes to use process ids which are in use in other pid namespaces, without having to worry about what pids exist in other namespaces. 24 25"A process has a pid in every ancestor pid namespaces up to the initial pid namespace. If process B is in a child namespace relative to process A, then process A will see process B by the pid which is valid in process A's pid namespace." 26 27"Another way of specifying process visibility, then is that process A will see all tasks which have a valid pid in process A's pid namespace." 28 29 30 31Testcases: 32 331> Check the process id of container after cloning as 1. 342> After creation of container the PID Namespace of the container should have the parent group id as 1 and also session id as 1. 353> Create container: pass the parent namespacei id: mount /proc directory: check parent namespace id inside container: if it is exiting then PASS otherwise FAIL. 36 37Check for PIDNS enablement: from 2.6.24 kernel version. 38