It will be helpful, if i can get some feedback regarding below issue:
Test SNAP Snippet(just for explaining issue) :
Issue : When i call below code from code of “binary1”
-> system ("/snap/bin/name1.APP2")
Then, it gives me below error which i checked in syslog :
** name1.APP1: sh: 1: /snap/bin/name1.APP2: Permission denied**
Using snappy debug, it showed error like below :
Time: Jul 6 16:36:13
Log: apparmor=“DENIED” operation=“exec” profile="snap.name1.APP1" name="/snap/snapd/12398/usr/bin/snap" pid=11764 comm=“sh” requested_mask=“x” denied_mask=“x” fsuid=0 ouid=0
File: /snap/snapd/12398/usr/bin/snap (exec)
- adjust snap to ship ‘snap’
- adjust program to use relative paths if the snap already ships ‘snap’
This code worked when i installed my SNAP using “devmode” but when i remove “devmode”, it started giving this issue.
I am not sure, what i am missing to remove this “Permission denied” issue when installing without devmode. Any comment will be helpful.
Thanks in advance.