Browse code

Rename daemon/utils_*.go to selinux

Signed-off-by: Alexander Morozov <lk4d4@docker.com>

Alexander Morozov authored on 2015/11/13 08:48:41
Showing 4 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,17 @@
0
+// +build linux
1
+
2
+package daemon
3
+
4
+import "github.com/opencontainers/runc/libcontainer/selinux"
5
+
6
+func selinuxSetDisabled() {
7
+	selinux.SetDisabled()
8
+}
9
+
10
+func selinuxFreeLxcContexts(label string) {
11
+	selinux.FreeLxcContexts(label)
12
+}
13
+
14
+func selinuxEnabled() bool {
15
+	return selinux.SelinuxEnabled()
16
+}
0 17
new file mode 100644
... ...
@@ -0,0 +1,13 @@
0
+// +build !linux
1
+
2
+package daemon
3
+
4
+func selinuxSetDisabled() {
5
+}
6
+
7
+func selinuxFreeLxcContexts(label string) {
8
+}
9
+
10
+func selinuxEnabled() bool {
11
+	return false
12
+}
0 13
deleted file mode 100644
... ...
@@ -1,17 +0,0 @@
1
-// +build linux
2
-
3
-package daemon
4
-
5
-import "github.com/opencontainers/runc/libcontainer/selinux"
6
-
7
-func selinuxSetDisabled() {
8
-	selinux.SetDisabled()
9
-}
10
-
11
-func selinuxFreeLxcContexts(label string) {
12
-	selinux.FreeLxcContexts(label)
13
-}
14
-
15
-func selinuxEnabled() bool {
16
-	return selinux.SelinuxEnabled()
17
-}
18 1
deleted file mode 100644
... ...
@@ -1,13 +0,0 @@
1
-// +build !linux
2
-
3
-package daemon
4
-
5
-func selinuxSetDisabled() {
6
-}
7
-
8
-func selinuxFreeLxcContexts(label string) {
9
-}
10
-
11
-func selinuxEnabled() bool {
12
-	return false
13
-}