75acc7c7c3
`label.InitLabels` takes options as a string slice in the form of: user:system_u role:system_r type:container_t level:s0:c4,c5 However, `DupSecOpt` and `DisableSecOpt` were still adding a docker specifc `label=` in front of every option. That leads to `InitLabels` not being able to correctly init selinux labels in this scenario for instance: label.InitLabels(DupSecOpt([%OPTIONS%])) if `%OPTIONS` has options prefixed with `label=`, that's going to fail. Fix this by removing that docker specific `label=` prefix. Signed-off-by: Antonio Murdaca <runcom@redhat.com> |
||
---|---|---|
.. | ||
selinux.go | ||
selinux_test.go |