mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
96f1962f91
This new version includes the fixes for CVE-2025-52881, so we can remove the internal/third_party copy of the library we added in commited6b1693b8("selinux: use safe procfs API for labels") as well as the "replace" directive in go.mod (which is problematic for "go get" installs). Fixes:ed6b1693b8("selinux: use safe procfs API for labels") Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
156 lines
2.2 KiB
Go
156 lines
2.2 KiB
Go
//go:build !linux
|
|
// +build !linux
|
|
|
|
package selinux
|
|
|
|
func readConThreadSelf(string) (string, error) {
|
|
return "", nil
|
|
}
|
|
|
|
func writeConThreadSelf(string, string) error {
|
|
return nil
|
|
}
|
|
|
|
func setDisabled() {}
|
|
|
|
func getEnabled() bool {
|
|
return false
|
|
}
|
|
|
|
func classIndex(string) (int, error) {
|
|
return -1, nil
|
|
}
|
|
|
|
func setFileLabel(string, string) error {
|
|
return nil
|
|
}
|
|
|
|
func lSetFileLabel(string, string) error {
|
|
return nil
|
|
}
|
|
|
|
func fileLabel(string) (string, error) {
|
|
return "", nil
|
|
}
|
|
|
|
func lFileLabel(string) (string, error) {
|
|
return "", nil
|
|
}
|
|
|
|
func setFSCreateLabel(string) error {
|
|
return nil
|
|
}
|
|
|
|
func fsCreateLabel() (string, error) {
|
|
return "", nil
|
|
}
|
|
|
|
func currentLabel() (string, error) {
|
|
return "", nil
|
|
}
|
|
|
|
func pidLabel(int) (string, error) {
|
|
return "", nil
|
|
}
|
|
|
|
func execLabel() (string, error) {
|
|
return "", nil
|
|
}
|
|
|
|
func canonicalizeContext(string) (string, error) {
|
|
return "", nil
|
|
}
|
|
|
|
func computeCreateContext(string, string, string) (string, error) {
|
|
return "", nil
|
|
}
|
|
|
|
func calculateGlbLub(string, string) (string, error) {
|
|
return "", nil
|
|
}
|
|
|
|
func peerLabel(uintptr) (string, error) {
|
|
return "", nil
|
|
}
|
|
|
|
func setKeyLabel(string) error {
|
|
return nil
|
|
}
|
|
|
|
func keyLabel() (string, error) {
|
|
return "", nil
|
|
}
|
|
|
|
func (c Context) get() string {
|
|
return ""
|
|
}
|
|
|
|
func newContext(string) (Context, error) {
|
|
return Context{}, nil
|
|
}
|
|
|
|
func clearLabels() {
|
|
}
|
|
|
|
func reserveLabel(string) {
|
|
}
|
|
|
|
func isMLSEnabled() bool {
|
|
return false
|
|
}
|
|
|
|
func enforceMode() int {
|
|
return Disabled
|
|
}
|
|
|
|
func setEnforceMode(int) error {
|
|
return nil
|
|
}
|
|
|
|
func defaultEnforceMode() int {
|
|
return Disabled
|
|
}
|
|
|
|
func releaseLabel(string) {
|
|
}
|
|
|
|
func roFileLabel() string {
|
|
return ""
|
|
}
|
|
|
|
func kvmContainerLabels() (string, string) {
|
|
return "", ""
|
|
}
|
|
|
|
func initContainerLabels() (string, string) {
|
|
return "", ""
|
|
}
|
|
|
|
func containerLabels() (string, string) {
|
|
return "", ""
|
|
}
|
|
|
|
func securityCheckContext(string) error {
|
|
return nil
|
|
}
|
|
|
|
func copyLevel(string, string) (string, error) {
|
|
return "", nil
|
|
}
|
|
|
|
func chcon(string, string, bool) error {
|
|
return nil
|
|
}
|
|
|
|
func dupSecOpt(string) ([]string, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
func getDefaultContextWithLevel(string, string, string) (string, error) {
|
|
return "", nil
|
|
}
|
|
|
|
func label(_ string) string {
|
|
return ""
|
|
}
|