From be6478d45d2d5c57bc30ca83d14b7b1ef6ed5ce6 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Fri, 27 Oct 2006 10:42:44 +0000 Subject: Incorporate Manoj's NMU: * NMU to update SELinux patch, bringing it in line with current selinux releases. The patch for this NMU is simply the Bug#394795 patch, and no other changes. (closes: #394795) --- monitor_wrap.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'monitor_wrap.c') diff --git a/monitor_wrap.c b/monitor_wrap.c index 6749d3f93..29cafc751 100644 --- a/monitor_wrap.c +++ b/monitor_wrap.c @@ -272,6 +272,23 @@ mm_inform_authserv(char *service, char *style, char *role) buffer_free(&m); } +/* Inform the privileged process about role */ + +void +mm_inform_authrole(char *role) +{ + Buffer m; + + debug3("%s entering", __func__); + + buffer_init(&m); + buffer_put_cstring(&m, role ? role : ""); + + mm_request_send(pmonitor->m_recvfd, MONITOR_REQ_AUTHROLE, &m); + + buffer_free(&m); +} + /* Do the password authentication */ int mm_auth_password(Authctxt *authctxt, char *password) -- cgit v1.2.3