diff options
author | Karel Zak <kzak@redhat.com> | 2012-09-12 14:27:12 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2012-09-12 14:27:12 +0200 |
commit | 4be900c51d371a7a41495e4eca2d29fc77c20c7c (patch) | |
tree | d95febecbf2c10ba543fcede18abc00d88ec9b4e /libmount/src/context_loopdev.c | |
parent | 3de77c2173e5bc8664a427ce9a8b08c68eea7c7f (diff) | |
download | util-linux-4be900c51d371a7a41495e4eca2d29fc77c20c7c.tar.gz |
libmount: don't remove user= when executed by root
The original mount(8) allows to store arbitrary user= option to mtab
file if called by root user. For example:
# mount -f foo /bar -t xxx -o rw,user=kzak
the new mount removes the 'user=' and 'users' options at all for root
user. This is regression. The original functionality is necessary by
'sshfs' where fuse writes to mtab file by mount(8).
Reported-by: Juergen Daubert <jue@jue.li> (and 'horrorStruck' on IRC)
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/context_loopdev.c')
0 files changed, 0 insertions, 0 deletions