lava-dispatcher appears to require root permissions (not documented)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LAVA Dispatcher |
Fix Released
|
Low
|
Antonio Terceiro |
Bug Description
lava-dispatcher uses sudo to execute shell commands, e.g.:
def image_partition
...
mount_cmd = "sudo mount -o loop,offset=%s %s %s" % (offset, image, mntdir)
...
However, once that partition is mounted, it tries to access it with direct file access calls, e.g.:
def _customize_
with open('%
of course, that files, as that file in mounted partition is not accessible to normal user, but requires root privs.
So:
1. There appears to be some machinery to allow lava-dispatcher to run as non-root user, but it's incomplete.
2. Current docs as present at http://
Point 2 apparently would the easiest way to fix this. Longer term, it probably would be nice to complete non-root support though, given that there're already partial measures for that.
Related branches
- Tyler Baker: Approve
-
Diff: 15 lines (+5/-0)1 file modifiedlava/dispatcher/commands.py (+5/-0)
Changed in lava-dispatcher: | |
status: | New → In Progress |
Changed in lava-dispatcher: | |
importance: | Undecided → Low |
tags: | added: docs |
Changed in lava-dispatcher: | |
status: | In Progress → Fix Committed |
Changed in lava-dispatcher: | |
status: | Fix Committed → Fix Released |
Well I actually went for fixing #1, as my first patch to LAVA: https:/ /code.launchpad .net/~pfalcon/ lava-dispatcher /run-as- non-root/ +merge/ 131051