summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb.h
diff options
context:
space:
mode:
authorJan Zeleny <jzeleny@redhat.com>2012-07-16 13:54:21 -0400
committerJakub Hrozek <jhrozek@redhat.com>2012-07-18 16:32:25 +0200
commit1a3e6221b38a7cae27d7e84a30bb8ea3c3900a47 (patch)
treed7588ed8b02fcdaa5d231930b9a165208e078dfc /src/db/sysdb.h
parent266fd9834133e31c51b9e967307a793e5a49258e (diff)
downloadsssd-1a3e6221b38a7cae27d7e84a30bb8ea3c3900a47.tar.gz
sssd-1a3e6221b38a7cae27d7e84a30bb8ea3c3900a47.tar.xz
sssd-1a3e6221b38a7cae27d7e84a30bb8ea3c3900a47.zip
Modify priority evaluation in SELinux user maps
The functionality now is following: When rule is being matched, its priority is determined as a combination of user and host specificity (host taking preference). After the rule is matched in provider, only its host priority is stored in sysdb for later usage. When rules are matched in the responder, their user priority is determined. After that their host priority is retrieved directly from sysdb and sum of both priorities is user to determine whether to use that rule or not. If more rules have the same priority, the order given in IPA config is used. https://fedorahosted.org/sssd/ticket/1360 https://fedorahosted.org/sssd/ticket/1395
Diffstat (limited to 'src/db/sysdb.h')
-rw-r--r--src/db/sysdb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/db/sysdb.h b/src/db/sysdb.h
index 5baac98b3..3c6166cf4 100644
--- a/src/db/sysdb.h
+++ b/src/db/sysdb.h
@@ -120,6 +120,7 @@
#define SYSDB_SELINUX_SEEALSO "seeAlso"
#define SYSDB_SELINUX_USER "selinuxUser"
#define SYSDB_SELINUX_ENABLED "enabled"
+#define SYSDB_SELINUX_HOST_PRIORITY "hostPriority"
#define SYSDB_CACHEDPWD "cachedPassword"