rename _BB_SUID_ALWAYS and NEVER into REQUIRE and DROP. No code changes.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2009-07-30 12:57:19 +02:00
parent be116490d6
commit 6d48d3ee2a
4 changed files with 355 additions and 355 deletions

View File

@@ -569,12 +569,12 @@ static void check_suid(int applet_no)
#endif
check_need_suid:
#endif
if (APPLET_SUID(applet_no) == _BB_SUID_ALWAYS) {
if (APPLET_SUID(applet_no) == _BB_SUID_REQUIRE) {
/* Real uid is not 0. If euid isn't 0 too, suid bit
* is most probably not set on our executable */
if (geteuid())
bb_error_msg_and_die("must be suid to work properly");
} else if (APPLET_SUID(applet_no) == _BB_SUID_NEVER) {
} else if (APPLET_SUID(applet_no) == _BB_SUID_DROP) {
xsetgid(rgid); /* drop all privileges */
xsetuid(ruid);
}