对于我的 Docker 容器,Selinux 已启用并设置为“强制”模式。我们的系统中有 2 个容器正在运行。但是对于一个容器,“MountLabel”和“ProcessLabel”都配置了,如下图:
docker inspect <container1_ID> | grep "Label"
"MountLabel": "USER_u:ROLE_r:svirt_lxc_file_t:s0:c204,c558",
"ProcessLabel": "USER_u:ROLE_r:svirt_lxc_net_t:s0:c204,c558",
对于另一个容器,缺少“ProcessLabel”配置 -
docker inspect <container2_ID> | grep "Label"
"MountLabel": "USER_u:ROLE_r:svirt_lxc_file_t:s0:c212,c227",
"ProcessLabel": "",
您能否帮我了解一下,如何为 docker 容器配置进程标签以及此类别编号(c204,c558)表示什么?