summaryrefslogtreecommitdiff
path: root/os/windows
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-01-07 20:58:05 +0000
committerJens Axboe <jaxboe@fusionio.com>2011-01-08 20:29:12 +0100
commitdfc6e7513c82d83491e90b8583fb52e301053d1b (patch)
tree8f9a2fa8fdd207def87260b97ac69723e1c278be /os/windows
parent5b42a488b1e3be03ecec9305affbbabaa2f2134e (diff)
downloadfio-dfc6e7513c82d83491e90b8583fb52e301053d1b.tar.gz
fio-dfc6e7513c82d83491e90b8583fb52e301053d1b.tar.bz2
setgid first, setuid second
Setting a new effective gid requires privileges. We must set the gid while we potentially still have superuser privileges. Otherwise setgid(2) fails because we've already changed to an unprivileged uid. Here is a test case: [global] rw=read directory=tmp size=512m buffered=0 [file1] uid=1000 gid=1000 Without this patch fio will fail when invoked by root. Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'os/windows')
0 files changed, 0 insertions, 0 deletions