Interface for reading files in /usr

Bug #1603838 reported by Cris Dywan
12
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-mcphail/current/bin/ag time_t /usr/include

tags: added: snapd-interface
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

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?

Changed in snapcraft:
importance: Undecided → Wishlist
affects: snapcraft → snappy
Changed in snappy:
status: New → Triaged
Michael Vogt (mvo)
affects: snappy → snapd
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.