aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/opencontainers/selinux/go-selinux/selinux_stub.go
blob: e4b65c9e2c82ccd3d8b5c2c730a7af63f2f09130 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
// +build !selinux !linux

package selinux

func setDisabled() {
}

func getEnabled() bool {
	return false
}

func classIndex(class string) (int, error) {
	return -1, nil
}

func setFileLabel(fpath string, label string) error {
	return nil
}

func fileLabel(fpath string) (string, error) {
	return "", nil
}

func setFSCreateLabel(label string) error {
	return nil
}

func fsCreateLabel() (string, error) {
	return "", nil
}

func currentLabel() (string, error) {
	return "", nil
}

func pidLabel(pid int) (string, error) {
	return "", nil
}

func execLabel() (string, error) {
	return "", nil
}

func canonicalizeContext(val string) (string, error) {
	return "", nil
}

func computeCreateContext(source string, target string, class string) (string, error) {
	return "", nil
}

func calculateGlbLub(sourceRange, targetRange string) (string, error) {
	return "", nil
}

func setExecLabel(label string) error {
	return nil
}

func setTaskLabel(label string) error {
	return nil
}

func setSocketLabel(label string) error {
	return nil
}

func socketLabel() (string, error) {
	return "", nil
}

func peerLabel(fd uintptr) (string, error) {
	return "", nil
}

func setKeyLabel(label string) error {
	return nil
}

func keyLabel() (string, error) {
	return "", nil
}

func (c Context) get() string {
	return ""
}

func newContext(label string) (Context, error) {
	c := make(Context)
	return c, nil
}

func clearLabels() {
}

func reserveLabel(label string) {
}

func enforceMode() int {
	return Disabled
}

func setEnforceMode(mode int) error {
	return nil
}

func defaultEnforceMode() int {
	return Disabled
}

func releaseLabel(label string) {
}

func roFileLabel() string {
	return ""
}

func kvmContainerLabels() (string, string) {
	return "", ""
}

func initContainerLabels() (string, string) {
	return "", ""
}

func containerLabels() (processLabel string, fileLabel string) {
	return "", ""
}

func securityCheckContext(val string) error {
	return nil
}

func copyLevel(src, dest string) (string, error) {
	return "", nil
}

func chcon(fpath string, label string, recurse bool) error {
	return nil
}

func dupSecOpt(src string) ([]string, error) {
	return nil, nil
}

func disableSecOpt() []string {
	return []string{"disable"}
}

func getDefaultContextWithLevel(user, level, scon string) (string, error) {
	return "", nil
}