summaryrefslogtreecommitdiffstats
path: root/kdmlib/kdmtsak.h
diff options
context:
space:
mode:
Diffstat (limited to 'kdmlib/kdmtsak.h')
-rw-r--r--kdmlib/kdmtsak.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/kdmlib/kdmtsak.h b/kdmlib/kdmtsak.h
index 21b2f85c7..c9664ae34 100644
--- a/kdmlib/kdmtsak.h
+++ b/kdmlib/kdmtsak.h
@@ -43,6 +43,11 @@ inline int tde_sak_verify_calling_process()
{
bool authorized = false;
+ // Root always has access to everything...
+ if (getuid() == 0) {
+ return 0;
+ }
+
pid_t parentproc = getppid();
#ifdef DEBUG
printf("Parent pid is: %d\n\r", parentproc);