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


** Attachment added: "example program querying file permission access"
   
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1381713/+attachment/4405699/+files/query_file.c

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1381713

Title:
  Support policy query interface for file

To manage notifications about this bug go to:
https://bugs.launchpad.net/apparmor/+bug/1381713/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to