summaryrefslogtreecommitdiff
path: root/src/leap/util/privilege_policies.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2013-04-09 00:43:13 +0900
committerkali <kali@leap.se>2013-04-09 00:43:13 +0900
commite75fe6ffd58b067b3fc32196ad245d26a1287e99 (patch)
tree8d8d15f80950fda8b1447c5b9fdab4129a4be0a4 /src/leap/util/privilege_policies.py
parent22342664951ac32756ceb7ade59ada90f92c8793 (diff)
fixes as per review
Diffstat (limited to 'src/leap/util/privilege_policies.py')
-rw-r--r--src/leap/util/privilege_policies.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/leap/util/privilege_policies.py b/src/leap/util/privilege_policies.py
index 5bf1b476..e74c4d33 100644
--- a/src/leap/util/privilege_policies.py
+++ b/src/leap/util/privilege_policies.py
@@ -32,6 +32,8 @@ def is_missing_policy_permissions():
Returns True if we do not have implemented a policy checker for this
platform, or if the policy checker exists but it cannot find the
appropriate policy mechanisms in place.
+
+ @rtype: bool
"""
_system = platform.system()
platform_checker = _system + "PolicyChecker"
@@ -74,5 +76,7 @@ class LinuxPolicyChecker(PolicyChecker):
"""
Returns True if we could not find the appropriate policykit file
in place
+
+ @rtype: bool
"""
return not os.path.isfile(self.LINUX_POLKIT_FILE)