View previous topic :: View next topic |
Author |
Message |
zBrain Apprentice


Joined: 14 Apr 2006 Posts: 199
|
Posted: Wed Mar 06, 2019 1:34 am Post subject: suexec failed to setgid |
|
|
I can't figure this one out.
-The group exists
Code: | # filecap /usr/sbin/suexec
file capabilities
/usr/sbin/suexec setgid, setuid
|
Code: | # ls -l /usr/sbin/suexec
-rws--x--- 1 root apache 18680 Sep 5 15:46 /usr/sbin/suexec
|
Use flag suexec-caps is turned on. The cgi binary meets all the criteria from suexec -V
Any ideas? |
|
Back to top |
|
 |
zBrain Apprentice


Joined: 14 Apr 2006 Posts: 199
|
Posted: Wed Mar 06, 2019 7:41 pm Post subject: |
|
|
So it turns out it had something to do with systemd. I had switched to it just to try it. Everything else seemed fine. Switching back to OpenRC fixed it.
Anybody have a guess why this might be? |
|
Back to top |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23442
|
Posted: Thu Mar 07, 2019 2:19 am Post subject: |
|
|
What security features did systemd enable when it started apache? Did it set no-new-privs? |
|
Back to top |
|
 |
zBrain Apprentice


Joined: 14 Apr 2006 Posts: 199
|
Posted: Thu Mar 07, 2019 5:46 pm Post subject: |
|
|
How do I check? |
|
Back to top |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23442
|
Posted: Fri Mar 08, 2019 3:26 am Post subject: |
|
|
grep NoNewPrivs /proc/pid-of-affected-process/status |
|
Back to top |
|
 |
zBrain Apprentice


Joined: 14 Apr 2006 Posts: 199
|
|
Back to top |
|
 |
|