51 |
/* Clear dangerous stuff, set PATH */ |
/* Clear dangerous stuff, set PATH */ |
52 |
sanitize_env_if_suid(); |
sanitize_env_if_suid(); |
53 |
|
|
54 |
// bb_askpass() already handles this |
// bb_ask() already handles this |
55 |
// signal(SIGALRM, catchalarm); |
// signal(SIGALRM, catchalarm); |
56 |
|
|
57 |
pwd = getpwuid(0); |
pwd = getpwuid(0); |
77 |
int r; |
int r; |
78 |
|
|
79 |
/* cp points to a static buffer that is zeroed every time */ |
/* cp points to a static buffer that is zeroed every time */ |
80 |
cp = bb_askpass(timeout, |
cp = bb_ask(STDIN_FILENO, timeout, |
81 |
"Give root password for system maintenance\n" |
"Give root password for system maintenance\n" |
82 |
"(or type Control-D for normal startup):"); |
"(or type Control-D for normal startup):"); |
83 |
|
|
99 |
|
|
100 |
bb_info_msg("System Maintenance Mode"); |
bb_info_msg("System Maintenance Mode"); |
101 |
|
|
102 |
USE_SELINUX(renew_current_security_context()); |
IF_SELINUX(renew_current_security_context()); |
103 |
|
|
104 |
shell = getenv("SUSHELL"); |
shell = getenv("SUSHELL"); |
105 |
if (!shell) |
if (!shell) |