summaryrefslogtreecommitdiffstats
path: root/src/util/util.h
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2015-04-09 22:18:35 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-04-15 14:50:49 +0200
commit8ae3dfccf2d77f69135d45004626792128883d2f (patch)
treeec43127016f34c9e7087e271f79bd883e97ce553 /src/util/util.h
parent99581f84e4ba29c6395617a903376ad045174b8e (diff)
downloadsssd-8ae3dfccf2d77f69135d45004626792128883d2f.tar.gz
sssd-8ae3dfccf2d77f69135d45004626792128883d2f.tar.xz
sssd-8ae3dfccf2d77f69135d45004626792128883d2f.zip
selinux: Only call semanage if the context actually changes
https://fedorahosted.org/sssd/ticket/2624 Add a function to query the libsemanage database for a user context and only update the database if the context differes from the one set on the server. Adds talloc dependency to libsss_semanage. Reviewed-by: Michal Židek <mzidek@redhat.com> (cherry picked from commit 1e0fa55fb377db788e065de917ba8e149eb56161) (cherry picked from commit 4d31f2c294db6090047e4d5348322b32ea0aaac1)
Diffstat (limited to 'src/util/util.h')
-rw-r--r--src/util/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/util.h b/src/util/util.h
index 91df09914..81a8709d6 100644
--- a/src/util/util.h
+++ b/src/util/util.h
@@ -642,6 +642,8 @@ errno_t restore_creds(struct sss_creds *saved_creds);
int set_seuser(const char *login_name, const char *seuser_name,
const char *mlsrange);
int del_seuser(const char *login_name);
+int get_seuser(TALLOC_CTX *mem_ctx, const char *login_name,
+ char **_seuser, char **_mls_range);
/* convert time from generalized form to unix time */
errno_t sss_utc_to_time_t(const char *str, const char *format, time_t *unix_time);