code: func (p *profileData) generateDefault(out io.Writer) error {
  	compiled, err := template.New("apparmor_profile").Parse(baseTemplate)
  	if err != nil {
  		return err
  	}
  
  	if macroExists("tunables/global") {
  		p.Imports = append(p.Imports, "#include <tunables/global>")
  	} else {
  		p.Imports = append(p.Imports, "@{PROC}=/proc/")
  	}
  
  	if macroExists("abstractions/base") {
  		p.InnerImports = append(p.InnerImports, "#include <abstractions/base>")
  	}
  
  	ver, err := aaparser.GetVersion()
  	if err != nil {
  		return err
  	}
  	p.Version = ver
  
  	return compiled.Execute(out, p)
  }
docs: // generateDefault creates an apparmor profile from ProfileData.