summaryrefslogtreecommitdiff
path: root/monitor.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.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.c')
-rw-r--r--monitor.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/monitor.c b/monitor.c
index 9dca9c803..c751179b5 100644
--- a/monitor.c
+++ b/monitor.c
@@ -659,14 +659,20 @@ mm_answer_authserv(int sock, Buffer *m)
659 659
660 authctxt->service = buffer_get_string(m, NULL); 660 authctxt->service = buffer_get_string(m, NULL);
661 authctxt->style = buffer_get_string(m, NULL); 661 authctxt->style = buffer_get_string(m, NULL);
662 debug3("%s: service=%s, style=%s", 662 authctxt->role = buffer_get_string(m, NULL);
663 __func__, authctxt->service, authctxt->style); 663 debug3("%s: service=%s, style=%s, role=%s",
664 __func__, authctxt->service, authctxt->style, authctxt->role);
664 665
665 if (strlen(authctxt->style) == 0) { 666 if (strlen(authctxt->style) == 0) {
666 xfree(authctxt->style); 667 xfree(authctxt->style);
667 authctxt->style = NULL; 668 authctxt->style = NULL;
668 } 669 }
669 670
671 if (strlen(authctxt->role) == 0) {
672 xfree(authctxt->role);
673 authctxt->role = NULL;
674 }
675
670 return (0); 676 return (0);
671} 677}
672 678