#include "sysincludes.h"#include "msdos.h"#include "mtools.h"Include dependency graph for privileges.c:

Go to the source code of this file.
Functions | |
| static void | print_privs (const char *message) |
| static void | Setuid (uid_t uid) |
| void | reclaim_privs (void) |
| void | drop_privs (void) |
| void | destroy_privs (void) |
| uid_t | get_real_uid (void) |
| void | init_privs (void) |
| void | closeExec (int fd) |
Variables | |
| int | noPrivileges = 0 |
| static gid_t | rgid |
| static gid_t | egid |
| static uid_t | ruid |
| static uid_t | euid |
|
|
Definition at line 161 of file privileges.c. References F_SETFD, and fcntl. Referenced by SimpleFileOpen(). |
|
|
Definition at line 83 of file privileges.c. References drop_privs(), euid, print_privs(), ruid, seteuid, and setuid. Referenced by main(), and safePopenOut(). |
|
|
Definition at line 76 of file privileges.c. References print_privs(), rgid, ruid, setgid, and Setuid(). Referenced by destroy_privs(), init_privs(), main(), scsi_io(), and SimpleFileOpen(). |
|
|
Definition at line 111 of file privileges.c. References ruid. |
|
|
Definition at line 116 of file privileges.c. References drop_privs(), egid, euid, exit(), fprintf(), getegid, geteuid, getgid, getuid, print_privs(), rgid, ruid, setuid, and stderr. Referenced by main(). |
|
|
Definition at line 18 of file privileges.c. References fprintf(), getegid, geteuid, getgid, getuid, and stderr. Referenced by destroy_privs(), drop_privs(), init_privs(), and reclaim_privs(). |
|
|
Definition at line 67 of file privileges.c. References egid, euid, noPrivileges, print_privs(), setgid, and Setuid(). Referenced by main(), scsi_io(), and SimpleFileOpen(). |
|
|
Definition at line 50 of file privileges.c. References euid, ruid, seteuid, and setuid. Referenced by drop_privs(), and reclaim_privs(). |
|
|
Definition at line 30 of file privileges.c. Referenced by df(), init_privs(), main(), and reclaim_privs(). |
|
|
Definition at line 31 of file privileges.c. Referenced by destroy_privs(), df(), init_privs(), main(), reclaim_privs(), Setuid(), and test11c(). |
|
|
Definition at line 27 of file privileges.c. Referenced by mcat(), and reclaim_privs(). |
|
|
Definition at line 30 of file privileges.c. Referenced by df(), drop_privs(), init_privs(), and main(). |
|
|
Definition at line 31 of file privileges.c. Referenced by destroy_privs(), df(), drop_privs(), get_real_uid(), init_privs(), main(), Setuid(), and test11c(). |
1.4.6