Setcapped executable does not inherit ulimit stack size
Issue
If a custom executable with setcap
applied is launched, the stack size reverts to 8M
from the ulimit
-defined value. Removing the setcap
causes the executable to start with the requested stack size.
This behavior also applies to binaries with SUID set.
Environment
- Red Hat Enterprise Linux 8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.