]> err.no Git - util-linux/commit
mount: doesn't drop privileges properly when calling helpers
authorLudwig Nussel <ludwig.nussel@suse.de>
Thu, 20 Sep 2007 12:57:20 +0000 (14:57 +0200)
committerKarel Zak <kzak@redhat.com>
Sun, 23 Sep 2007 19:34:18 +0000 (21:34 +0200)
commitebbeb2c7ac1b00b6083905957837a271e80b187e
treeee04eb1ab76e5114bb484b759453af0c99d5859f
parente72194e6204dc161ad2c08d3fd24c7f2c148b2df
mount: doesn't drop privileges properly when calling helpers

{,u}mount calls setuid() and setgid() in the wrong order and doesn't checking
the return value of set{u,g}id(() when running helpers like mount.nfs.

Signed-off-by: Ludwig Nussel <ludwig.nussel@suse.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
mount/mount.c
mount/umount.c