code: func IsLoaded(name string) (bool, error) {
  	file, err := os.Open("/sys/kernel/security/apparmor/profiles")
  	if err != nil {
  		return false, err
  	}
  	defer file.Close()
  
  	r := bufio.NewReader(file)
  	for {
  		p, err := r.ReadString('\n')
  		if err == io.EOF {
  			break
  		}
  		if err != nil {
  			return false, err
  		}
  		if strings.HasPrefix(p, name+" ") {
  			return true, nil
  		}
  	}
  
  	return false, nil
  }
docs: // IsLoaded checks if a profile with the given name has been loaded into the
  // kernel.