Attached is a example program that builds a file query string.
to build gcc -o query_file query_file.c -l apparmor
to use query_file <profile_name> file1 file2 file3 ...
eg. > ./query_file firefox /tmp /tmp/ read '/tmp' denied read '/tmp/' allowed
Attached is a example program that builds a file query string.
to build
gcc -o query_file query_file.c -l apparmor
to use
query_file <profile_name> file1 file2 file3 ...
eg.
> ./query_file firefox /tmp /tmp/
read '/tmp' denied
read '/tmp/' allowed