From 037217ba8b879294a199df3846e47c52746d23cc Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 16 Sep 2011 01:11:33 +0000 Subject: Add preliminary SAK support to KDM Unify the various system modal dialogs a bit git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1253872 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdmlib/kdmtsak.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'kdmlib/kdmtsak.h') 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); -- cgit v1.2.1