2023-12-18 20:31:00 +00:00
|
|
|
//go:build !linux
|
2021-11-18 13:24:17 +00:00
|
|
|
// +build !linux
|
|
|
|
|
|
|
|
package selinux
|
|
|
|
|
2023-12-18 20:31:00 +00:00
|
|
|
func attrPath(string) string {
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func readCon(fpath string) (string, error) {
|
|
|
|
return "", nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func writeCon(string, string) error {
|
|
|
|
return nil
|
2021-11-18 13:24:17 +00:00
|
|
|
}
|
|
|
|
|
2023-12-18 20:31:00 +00:00
|
|
|
func setDisabled() {}
|
|
|
|
|
2021-11-18 13:24:17 +00:00
|
|
|
func getEnabled() bool {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
func classIndex(class string) (int, error) {
|
|
|
|
return -1, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func setFileLabel(fpath string, label string) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2022-05-05 02:47:06 +00:00
|
|
|
func lSetFileLabel(fpath string, label string) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-11-18 13:24:17 +00:00
|
|
|
func fileLabel(fpath string) (string, error) {
|
|
|
|
return "", nil
|
|
|
|
}
|
|
|
|
|
2022-05-05 02:47:06 +00:00
|
|
|
func lFileLabel(fpath string) (string, error) {
|
|
|
|
return "", nil
|
|
|
|
}
|
|
|
|
|
2021-11-18 13:24:17 +00:00
|
|
|
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 peerLabel(fd uintptr) (string, error) {
|
|
|
|
return "", nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func setKeyLabel(label string) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c Context) get() string {
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func newContext(label string) (Context, error) {
|
2023-12-18 20:31:00 +00:00
|
|
|
return Context{}, nil
|
2021-11-18 13:24:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func clearLabels() {
|
|
|
|
}
|
|
|
|
|
|
|
|
func reserveLabel(label string) {
|
|
|
|
}
|
|
|
|
|
2023-12-18 20:31:00 +00:00
|
|
|
func isMLSEnabled() bool {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2021-11-18 13:24:17 +00:00
|
|
|
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 getDefaultContextWithLevel(user, level, scon string) (string, error) {
|
|
|
|
return "", nil
|
|
|
|
}
|
2022-05-05 02:47:06 +00:00
|
|
|
|
|
|
|
func label(_ string) string {
|
|
|
|
return ""
|
|
|
|
}
|