mirror of
https://github.com/aaru-dps/aaruremote.git
synced 2025-12-16 19:24:37 +00:00
Add packet to check if running as root.
This commit is contained in:
@@ -17,9 +17,13 @@
|
||||
|
||||
#include "../dicmote.h"
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
void Initialize()
|
||||
{
|
||||
// Do nothing
|
||||
}
|
||||
|
||||
void PlatformLoop(DicPacketHello* pkt_server_hello) { WorkingLoop(pkt_server_hello); }
|
||||
|
||||
uint8_t AmIRoot() { return geteuid() == 0; }
|
||||
Reference in New Issue
Block a user