Signed-off-by: Alexander Morozov <lk4d4@docker.com>
| 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 | 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 |
-} |