mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
rkt: Fix incomplete selinux context string when the option is partial.
Add Getfilecon() into the selinux interface.
This commit is contained in:
@@ -18,9 +18,14 @@ limitations under the License.
|
||||
|
||||
package selinux
|
||||
|
||||
type realChconRunner struct{}
|
||||
type realSelinuxContextRunner struct{}
|
||||
|
||||
func (_ *realChconRunner) SetContext(dir, context string) error {
|
||||
func (_ *realSelinuxContextRunner) SetContext(dir, context string) error {
|
||||
// NOP
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *realSelinuxContextRunner) Getfilecon(path string) (string, error) {
|
||||
// NOP
|
||||
return "", nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user