diff options
author | mouring <mouring> | 2001-04-08 18:26:59 +0000 |
---|---|---|
committer | mouring <mouring> | 2001-04-08 18:26:59 +0000 |
commit | 2abe03b075ded20f848b168b19c688ba3bf86606 (patch) | |
tree | 47055bf29273b1c063f1fbd8bf5a3df331993450 /uidswap.h | |
parent | ab2a4ba429ca007648f8249277d2d7290411a85e (diff) | |
download | openssh-2abe03b075ded20f848b168b19c688ba3bf86606.tar.gz |
- 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 @@ -/* $OpenBSD: uidswap.h,v 1.6 2001/01/29 01:58:19 niklas Exp $ */ +/* $OpenBSD: uidswap.h,v 1.7 2001/04/06 21:00:17 markus Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> @@ -19,7 +19,7 @@ * Temporarily changes to the given uid. If the effective user id is not * root, this does nothing. This call cannot be nested. */ -void temporarily_use_uid(uid_t uid); +void temporarily_use_uid(struct passwd *pw); /* * Restores the original effective user id after temporarily_use_uid(). @@ -31,6 +31,6 @@ void restore_uid(void); * Permanently sets all uids to the given uid. This cannot be called while * temporarily_use_uid is effective. This must also clear any saved uids. */ -void permanently_set_uid(uid_t uid); +void permanently_set_uid(struct passwd *pw); #endif /* UIDSWAP_H */ |