...
Code Block | ||
---|---|---|
| ||
/* Code intended to run with elevated privileges */ if (setuid(getuid()) == -1) { /* Handle Error */ } if (setuid(0) != -1) { /* Privileges notcan be droppedrestored, handle error */ } /* Code intended to run with lower privileges */ |
...