From: J. Bruce Fields Date: Mon, 16 Mar 2009 22:34:20 +0000 (-0400) Subject: nfsd: nfsd should drop CAP_MKNOD for non-root X-Git-Tag: v2.6.29~22^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76a67ec6fb79ff3570dcb5342142c16098299911;p=pandora-kernel.git nfsd: nfsd should drop CAP_MKNOD for non-root Since creating a device node is normally an operation requiring special privilege, Igor Zhbanov points out that it is surprising (to say the least) that a client can, for example, create a device node on a filesystem exported with root_squash. So, make sure CAP_MKNOD is among the capabilities dropped when an nfsd thread handles a request from a non-root user. Reported-by: Igor Zhbanov Cc: stable@kernel.org Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed