From 9c124af8868a7d3908c03ec369e28daef17d5f12 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Tue, 30 Mar 2010 15:26:58 +0200 Subject: SELinux login management Adds a new option -Z to sss_useradd and sss_usermod. This option allows user to specify the SELinux login context for the user. On deleting the user with sss_userdel, the login mapping is deleted, so subsequent adding of the same user would result in the default login context unless -Z is specified again. MLS security is not supported as of this patch. --- src/tools/tools_util.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/tools/tools_util.h') diff --git a/src/tools/tools_util.h b/src/tools/tools_util.h index 2ac18535b..ac8828684 100644 --- a/src/tools/tools_util.h +++ b/src/tools/tools_util.h @@ -115,5 +115,7 @@ int flush_nscd_cache(TALLOC_CTX *mem_ctx, enum nscd_db flush_db); /* from selinux.c */ int selinux_file_context(const char *dst_name); int reset_selinux_file_context(void); +int set_seuser(const char *login_name, const char *seuser_name); +int del_seuser(const char *login_name); #endif /* __TOOLS_UTIL_H__ */ -- cgit