diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/providers/krb5/krb5_utils.h | 8 | ||||
-rw-r--r-- | src/util/become_user.c (renamed from src/providers/krb5/krb5_become_user.c) | 1 | ||||
-rw-r--r-- | src/util/util.h | 9 |
3 files changed, 9 insertions, 9 deletions
diff --git a/src/providers/krb5/krb5_utils.h b/src/providers/krb5/krb5_utils.h index 4b1ebb0bb..f54a07f79 100644 --- a/src/providers/krb5/krb5_utils.h +++ b/src/providers/krb5/krb5_utils.h @@ -49,14 +49,6 @@ char *expand_ccname_template(TALLOC_CTX *mem_ctx, struct krb5child_req *kr, const char *template, bool file_mode, bool case_sensitive); -errno_t become_user(uid_t uid, gid_t gid); -struct sss_creds; -errno_t switch_creds(TALLOC_CTX *mem_ctx, - uid_t uid, gid_t gid, - int num_gids, gid_t *gids, - struct sss_creds **saved_creds); -errno_t restore_creds(struct sss_creds *saved_creds); - errno_t sss_krb5_precreate_ccache(const char *ccname, pcre *illegal_re, uid_t uid, gid_t gid); errno_t sss_krb5_cc_destroy(const char *ccname, uid_t uid, gid_t gid); diff --git a/src/providers/krb5/krb5_become_user.c b/src/util/become_user.c index 6ddb35a56..b5f94f993 100644 --- a/src/providers/krb5/krb5_become_user.c +++ b/src/util/become_user.c @@ -23,7 +23,6 @@ */ #include "util/util.h" -#include "providers/krb5/krb5_utils.h" #include <grp.h> errno_t become_user(uid_t uid, gid_t gid) diff --git a/src/util/util.h b/src/util/util.h index 482a660e7..c497f605b 100644 --- a/src/util/util.h +++ b/src/util/util.h @@ -580,4 +580,13 @@ char * sss_reverse_replace_space(TALLOC_CTX *mem_ctx, const char *orig_name, const char replace_char); +/* from become_user.c */ +errno_t become_user(uid_t uid, gid_t gid); +struct sss_creds; +errno_t switch_creds(TALLOC_CTX *mem_ctx, + uid_t uid, gid_t gid, + int num_gids, gid_t *gids, + struct sss_creds **saved_creds); +errno_t restore_creds(struct sss_creds *saved_creds); + #endif /* __SSSD_UTIL_H__ */ |