diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-04-08 18:26:59 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-04-08 18:26:59 +0000 |
commit | 3fcf1a22b52ed8e66d2cf548d5d4528f67377af9 (patch) | |
tree | b635cae14328f373bb682395ab066ee819dd77c4 /auth-rh-rsa.c | |
parent | d344763643339b5ddc075cf7b8c8fb4404dc0aa0 (diff) |
- markus@cvs.openbsd.org 2001/04/06 21:00:17
[auth-rh-rsa.c auth-rhosts.c auth-rsa.c auth2.c channels.c session.c
ssh.c sshconnect.c sshconnect.h uidswap.c uidswap.h]
do gid/groups-swap in addition to uid-swap, should help if /home/group
is chmod 750 + chgrp grp /home/group/, work be deraadt and me, thanks
to olar@openwall.com is comments. we had many requests for this.
Diffstat (limited to 'auth-rh-rsa.c')
-rw-r--r-- | auth-rh-rsa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/auth-rh-rsa.c b/auth-rh-rsa.c index 0edbdb5f3..506a5a239 100644 --- a/auth-rh-rsa.c +++ b/auth-rh-rsa.c | |||
@@ -13,7 +13,7 @@ | |||
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include "includes.h" | 15 | #include "includes.h" |
16 | RCSID("$OpenBSD: auth-rh-rsa.c,v 1.22 2001/02/03 10:08:36 markus Exp $"); | 16 | RCSID("$OpenBSD: auth-rh-rsa.c,v 1.23 2001/04/06 21:00:04 markus Exp $"); |
17 | 17 | ||
18 | #include "packet.h" | 18 | #include "packet.h" |
19 | #include "xmalloc.h" | 19 | #include "xmalloc.h" |
@@ -80,7 +80,7 @@ auth_rhosts_rsa(struct passwd *pw, const char *client_user, RSA *client_host_key | |||
80 | pw->pw_name, user_hostfile); | 80 | pw->pw_name, user_hostfile); |
81 | } else { | 81 | } else { |
82 | /* XXX race between stat and the following open() */ | 82 | /* XXX race between stat and the following open() */ |
83 | temporarily_use_uid(pw->pw_uid); | 83 | temporarily_use_uid(pw); |
84 | host_status = check_host_in_hostfile(user_hostfile, canonical_hostname, | 84 | host_status = check_host_in_hostfile(user_hostfile, canonical_hostname, |
85 | client_key, found, NULL); | 85 | client_key, found, NULL); |
86 | restore_uid(); | 86 | restore_uid(); |