]> andersk Git - openssh.git/blobdiff - auth-sia.c
- (tim) [regress/README.regress] Document ssh-rand-helper issue. ok bal
[openssh.git] / auth-sia.c
index cdd39d670a0cbc0c064ee25a6d4cc7f0efe1af9b..63f55d07f2d18943ed795d261209a1547617c552 100644 (file)
@@ -31,6 +31,7 @@
 #include "log.h"
 #include "servconf.h"
 #include "canohost.h"
+#include "uidswap.h"
 
 #include <sia.h>
 #include <siad.h>
@@ -46,7 +47,7 @@ extern int saved_argc;
 extern char **saved_argv;
 
 int
-auth_sia_password(Authctxt *authctxt, char *pass)
+sys_auth_passwd(Authctxt *authctxt, char *pass)
 {
        int ret;
        SIAENTITY *ent = NULL;
@@ -103,8 +104,8 @@ session_setup_sia(struct passwd *pw, char *tty)
 
        sia_ses_release(&ent);
 
-       if (setreuid(geteuid(), geteuid()) < 0)
-               fatal("setreuid: %s", strerror(errno));
+       setuid(0);
+       permanently_set_uid(pw);
 }
 
 #endif /* HAVE_OSF_SIA */
This page took 0.03588 seconds and 4 git commands to generate.