summaryrefslogtreecommitdiff
path: root/pkg/selinux/selinux.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-04-23 15:55:35 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2020-04-23 15:57:34 -0400
commit995cd97c100f65e477585e705c71eb48a9ab3890 (patch)
tree10016f7fc3a773d0b8c2d11d96679c7cc00809ad /pkg/selinux/selinux.go
parent802763c6042e1c9a812f4300c3c717630564c8bc (diff)
downloadpodman-995cd97c100f65e477585e705c71eb48a9ab3890.tar.gz
podman-995cd97c100f65e477585e705c71eb48a9ab3890.tar.bz2
podman-995cd97c100f65e477585e705c71eb48a9ab3890.zip
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>
Diffstat (limited to 'pkg/selinux/selinux.go')
-rw-r--r--pkg/selinux/selinux.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/selinux/selinux.go b/pkg/selinux/selinux.go
index 975519cce..6b6d065f7 100644
--- a/pkg/selinux/selinux.go
+++ b/pkg/selinux/selinux.go
@@ -4,8 +4,8 @@ import (
"github.com/opencontainers/selinux/go-selinux"
)
-// SELinuxKVMLabel returns labels for running kvm isolated containers
-func SELinuxKVMLabel(cLabel string) (string, error) {
+// KVMLabel returns labels for running kvm isolated containers
+func KVMLabel(cLabel string) (string, error) {
if cLabel == "" {
// selinux is disabled
return "", nil
@@ -15,8 +15,8 @@ func SELinuxKVMLabel(cLabel string) (string, error) {
return swapSELinuxLabel(cLabel, processLabel)
}
-// SELinuxInitLabel returns labels for running systemd based containers
-func SELinuxInitLabel(cLabel string) (string, error) {
+// InitLabel returns labels for running systemd based containers
+func InitLabel(cLabel string) (string, error) {
if cLabel == "" {
// selinux is disabled
return "", nil