Skip to content

Instantly share code, notes, and snippets.

@dalguete
Created May 12, 2018 17:24
Show Gist options
  • Save dalguete/19a9d984e8a749eefaab7ec9aea6be01 to your computer and use it in GitHub Desktop.
Save dalguete/19a9d984e8a749eefaab7ec9aea6be01 to your computer and use it in GitHub Desktop.
Useful to extract the apparmor profile created by Docker when installed
#!/bin/bash
[ "`echo "$@" | grep -e "docker"`" ] && echo "$@" | cut -c 5- | xargs -I {} cat {} > /tmp/apparmor-profile-docker-default
/sbin/apparmor_parser_original "$@"
@FelixOliverLange
Copy link

FelixOliverLange commented Jun 25, 2018

Worked on SLES 12.3, thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment