]> andersk Git - openssh.git/blobdiff - auth-sia.c
- (tim) [configure.ac auth.c defines.h session.c openbsd-compat/port-uw.c
[openssh.git] / auth-sia.c
index cdd39d670a0cbc0c064ee25a6d4cc7f0efe1af9b..af7182b4834eb8c22ab9e08f7acb60067a680699 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, const 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.228542 seconds and 4 git commands to generate.