Apparmor denied issues

Hello ,

I am getting below AppArmor denied issue while checking using “snappy-debug”:

Log: apparmor=“DENIED” operation=“open” profile=“snap.lenovo-wwan-dpr.wwan-dpr” name="/dev/wwan0at1" pid=4117 comm=“FccUnlock” requested_mask=“wr” denied_mask=“wr” fsuid=0 ouid=0 File: /dev/wwan0at1 (write)

Do , i need to add any plugs for this ? Any information regarding this will be helpful.

Thank you !!

As per apparmor issue , “/dev/wwan0at1” is not accessible by snap . Hence , i have modified like below and it looks working . Also , i need to connect like “snap connect lenovo-wwan-dpr:test”

plugs:  
  test:
    interface: system-files
    read:
      - /dev/wwan0at1
    write:
      - /dev/wwan0at1

Is this the correct way to solve this issue ? Also , do i need to request auto-connect for new plug “test” as mentioned above ? Any information regarding this will be helpful.

Thank you

Any information regarding above comment will be helpful. Thank you in advance.