Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. root@pkara-pc01:~# ls -lh example.sh
  2. -rwxr-xr-x 1 root root 130 Apr 19 16:40 example.sh
  3.  
  4. root@pkara-pc01:~# cat example.sh
  5. #/bin/bash
  6.  
  7. echo "This is an apparmor example"
  8.  
  9. touch data/myfile.txt
  10. echo "File created"
  11.  
  12. rm data/myfile.txt
  13. echo "Data deleted"
  14.  
  15. root@pkara-pc01:~# aa-genprof example.sh
  16.  
  17. (long apparmor message)
  18.  
  19. [(S)can system log for AppArmor events] / (F)inish
  20.  
  21. root@pkara-pc01:~# ./example.sh
  22. This is an apparmor example
  23. File created
  24. Data deleted
  25.  
  26. [(S)can system log for AppArmor events] / (F)inish
  27. Reading log entries from /var/log/syslog.
  28. Updating AppArmor profiles in /etc/apparmor.d.
  29.  
  30. Profiling: /root/example.sh
  31.  
  32. (long apparmor message)
  33.  
  34. [(S)can system log for AppArmor events] / (F)inish
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement