summaryrefslogtreecommitdiff
path: root/monitor_wrap.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2005-06-17 12:44:30 +0000
committerColin Watson <cjwatson@debian.org>2005-06-17 12:44:30 +0000
commit4c2d1c67cea075107aadaa6d81fe456687c69e67 (patch)
tree4f31813c8306491c908948bd75254912385ed651 /monitor_wrap.c
parentbed4bb0fe9380912ecb90e5f918bce8825ec0a38 (diff)
Manoj Srivastava:
- Added SELinux capability, and turned it on be default. Added restorecon calls in preinst and postinst (should not matter if the machine is not SELinux aware). By and large, the changes made should have no effect unless the rules file calls --with-selinux; and even then there should be no performance hit for machines not actively running SELinux. - Modified the preinst and postinst to call restorecon to set the security context for the generated public key files. - Added a comment to /etc/pam.d/ssh to indicate that an SELinux system may want to also include pam_selinux.so.
Diffstat (limited to 'monitor_wrap.c')
-rw-r--r--monitor_wrap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/monitor_wrap.c b/monitor_wrap.c
index e1b6512b4..e005a4505 100644
--- a/monitor_wrap.c
+++ b/monitor_wrap.c
@@ -257,10 +257,10 @@ mm_auth2_read_banner(void)
257 return (banner); 257 return (banner);
258} 258}
259 259
260/* Inform the privileged process about service and style */ 260/* Inform the privileged process about service, style, and role */
261 261
262void 262void
263mm_inform_authserv(char *service, char *style) 263mm_inform_authserv(char *service, char *style, char *role)
264{ 264{
265 Buffer m; 265 Buffer m;
266 266
@@ -269,6 +269,7 @@ mm_inform_authserv(char *service, char *style)
269 buffer_init(&m); 269 buffer_init(&m);
270 buffer_put_cstring(&m, service); 270 buffer_put_cstring(&m, service);
271 buffer_put_cstring(&m, style ? style : ""); 271 buffer_put_cstring(&m, style ? style : "");
272 buffer_put_cstring(&m, role ? role : "");
272 273
273 mm_request_send(pmonitor->m_recvfd, MONITOR_REQ_AUTHSERV, &m); 274 mm_request_send(pmonitor->m_recvfd, MONITOR_REQ_AUTHSERV, &m);
274 275