summaryrefslogtreecommitdiff
path: root/uidswap.h
diff options
context:
space:
mode:
Diffstat (limited to 'uidswap.h')
-rw-r--r--uidswap.h22
1 files changed, 4 insertions, 18 deletions
diff --git a/uidswap.h b/uidswap.h
index 9aea88367..0726980d0 100644
--- a/uidswap.h
+++ b/uidswap.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: uidswap.h,v 1.8 2001/06/26 06:33:06 itojun Exp $ */ 1/* $OpenBSD: uidswap.h,v 1.9 2001/06/26 17:27:25 markus Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -15,22 +15,8 @@
15#ifndef UIDSWAP_H 15#ifndef UIDSWAP_H
16#define UIDSWAP_H 16#define UIDSWAP_H
17 17
18/* 18void temporarily_use_uid(struct passwd *);
19 * Temporarily changes to the given uid. If the effective user id is not 19void restore_uid(void);
20 * root, this does nothing. This call cannot be nested. 20void permanently_set_uid(struct passwd *);
21 */
22void temporarily_use_uid(struct passwd *);
23
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 */
28void restore_uid(void);
29
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 */
34void permanently_set_uid(struct passwd *);
35 21
36#endif /* UIDSWAP_H */ 22#endif /* UIDSWAP_H */