summaryrefslogtreecommitdiff
path: root/src/providers/ipa/ipa_selinux.h
diff options
context:
space:
mode:
authorMichal Zidek <mzidek@redhat.com>2013-02-27 15:31:00 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-03-19 17:50:53 +0100
commit2ff2a7469ef0b23b3feb418f3ecfa8cfbfa2239c (patch)
treea960992e6ff7e85965f52e5234b36cacdd6d7300 /src/providers/ipa/ipa_selinux.h
parentb42bb7d9dbf9a4c44a03e7bf1bab471a8a85e858 (diff)
downloadsssd-2ff2a7469ef0b23b3feb418f3ecfa8cfbfa2239c.tar.gz
sssd-2ff2a7469ef0b23b3feb418f3ecfa8cfbfa2239c.tar.bz2
sssd-2ff2a7469ef0b23b3feb418f3ecfa8cfbfa2239c.zip
Reuse cached SELinux mappings.
Reuse cached SELinux maps when they are requested within time interval (in this patch it is hardcoded to be 5 seconds). https://fedorahosted.org/sssd/ticket/1744
Diffstat (limited to 'src/providers/ipa/ipa_selinux.h')
-rw-r--r--src/providers/ipa/ipa_selinux.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/providers/ipa/ipa_selinux.h b/src/providers/ipa/ipa_selinux.h
index 0f3fadd3..e8fd4a06 100644
--- a/src/providers/ipa/ipa_selinux.h
+++ b/src/providers/ipa/ipa_selinux.h
@@ -36,6 +36,7 @@
struct ipa_selinux_ctx {
struct ipa_id_ctx *id_ctx;
+ time_t last_update;
struct sdap_search_base **selinux_search_bases;
struct sdap_search_base **host_search_bases;