]> git.ipfire.org Git - thirdparty/util-linux.git/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>
Mon, 22 Oct 2007 09:03:48 +0000 (11:03 +0200)
commita9042a57bf36c3663badfb75ee501aa20ee083ee
treeefbc4ed2e2d9bf61f371680b36f0c992be49fd01
parentcc977341aaef9f38136edddc3a7108fffdcff6ab
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