| Summary: | root can't access user mounted images | ||
|---|---|---|---|
| Product: | [Community] Virtualization Tools | Reporter: | Pádraig Brady <pbrady> |
| Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> |
| Status: | CLOSED UPSTREAM | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | mbooth, virt-maint, yufang521247 |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-12-30 12:14:40 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Pádraig Brady
2011-12-09 14:12:17 UTC
FUSE doesn't let users see each other's mounts, unless you change some options. See: http://libguestfs.org/guestmount.1.html#other_users_cannot_see_the_filesystem_by_default http://sourceforge.net/apps/mediawiki/fuse/index.php?title=Fuse.conf and the output of guestmount --fuse-help OK trying that gives a further 2 issues: $ guestmount --rw -o allow_root -a /tmp/disk -m /dev/sda /tmp/bb fusermount: option allow_other only allowed if 'user_allow_other' is set in /etc/fuse.conf $ echo $? 0 First is that EXIT_SUCCESS is returned for this failure to mount. Richard has fixed that bug already in libguestfs :) So I'm not logging separately. The second is that I'd need to do this in my packaging: echo user_allow_other >> /etc/fuse.conf I'm not sure if we could safely remove on package removal. I guess we could tag it with a comment if the file supports comments. The bigger security issue though, is that it might expose the root user to arbitrary setuid files etc. So I'm thinking it might be best to keep running guestmount as root, as we need to access the mounted image as root anyway due to the "cd issue" mentioned in comment #1 The EXIT_SUCCESS issue was fixed in libguestfs-1.14.7-1 The root access restriction is by design, so closing... |