Interface for reading files in /usr
Bug #1603838 reported by
Cris Dywan
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
This is arguably a somewhat specialzed use case in context of development, but I noticed I can't use ag (ag-mcphail, grep/ack alternative) to search files in /usr:
1. snap install ag-mcphail
2. ag-mcphail.ag time_t /usr/include
ERR: Error opening directory /usr/include: Permission denied
The snap's using the "home" interface, but it can't access files in /usr.
Ugly Work-around:
/snap/ag-
tags: | added: snapd-interface |
Changed in snapcraft: | |
importance: | Undecided → Wishlist |
affects: | snapcraft → snappy |
Changed in snappy: | |
status: | New → Triaged |
affects: | snappy → snapd |
To post a comment you must log in.
ag is apparently https:/ /github. com/ggreer/ the_silver_ searcher and it is a code searching tool. Of course we could add an interface for /usr and the implementation would be simple, but then someone will ask for /srv, /opt, /home/*, /var/imports, etc, etc. I'm not sure how to proceed with this request since the request is at odds with snappy's application isolation goals (not to mention on a classic system the things you want to search may not be bind mounted into the snap's runtime).
Can other members of the interfaces team weigh in?