Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@pkara-pc01:~# ls -lh example.sh
- -rwxr-xr-x 1 root root 130 Apr 19 16:40 example.sh
- root@pkara-pc01:~# cat example.sh
- #/bin/bash
- echo "This is an apparmor example"
- touch data/myfile.txt
- echo "File created"
- rm data/myfile.txt
- echo "Data deleted"
- root@pkara-pc01:~# aa-genprof example.sh
- (long apparmor message)
- [(S)can system log for AppArmor events] / (F)inish
- root@pkara-pc01:~# ./example.sh
- This is an apparmor example
- File created
- Data deleted
- [(S)can system log for AppArmor events] / (F)inish
- Reading log entries from /var/log/syslog.
- Updating AppArmor profiles in /etc/apparmor.d.
- Profiling: /root/example.sh
- (long apparmor message)
- [(S)can system log for AppArmor events] / (F)inish
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement