Fix SELinux functions names to not be repetitive

Since functions are now in an selinux subpackage, they should not start with
SELinux

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2020-04-23 15:55:35 -04:00
parent 802763c604
commit 995cd97c10
2 changed files with 6 additions and 6 deletions

View File

@ -435,12 +435,12 @@ func (c *Container) setupStorage(ctx context.Context) error {
processLabel := containerInfo.ProcessLabel
switch {
case c.ociRuntime.SupportsKVM():
processLabel, err = selinux.SELinuxKVMLabel(processLabel)
processLabel, err = selinux.KVMLabel(processLabel)
if err != nil {
return err
}
case c.config.Systemd:
processLabel, err = selinux.SELinuxInitLabel(processLabel)
processLabel, err = selinux.InitLabel(processLabel)
if err != nil {
return err
}