summaryrefslogtreecommitdiffstats
path: root/doc/legacy/advanced-stripe.pdf
diff options
context:
space:
mode:
authorPrasanna Kumar Kalever <prasanna.kalever@redhat.com>2015-05-14 12:10:01 +0530
committerNiels de Vos <ndevos@redhat.com>2015-05-16 00:19:09 -0700
commitb5ceb1a9de9af563b0f91e2a3138fa5a95cad9f6 (patch)
treef3dadd9060c0f86a390511080334d8c7b94225b9 /doc/legacy/advanced-stripe.pdf
parent503acdb32ca84102d07cd1142eff464152b06690 (diff)
fuse: fix return value check for setuid
setuid() sets the effective user ID of the calling process. If the effective UID of the caller is root, the real UID and saved set-user-ID are also set. On success, zero is returned. On error, -1 is returned, and errno is set appropriately. there are cases where setuid() can fail even when the caller is UID 0; it is a grave security error to omit checking for a failure return from setuid(). if an environment limits the number of processes a user can have, setuid() might fail if the target uid already is at the limit. Fix is to check return value of setuid. Change-Id: I7aa5ab5e347603c69dc93188417cc4f4c81ffc75 BUG: 1221490 Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com> Reviewed-on: http://review.gluster.org/10780 Reviewed-by: Prasanna Kumar Kalever Tested-by: Prasanna Kumar Kalever Reviewed-by: Niels de Vos <ndevos@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Gaurav Kumar Garg <ggarg@redhat.com>
Diffstat (limited to 'doc/legacy/advanced-stripe.pdf')
0 files changed, 0 insertions, 0 deletions