rememedy -> remedy
This commit is contained in:
Leonabcd123
2025-08-27 22:03:56 +03:00
committed by GitHub
parent 92552c0eb8
commit 38d87cd90a
+1 -1
View File
@@ -84,7 +84,7 @@ When `/bin/sh` (which is linked to `/bin/dash`) is run under this, it will immed
This means that both the **effective** and **real** user will be `hacker`, and the flag will not be accessible. This means that both the **effective** and **real** user will be `hacker`, and the flag will not be accessible.
This affects `system`, which ultimately just runs `/bin/sh`. This affects `system`, which ultimately just runs `/bin/sh`.
The challenge can rememedy this by explicitly setting the **real** user to the **effective** user: The challenge can remedy this by explicitly setting the **real** user to the **effective** user:
```c ```c
setreuid(geteuid(), -1) setreuid(geteuid(), -1)
``` ```