mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-29 06:02:40 +00:00
19 lines
380 B
Diff
19 lines
380 B
Diff
--- a/packet/packet.c
|
|
+++ b/packet/packet.c
|
|
@@ -121,15 +121,6 @@
|
|
int drop_elevated_permissions(
|
|
void)
|
|
{
|
|
- /* Drop any suid permissions granted */
|
|
- if (setgid(getgid()) || setuid(getuid())) {
|
|
- return -1;
|
|
- }
|
|
-
|
|
- if (geteuid() != getuid() || getegid() != getgid()) {
|
|
- return -1;
|
|
- }
|
|
-
|
|
/*
|
|
Drop all process capabilities.
|
|
*/
|