Default type for containers is not container_t

We usually specify MCS Labels as comma separated pair.
Finally if we run two different containers we want them on different
MCS labels.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh 2017-01-20 15:39:26 -05:00
parent 7fda27a5b3
commit 9c61688098
2 changed files with 8 additions and 2 deletions

View file

@ -66,8 +66,8 @@
"selinux_options": {
"user": "system_u",
"role": "system_r",
"type": "svirt_lxc_net_t",
"level": "s0:c4-c5"
"type": "container_t",
"level": "s0:c4,c5"
},
"user": {
"uid": 5,

View file

@ -57,6 +57,12 @@
"host_pid": false,
"host_ipc": false
}
},
"selinux_options": {
"user": "system_u",
"role": "system_r",
"type": "container_t",
"level": "s0:c1,c2"
}
}
}