]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: setrlimit: Add a permission check
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 30 Nov 2021 11:48:34 +0000 (12:48 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 30 Nov 2021 11:55:14 +0000 (12:55 +0100)
commit670beaed0216aa59603501e8f14e1f04b138bc47
tree7547471b5652c44525328d4a6f969cad08b0b0d4
parentd64cd470ae9b089d5e334efe7ed5ec4be68577d5
Cygwin: setrlimit: Add a permission check

If the incoming soft limit is less restrictive than the current
hard limit, bail out with EPERM.  Given the previous sanity check,
this implies trying to raise the hard limit.  While, theoretically,
this should be allowed for privileged processes, Windows has no
matching concept in terms of job limits

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/resource.cc
This page took 0.030102 seconds and 5 git commands to generate.