summaryrefslogtreecommitdiff
path: root/libmount/src/context_loopdev.c
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2012-09-12 14:27:12 +0200
committerKarel Zak <kzak@redhat.com>2012-09-12 14:27:12 +0200
commit4be900c51d371a7a41495e4eca2d29fc77c20c7c (patch)
treed95febecbf2c10ba543fcede18abc00d88ec9b4e /libmount/src/context_loopdev.c
parent3de77c2173e5bc8664a427ce9a8b08c68eea7c7f (diff)
downloadutil-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