jbaublitz n00b
Joined: 23 Feb 2015 Posts: 10
|
Posted: Fri Apr 17, 2015 2:08 am Post subject: execle call kills suid programs |
|
|
So I have run into the most bizarre bug I think I have ever seen. After I run the following code:
Code: |
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
int main(void) {
pid_t pid = fork();
if (pid == 0) {
char *env[] = {"DISPLAY=:0", NULL};
if (execle("/usr/bin/slock", "slock", (char *)NULL, env) < 0)
printf("%s\n", strerror(errno));
}
return 0;
}
|
a whole bunch of commands on my computer break. dmesg no longer works, su no longer works, sudo no longer works to name a few. All of them mention the same error: Operation not permitted. I'm wondering if this has anything to do with grsecurity being enabled... Have any of you seen anything like this before?
[EDIT]
I just discovered it kills ALL suid programs. This looks like it might be grsecurity problem after all. |
|