]> 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:39:28 +0000 (21:39 +0200)
commit9c455113ddcad30afcd4b8f59e5f4e2d8606037d
treeb17669245f9b5914bc1bedeea1dcc8b10dfe8ded
parentaf03fcfeccdec0aa537dd4373a773cdf0d6d7892
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