summaryrefslogtreecommitdiffstats
path: root/kdmlib/kdmtsak.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-09-16 01:11:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-09-16 01:11:33 +0000
commit037217ba8b879294a199df3846e47c52746d23cc (patch)
tree53585121053a0a9b746ee8b23316be34fd0c0392 /kdmlib/kdmtsak.h
parentc1d059ab57cfcc43d0c6052fdb5e6782ce23dac5 (diff)
downloadtdebase-037217ba8b879294a199df3846e47c52746d23cc.tar.gz
tdebase-037217ba8b879294a199df3846e47c52746d23cc.zip
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
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);