diff options
author | Karel Zak | 2012-01-02 11:08:17 +0100 |
---|---|---|
committer | Karel Zak | 2012-01-02 11:08:17 +0100 |
commit | a4c0cc75ff9744299f108c259efab1bd30c8007a (patch) | |
tree | 4edd3d65abbc5aa377a2a61498b4e8ba89f7b126 /lib/blkdev.c | |
parent | lib,tt: don't trim last line char (diff) | |
download | kernel-qcow2-util-linux-a4c0cc75ff9744299f108c259efab1bd30c8007a.tar.gz kernel-qcow2-util-linux-a4c0cc75ff9744299f108c259efab1bd30c8007a.tar.xz kernel-qcow2-util-linux-a4c0cc75ff9744299f108c259efab1bd30c8007a.zip |
mount: append inverting options for mount.<type>
fstab:
server://foo /mnt/foo nfs user,exec
The mount(8) does not append the option "exec" to /sbin/mount.<type>
helper's command line. This is no problem when executed by non-root
user as it reads the options from fstab only.
.. but when executed by root (UID=0) then the mount.<type> helper
follows the command where the "exec" option is missing. This is bug.
original version (strace output):
execve("/sbin/mount.nfs", ["/sbin/mount.nfs",
"sr.net.home:/mnt/store", "/mnt/store", "-o",
"rw,nosuid,nodev,noauto,user"], [/* 21 vars */]) = 0
fixed version:
execve("/sbin/mount.nfs", ["/sbin/mount.nfs",
"sr.net.home:/mnt/store", "/mnt/store", "-o",
"rw,nosuid,nodev,noauto,user,exec"], [/* 21 vars */]) = 0
^^^^^
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'lib/blkdev.c')
0 files changed, 0 insertions, 0 deletions