You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: man/ocitools-generate.1.md
+14-2Lines changed: 14 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,18 @@ inside of the container.
79
79
**--mount-cgroups**=[rw|ro|no]
80
80
Mount cgroups. The default is `no`.
81
81
82
+
**--mount-label**=[=*MOUNTLABEL*]]
83
+
Mount Label
84
+
Depending on your SELinux policy, you would specify a label that looks like
85
+
this:
86
+
"system_u:object_r:svirt_sandbox_file_t:s0:c1,c2"
87
+
88
+
Note you would want your ROOTFS directory to be labeled with a context that
89
+
this process type can use.
90
+
91
+
"system_u:object_r:usr_t:s0" might be a good label for a readonly container,
92
+
"system_u:system_r:svirt_sandbox_file_t:s0:c1,c2" for a read/write container.
93
+
82
94
**--network**
83
95
Use network namespace
84
96
@@ -149,7 +161,7 @@ inside of the container.
149
161
this process type can use.
150
162
151
163
"system_u:object_r:usr_t:s0" might be a good label for a readonly container,
152
-
"system_u:system_r:svirt_sandbox_file_t:s0:c1,c2" for a read/write container.
164
+
"system_u:object_r:svirt_sandbox_file_t:s0:c1,c2" for a read/write container.
153
165
154
166
**--sysctl**=SYSCTLSETTING
155
167
Add sysctl settings e.g net.ipv4.forward=1, only allowed if the syctl is
@@ -222,7 +234,7 @@ colon:
222
234
223
235
You can use SELinux to add security to the container. You must specify the process label to run the init process inside of the container using the --selinux-label.
Not in the above example we used a type of svirt_lxc_net_t and an MCS Label of s0:c1,c2. If you want to guarantee separation between containers, you need to make sure that each container gets launched with a different MCS Label pair.
0 commit comments