Created
August 24, 2016 08:15
-
-
Save lucj/d7fb8ed1952298f47e5eb070815e85a3 to your computer and use it in GitHub Desktop.
AppArmor example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# check if access to the file is authorized within the container confined in docker-default AppArmor profile | |
root@4008beda0927:~# cat /proc/sysrq-trigger | |
cat: /proc/sysrq-trigger: Permission denied | |
root@4008beda0927:~# | |
# check if access to the file is authorized within the unconfined container | |
root@9f2173cfd7bc:~# cat /proc/sysrq-trigger | |
cat: /proc/sysrq-trigger: Input/output error | |
root@9f2173cfd7bc:~# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment