Add packet to check if running as root.

This commit is contained in:
2019-10-26 17:32:35 +01:00
parent 33b6ebdb92
commit 08a47ec5d4
4 changed files with 56 additions and 0 deletions

View File

@@ -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; }