mount.cifs: don't allow it to be run as setuid root program
authorJeff Layton <jlayton@redhat.com>
Tue, 26 Jan 2010 13:15:41 +0000 (08:15 -0500)
committerJeff Layton <jlayton@redhat.com>
Tue, 26 Jan 2010 13:15:41 +0000 (08:15 -0500)
commita0c31ec1c8d1220a5884e40d9ba6b191a04a24d5
tree8aa76af962d01d047870b718bcbe5b1a07bc3c0f
parenta065c177dfc8f968775593ba00dffafeebb2e054
mount.cifs: don't allow it to be run as setuid root program

mount.cifs has been the subject of several "security" fire drills due to
distributions installing it as a setuid root program. This program has
not been properly audited for security and the Samba team highly
recommends that it not be installed as a setuid root program at this
time.

To make that abundantly clear, this patch forcibly disables the ability
for mount.cifs to run as a setuid root program. People are welcome to
trivially patch this out, but they do so at their own peril.

A security audit and redesign of this program is in progress and we hope
that we'll be able to remove this in the near future.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
client/mount.cifs.c