I have created omiserver snap which uses inbuilt PAM Authentication mechanism. In Ubuntu desktop, it's working fine but in snappy environment it's failing with entries in syslog:
Feb 20 10:58:01 localhost kernel: [60856.512891] audit: type=1400 audit(1487588281.113:363): apparmor="DENIED" operation="open" profile="snap.omiserver" name="/etc/pam.d/other" pid=6524 comm="omiserver" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
My question is
Is it possible to grant access to my snap for reading and writing to
/etcfolder in Ubuntu snappy core?
Is it feasible/possible to write our own PAM module for authentication in case of snappy environment?
For OMI server code can we completely remove dependency on PAM module i.e. No authentication required?