Applications can't access local files in the user home despite plugs: home being set
Bug #1586644 reported by
Reinhard Pointner
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
The attached sample cmdline application fetches a web page and saves it to a given path.
Trying to write local files doesn't work and raises exceptions such as this:
Caught: java.io.
(see run-test.sh for details)
affects: | snapcraft (Ubuntu) → snapd (Ubuntu) |
To post a comment you must log in.
Thanks for providing a test snap; unfortunately it wouldn't build for me (I won't provide more details about build error since I don't want to derail/confuse the discussion), but I've quickly built a similar snap that doesn't need java and simply touches given path under home, and it worked fine with home interface connected.
Are you running this on a classic ubuntu system? Home plug is automatically connected only on classic.
Please attach the following info:
- output of 'snap connections'
- list of apparmor denials from the system log when you hit this error.