Unverified Commit ce031847 authored by Grimmauld's avatar Grimmauld Committed by GitHub
Browse files

apparmor-profiles: use structuredAttrs instead of passAsFile (#498254)

parents 48e5bec3 d2de2e35
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -36,11 +36,11 @@
        ${bashInteractive}/bin/sh = icnu
        ${bashInteractive}/bin/bash = icnu
    '';
    passAsFile = [ "header" ];
    __structuredAttrs = true;
  }
  ''
    mkdir $out
    cp $headerPath $out/logprof.conf
    printf "%s" "$header" > $out/logprof.conf
    ln -s ${libapparmor.src}/utils/severity.db $out/severity.db
    sed '1,/\[qualifiers\]/d' ${libapparmor.src}/utils/logprof.conf >> $out/logprof.conf
  ''