diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2015-04-09 22:18:35 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-04-14 19:58:30 +0200 |
commit | 1e0fa55fb377db788e065de917ba8e149eb56161 (patch) | |
tree | 23135820ad4753a5588655d37d1a0fefbc3e6066 /src/util/util.h | |
parent | 748b38a7991d78cbf4726f2a14ace5e926629a54 (diff) | |
download | sssd-1e0fa55fb377db788e065de917ba8e149eb56161.tar.gz sssd-1e0fa55fb377db788e065de917ba8e149eb56161.tar.xz sssd-1e0fa55fb377db788e065de917ba8e149eb56161.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>
Diffstat (limited to 'src/util/util.h')
-rw-r--r-- | src/util/util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/util.h b/src/util/util.h index d831d533f..c86bcea5b 100644 --- a/src/util/util.h +++ b/src/util/util.h @@ -655,6 +655,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); |