summaryrefslogtreecommitdiff
path: root/src/providers/ipa/ipa_selinux.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/providers/ipa/ipa_selinux.h')
-rw-r--r--src/providers/ipa/ipa_selinux.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/providers/ipa/ipa_selinux.h b/src/providers/ipa/ipa_selinux.h
index 60c22110..0f3fadd3 100644
--- a/src/providers/ipa/ipa_selinux.h
+++ b/src/providers/ipa/ipa_selinux.h
@@ -27,6 +27,13 @@
#include "providers/ldap/ldap_common.h"
+#ifdef HAVE_SELINUX_LOGIN_DIR
+
+#define ALL_SERVICES "*"
+#define selogin_path(mem_ctx, username) \
+ talloc_asprintf(mem_ctx, "%s/logins/%s", selinux_policy_root(), username)
+#endif
+
struct ipa_selinux_ctx {
struct ipa_id_ctx *id_ctx;