lxd/util/apparmor.go
func AppArmorProfile() string {
	contents, err := ioutil.ReadFile("/proc/self/attr/current")
	if err == nil {
		return strings.TrimSpace(string(contents))
	}

	return ""
}
func AppArmorProfile() string {
	contents, err := ioutil.ReadFile("/proc/self/attr/current")
	if err == nil {
		return strings.TrimSpace(string(contents))
	}

	return ""
}
func AppArmorProfile ( ) string { contents , err := ioutil . ReadFile ( " " ) if err == nil { return strings . TrimSpace ( string ( contents ) ) } return " " }
// AppArmorProfile returns the current apparmor profile.
AppArmorProfile returns the current apparmor profile .