blob: 600f00943e754911308a0cb0371bbe8faa602a18 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/* See LICENSE file for copyright and license details. */
#include <sys/prctl.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <ctype.h>
#include <errno.h>
#include <limits.h>
#include <pwd.h>
#include <shadow.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <libenv.h>
#include "arg.h"
#ifndef RETRY_SLEEP
# define RETRY_SLEEP 1
#endif
#define EXIT_ERROR 125
#define EXIT_EXEC 126
#define EXIT_NOENT 127
#if defined(__GNUC__)
# define NORETURN __attribute__((__noreturn__))
#else
# define NORETURN
#endif
extern char *command_str;
NORETURN void usage(void);
void parse_cmdline(int argc, char **argv);
char *get_user_and_host(const char *prefix, const char *suffix);
int check_passphrase(const char *passphrase, void (*block_callback)(void));
void start_gasroot_setuid(char **argv);
void wipe_(void *textptr);
static inline void
wipe(char *text)
{
wipe_(&text);
}
|