]> andersk Git - openssh.git/blame - uidswap.h
- markus@cvs.openbsd.org 2001/04/06 21:00:17
[openssh.git] / uidswap.h
CommitLineData
63bd8c36 1/* $OpenBSD: uidswap.h,v 1.7 2001/04/06 21:00:17 markus Exp $ */
23c2a7a5 2
8efc0c15 3/*
5260325f 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
5260325f 5 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
6 * All rights reserved
6ae2364d 7 *
bcbf86ec 8 * As far as I am concerned, the code I have written for this software
9 * can be used freely for any purpose. Any derived versions of this
10 * software must be clearly marked as such, and if the derived work is
11 * incompatible with the protocol description in the RFC file, it must be
12 * called by a name other than "ssh" or "Secure Shell".
5260325f 13 */
8efc0c15 14
15#ifndef UIDSWAP_H
16#define UIDSWAP_H
17
5260325f 18/*
19 * Temporarily changes to the given uid. If the effective user id is not
20 * root, this does nothing. This call cannot be nested.
21 */
63bd8c36 22void temporarily_use_uid(struct passwd *pw);
8efc0c15 23
5260325f 24/*
25 * Restores the original effective user id after temporarily_use_uid().
26 * This should only be called while temporarily_use_uid is effective.
27 */
1e3b8b07 28void restore_uid(void);
8efc0c15 29
5260325f 30/*
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.
33 */
63bd8c36 34void permanently_set_uid(struct passwd *pw);
8efc0c15 35
5260325f 36#endif /* UIDSWAP_H */
This page took 0.120211 seconds and 5 git commands to generate.