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 /uidswap.h | |
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 'uidswap.h')
-rw-r--r-- | uidswap.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: uidswap.h,v 1.6 2001/01/29 01:58:19 niklas Exp $ */ | 1 | /* $OpenBSD: uidswap.h,v 1.7 2001/04/06 21:00:17 markus Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -19,7 +19,7 @@ | |||
19 | * Temporarily changes to the given uid. If the effective user id is not | 19 | * Temporarily changes to the given uid. If the effective user id is not |
20 | * root, this does nothing. This call cannot be nested. | 20 | * root, this does nothing. This call cannot be nested. |
21 | */ | 21 | */ |
22 | void temporarily_use_uid(uid_t uid); | 22 | void temporarily_use_uid(struct passwd *pw); |
23 | 23 | ||
24 | /* | 24 | /* |
25 | * Restores the original effective user id after temporarily_use_uid(). | 25 | * Restores the original effective user id after temporarily_use_uid(). |
@@ -31,6 +31,6 @@ void restore_uid(void); | |||
31 | * Permanently sets all uids to the given uid. This cannot be called while | 31 | * Permanently sets all uids to the given uid. This cannot be called while |
32 | * temporarily_use_uid is effective. This must also clear any saved uids. | 32 | * temporarily_use_uid is effective. This must also clear any saved uids. |
33 | */ | 33 | */ |
34 | void permanently_set_uid(uid_t uid); | 34 | void permanently_set_uid(struct passwd *pw); |
35 | 35 | ||
36 | #endif /* UIDSWAP_H */ | 36 | #endif /* UIDSWAP_H */ |