github.com/apptainer/singularity@v3.1.1+incompatible/internal/pkg/security/apparmor/apparmor_unsupported.go (about) 1 // Copyright (c) 2018, Sylabs Inc. All rights reserved. 2 // This software is licensed under a 3-clause BSD license. Please consult the 3 // LICENSE.md file distributed with the sources of this project regarding your 4 // rights to use or distribute this software. 5 6 // +build !linux OR !apparmor 7 8 package apparmor 9 10 import ( 11 "fmt" 12 ) 13 14 // Enabled returns whether apparmor is enabled/supported or not 15 func Enabled() bool { 16 return false 17 } 18 19 // LoadProfile returns error for unsupported platform 20 func LoadProfile(profile string) error { 21 return fmt.Errorf("apparmor is not supported by OS") 22 }