Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

Location:
branches/3.3
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi-busybox/include/applets.src.h

    r3232 r3621  
    99/*
    1010name  - applet name as it is typed on command line
    11 name2 - applet name, converted to C (ether-wake: name2 = ether_wake)
     11help  - applet name, converted to C (ether-wake: help = ether_wake)
    1212main  - corresponding <applet>_main to call (bzcat: main = bunzip2)
    1313l     - location to install link to: [/usr]/[s]bin
     
    2525#if defined(PROTOTYPES)
    2626# define APPLET(name,l,s)                    int name##_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
    27 # define APPLET_ODDNAME(name,main,l,s,name2) int main##_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
    28 # define APPLET_NOEXEC(name,main,l,s,name2)  int main##_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
    29 # define APPLET_NOFORK(name,main,l,s,name2)  int main##_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
    30 
    31 #elif defined(NAME_MAIN_CNAME)
    32 # define APPLET(name,l,s)                    name name##_main name
    33 # define APPLET_ODDNAME(name,main,l,s,name2) name main##_main name2
    34 # define APPLET_NOEXEC(name,main,l,s,name2)  name main##_main name2
    35 # define APPLET_NOFORK(name,main,l,s,name2)  name main##_main name2
     27# define APPLET_ODDNAME(name,main,l,s,help) int main##_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
     28# define APPLET_NOEXEC(name,main,l,s,help)   int main##_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
     29# define APPLET_NOFORK(name,main,l,s,help)   int main##_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
     30
     31#elif defined(NAME_MAIN)
     32# define APPLET(name,l,s)                    name name##_main
     33# define APPLET_ODDNAME(name,main,l,s,help)  name main##_main
     34# define APPLET_NOEXEC(name,main,l,s,help)   name main##_main
     35# define APPLET_NOFORK(name,main,l,s,help)   name main##_main
    3636
    3737#elif defined(MAKE_USAGE) && ENABLE_FEATURE_VERBOSE_USAGE
    3838# define APPLET(name,l,s)                    MAKE_USAGE(#name, name##_trivial_usage name##_full_usage)
    39 # define APPLET_ODDNAME(name,main,l,s,name2) MAKE_USAGE(#name, name2##_trivial_usage name2##_full_usage)
    40 # define APPLET_NOEXEC(name,main,l,s,name2)  MAKE_USAGE(#name, name2##_trivial_usage name2##_full_usage)
    41 # define APPLET_NOFORK(name,main,l,s,name2)  MAKE_USAGE(#name, name2##_trivial_usage name2##_full_usage)
     39# define APPLET_ODDNAME(name,main,l,s,help)  MAKE_USAGE(#name, help##_trivial_usage help##_full_usage)
     40# define APPLET_NOEXEC(name,main,l,s,help)   MAKE_USAGE(#name, help##_trivial_usage help##_full_usage)
     41# define APPLET_NOFORK(name,main,l,s,help)   MAKE_USAGE(#name, help##_trivial_usage help##_full_usage)
    4242
    4343#elif defined(MAKE_USAGE) && !ENABLE_FEATURE_VERBOSE_USAGE
    4444# define APPLET(name,l,s)                    MAKE_USAGE(#name, name##_trivial_usage)
    45 # define APPLET_ODDNAME(name,main,l,s,name2) MAKE_USAGE(#name, name2##_trivial_usage)
    46 # define APPLET_NOEXEC(name,main,l,s,name2)  MAKE_USAGE(#name, name2##_trivial_usage)
    47 # define APPLET_NOFORK(name,main,l,s,name2)  MAKE_USAGE(#name, name2##_trivial_usage)
     45# define APPLET_ODDNAME(name,main,l,s,help)  MAKE_USAGE(#name, help##_trivial_usage)
     46# define APPLET_NOEXEC(name,main,l,s,help)   MAKE_USAGE(#name, help##_trivial_usage)
     47# define APPLET_NOFORK(name,main,l,s,help)   MAKE_USAGE(#name, help##_trivial_usage)
    4848
    4949#elif defined(MAKE_LINKS)
    5050# define APPLET(name,l,c)                    LINK l name
    51 # define APPLET_ODDNAME(name,main,l,s,name2) LINK l name
    52 # define APPLET_NOEXEC(name,main,l,s,name2)  LINK l name
    53 # define APPLET_NOFORK(name,main,l,s,name2)  LINK l name
     51# define APPLET_ODDNAME(name,main,l,s,help)  LINK l name
     52# define APPLET_NOEXEC(name,main,l,s,help)   LINK l name
     53# define APPLET_NOFORK(name,main,l,s,help)   LINK l name
     54
     55#elif defined(MAKE_SUID)
     56# define APPLET(name,l,s)                    SUID s l name
     57# define APPLET_ODDNAME(name,main,l,s,help)  SUID s l name
     58# define APPLET_NOEXEC(name,main,l,s,help)   SUID s l name
     59# define APPLET_NOFORK(name,main,l,s,help)   SUID s l name
    5460
    5561#else
    5662  static struct bb_applet applets[] = { /*    name, main, location, need_suid */
    5763# define APPLET(name,l,s)                    { #name, #name, l, s },
    58 # define APPLET_ODDNAME(name,main,l,s,name2) { #name, #main, l, s },
    59 # define APPLET_NOEXEC(name,main,l,s,name2)  { #name, #main, l, s, 1 },
    60 # define APPLET_NOFORK(name,main,l,s,name2)  { #name, #main, l, s, 1, 1 },
     64# define APPLET_ODDNAME(name,main,l,s,help) { #name, #main, l, s },
     65# define APPLET_NOEXEC(name,main,l,s,help)   { #name, #main, l, s, 1 },
     66# define APPLET_NOFORK(name,main,l,s,help)   { #name, #main, l, s, 1, 1 },
    6167#endif
    6268
     
    7177IF_TEST(APPLET_NOFORK([[, test, BB_DIR_USR_BIN, BB_SUID_DROP, test))
    7278IF_ACPID(APPLET(acpid, BB_DIR_SBIN, BB_SUID_DROP))
    73 IF_ADDGROUP(APPLET(addgroup, BB_DIR_USR_SBIN, BB_SUID_DROP))
    74 IF_ADDUSER(APPLET(adduser, BB_DIR_USR_SBIN, BB_SUID_DROP))
    7579IF_ADJTIMEX(APPLET(adjtimex, BB_DIR_SBIN, BB_SUID_DROP))
    76 IF_AR(APPLET(ar, BB_DIR_USR_BIN, BB_SUID_DROP))
    7780IF_ARP(APPLET(arp, BB_DIR_SBIN, BB_SUID_DROP))
    7881IF_ARPING(APPLET(arping, BB_DIR_USR_SBIN, BB_SUID_DROP))
    79 IF_AWK(APPLET_NOEXEC(awk, awk, BB_DIR_USR_BIN, BB_SUID_DROP, awk))
    8082IF_BASENAME(APPLET_NOFORK(basename, basename, BB_DIR_USR_BIN, BB_SUID_DROP, basename))
    8183IF_BBCONFIG(APPLET(bbconfig, BB_DIR_BIN, BB_SUID_DROP))
     
    8385IF_BLKID(APPLET(blkid, BB_DIR_SBIN, BB_SUID_DROP))
    8486IF_BRCTL(APPLET(brctl, BB_DIR_USR_SBIN, BB_SUID_DROP))
    85 IF_BZIP2(APPLET(bzip2, BB_DIR_USR_BIN, BB_SUID_DROP))
    8687IF_CAL(APPLET(cal, BB_DIR_USR_BIN, BB_SUID_DROP))
    8788IF_CAT(APPLET_NOFORK(cat, cat, BB_DIR_BIN, BB_SUID_DROP, cat))
    8889IF_CATV(APPLET(catv, BB_DIR_BIN, BB_SUID_DROP))
    8990IF_CHAT(APPLET(chat, BB_DIR_USR_SBIN, BB_SUID_DROP))
    90 IF_CHATTR(APPLET(chattr, BB_DIR_BIN, BB_SUID_DROP))
    9191IF_CHCON(APPLET(chcon, BB_DIR_USR_BIN, BB_SUID_DROP))
    9292IF_CHGRP(APPLET_NOEXEC(chgrp, chgrp, BB_DIR_BIN, BB_SUID_DROP, chgrp))
    9393IF_CHMOD(APPLET_NOEXEC(chmod, chmod, BB_DIR_BIN, BB_SUID_DROP, chmod))
    9494IF_CHOWN(APPLET_NOEXEC(chown, chown, BB_DIR_BIN, BB_SUID_DROP, chown))
    95 IF_CHPASSWD(APPLET(chpasswd, BB_DIR_USR_SBIN, BB_SUID_DROP))
    96 IF_CHPST(APPLET(chpst, BB_DIR_USR_BIN, BB_SUID_DROP))
    9795IF_CHROOT(APPLET(chroot, BB_DIR_USR_SBIN, BB_SUID_DROP))
    9896IF_CHRT(APPLET(chrt, BB_DIR_USR_BIN, BB_SUID_DROP))
     
    10098IF_CKSUM(APPLET_NOEXEC(cksum, cksum, BB_DIR_USR_BIN, BB_SUID_DROP, cksum))
    10199IF_CLEAR(APPLET(clear, BB_DIR_USR_BIN, BB_SUID_DROP))
    102 IF_CMP(APPLET(cmp, BB_DIR_USR_BIN, BB_SUID_DROP))
    103100IF_COMM(APPLET(comm, BB_DIR_USR_BIN, BB_SUID_DROP))
    104101IF_CP(APPLET_NOEXEC(cp, cp, BB_DIR_BIN, BB_SUID_DROP, cp))
    105 IF_CPIO(APPLET(cpio, BB_DIR_BIN, BB_SUID_DROP))
    106 IF_CROND(APPLET(crond, BB_DIR_USR_SBIN, BB_SUID_DROP))
    107102/* Needs to be run by root or be suid root - needs to change /var/spool/cron* files: */
    108103IF_CRONTAB(APPLET(crontab, BB_DIR_USR_BIN, BB_SUID_REQUIRE))
    109 IF_CRYPTPW(APPLET(cryptpw, BB_DIR_USR_BIN, BB_SUID_DROP))
    110104IF_CUT(APPLET_NOEXEC(cut, cut, BB_DIR_USR_BIN, BB_SUID_DROP, cut))
    111105IF_DC(APPLET(dc, BB_DIR_USR_BIN, BB_SUID_DROP))
    112106IF_DD(APPLET_NOEXEC(dd, dd, BB_DIR_BIN, BB_SUID_DROP, dd))
    113107IF_DEALLOCVT(APPLET(deallocvt, BB_DIR_USR_BIN, BB_SUID_DROP))
    114 IF_DELGROUP(APPLET_ODDNAME(delgroup, deluser, BB_DIR_USR_SBIN, BB_SUID_DROP, delgroup))
    115 IF_DELUSER(APPLET(deluser, BB_DIR_USR_SBIN, BB_SUID_DROP))
    116108IF_DEVFSD(APPLET(devfsd, BB_DIR_SBIN, BB_SUID_DROP))
    117109IF_DEVMEM(APPLET(devmem, BB_DIR_SBIN, BB_SUID_DROP))
    118110IF_DF(APPLET(df, BB_DIR_BIN, BB_SUID_DROP))
    119111IF_DHCPRELAY(APPLET(dhcprelay, BB_DIR_USR_SBIN, BB_SUID_DROP))
    120 IF_DIFF(APPLET(diff, BB_DIR_USR_BIN, BB_SUID_DROP))
    121112IF_DIRNAME(APPLET_NOFORK(dirname, dirname, BB_DIR_USR_BIN, BB_SUID_DROP, dirname))
    122113IF_DMESG(APPLET(dmesg, BB_DIR_BIN, BB_SUID_DROP))
     
    124115IF_HOSTNAME(APPLET_ODDNAME(dnsdomainname, hostname, BB_DIR_BIN, BB_SUID_DROP, dnsdomainname))
    125116IF_DOS2UNIX(APPLET_NOEXEC(dos2unix, dos2unix, BB_DIR_USR_BIN, BB_SUID_DROP, dos2unix))
    126 IF_DPKG(APPLET(dpkg, BB_DIR_USR_BIN, BB_SUID_DROP))
    127 IF_DPKG_DEB(APPLET_ODDNAME(dpkg-deb, dpkg_deb, BB_DIR_USR_BIN, BB_SUID_DROP, dpkg_deb))
    128117IF_DU(APPLET(du, BB_DIR_USR_BIN, BB_SUID_DROP))
    129118IF_DUMPKMAP(APPLET(dumpkmap, BB_DIR_BIN, BB_SUID_DROP))
     
    132121//IF_E2LABEL(APPLET_ODDNAME(e2label, tune2fs, BB_DIR_SBIN, BB_SUID_DROP, e2label))
    133122IF_ECHO(APPLET_NOFORK(echo, echo, BB_DIR_BIN, BB_SUID_DROP, echo))
    134 IF_ED(APPLET(ed, BB_DIR_BIN, BB_SUID_DROP))
    135123IF_EJECT(APPLET(eject, BB_DIR_USR_BIN, BB_SUID_DROP))
    136124IF_ENV(APPLET_NOEXEC(env, env, BB_DIR_USR_BIN, BB_SUID_DROP, env))
    137 IF_ENVDIR(APPLET_ODDNAME(envdir, chpst, BB_DIR_USR_BIN, BB_SUID_DROP, envdir))
    138 IF_ENVUIDGID(APPLET_ODDNAME(envuidgid, chpst, BB_DIR_USR_BIN, BB_SUID_DROP, envuidgid))
    139125IF_ETHER_WAKE(APPLET_ODDNAME(ether-wake, ether_wake, BB_DIR_USR_SBIN, BB_SUID_DROP, ether_wake))
    140126IF_EXPAND(APPLET(expand, BB_DIR_USR_BIN, BB_SUID_DROP))
     
    158144IF_FREE(APPLET(free, BB_DIR_USR_BIN, BB_SUID_DROP))
    159145IF_FREERAMDISK(APPLET(freeramdisk, BB_DIR_SBIN, BB_SUID_DROP))
    160 IF_FSCK(APPLET(fsck, BB_DIR_SBIN, BB_SUID_DROP))
    161146//IF_E2FSCK(APPLET_ODDNAME(fsck.ext2, e2fsck, BB_DIR_SBIN, BB_SUID_DROP, fsck_ext2))
    162147//IF_E2FSCK(APPLET_ODDNAME(fsck.ext3, e2fsck, BB_DIR_SBIN, BB_SUID_DROP, fsck_ext3))
     
    170155IF_GETOPT(APPLET(getopt, BB_DIR_BIN, BB_SUID_DROP))
    171156IF_GETSEBOOL(APPLET(getsebool, BB_DIR_USR_SBIN, BB_SUID_DROP))
    172 IF_GETTY(APPLET(getty, BB_DIR_SBIN, BB_SUID_DROP))
    173 IF_GUNZIP(APPLET(gunzip, BB_DIR_BIN, BB_SUID_DROP))
    174 IF_GZIP(APPLET(gzip, BB_DIR_BIN, BB_SUID_DROP))
    175157IF_HD(APPLET_NOEXEC(hd, hexdump, BB_DIR_USR_BIN, BB_SUID_DROP, hd))
    176158IF_HDPARM(APPLET(hdparm, BB_DIR_SBIN, BB_SUID_DROP))
     
    208190IF_KILLALL(APPLET_ODDNAME(killall, kill, BB_DIR_USR_BIN, BB_SUID_DROP, killall))
    209191IF_KILLALL5(APPLET_ODDNAME(killall5, kill, BB_DIR_USR_SBIN, BB_SUID_DROP, killall5))
    210 IF_KLOGD(APPLET(klogd, BB_DIR_SBIN, BB_SUID_DROP))
    211192IF_LAST(APPLET(last, BB_DIR_USR_BIN, BB_SUID_DROP))
    212193//IF_LENGTH(APPLET_NOFORK(length, length, BB_DIR_USR_BIN, BB_SUID_DROP, length))
    213194IF_LESS(APPLET(less, BB_DIR_USR_BIN, BB_SUID_DROP))
    214 IF_SETARCH(APPLET_ODDNAME(linux32, setarch, BB_DIR_BIN, BB_SUID_DROP, linux32))
    215 IF_SETARCH(APPLET_ODDNAME(linux64, setarch, BB_DIR_BIN, BB_SUID_DROP, linux64))
    216195IF_LN(APPLET_NOEXEC(ln, ln, BB_DIR_BIN, BB_SUID_DROP, ln))
    217196IF_LOAD_POLICY(APPLET(load_policy, BB_DIR_USR_SBIN, BB_SUID_DROP))
    218197IF_LOADFONT(APPLET(loadfont, BB_DIR_USR_SBIN, BB_SUID_DROP))
    219198IF_LOADKMAP(APPLET(loadkmap, BB_DIR_SBIN, BB_SUID_DROP))
    220 IF_LOGGER(APPLET(logger, BB_DIR_USR_BIN, BB_SUID_DROP))
    221 /* Needs to be run by root or be suid root - needs to change uid and gid: */
    222 IF_LOGIN(APPLET(login, BB_DIR_BIN, BB_SUID_REQUIRE))
    223199IF_LOGNAME(APPLET_NOFORK(logname, logname, BB_DIR_USR_BIN, BB_SUID_DROP, logname))
    224 IF_LOGREAD(APPLET(logread, BB_DIR_SBIN, BB_SUID_DROP))
    225200IF_LOSETUP(APPLET(losetup, BB_DIR_SBIN, BB_SUID_DROP))
    226 IF_LPD(APPLET(lpd, BB_DIR_USR_SBIN, BB_SUID_DROP))
    227 IF_LPQ(APPLET_ODDNAME(lpq, lpqr, BB_DIR_USR_BIN, BB_SUID_DROP, lpq))
    228 IF_LPR(APPLET_ODDNAME(lpr, lpqr, BB_DIR_USR_BIN, BB_SUID_DROP, lpr))
    229201IF_LS(APPLET_NOEXEC(ls, ls, BB_DIR_BIN, BB_SUID_DROP, ls))
    230 IF_LSATTR(APPLET(lsattr, BB_DIR_BIN, BB_SUID_DROP))
    231202IF_LSPCI(APPLET(lspci, BB_DIR_USR_BIN, BB_SUID_DROP))
    232203IF_LSUSB(APPLET(lsusb, BB_DIR_USR_BIN, BB_SUID_DROP))
    233 IF_UNLZMA(APPLET_ODDNAME(lzcat, unlzma, BB_DIR_USR_BIN, BB_SUID_DROP, lzcat))
    234 IF_LZMA(APPLET_ODDNAME(lzma, unlzma, BB_DIR_USR_BIN, BB_SUID_DROP, lzma))
    235 IF_LZOP(APPLET(lzop, BB_DIR_BIN, BB_SUID_DROP))
    236 IF_LZOP(APPLET_ODDNAME(lzopcat, lzop, BB_DIR_USR_BIN, BB_SUID_DROP, lzopcat))
    237204IF_MAKEDEVS(APPLET(makedevs, BB_DIR_SBIN, BB_SUID_DROP))
    238205IF_MAKEMIME(APPLET(makemime, BB_DIR_BIN, BB_SUID_DROP))
    239 IF_MAN(APPLET(man, BB_DIR_SBIN, BB_SUID_DROP))
     206IF_MAN(APPLET(man, BB_DIR_USR_BIN, BB_SUID_DROP))
    240207IF_MATCHPATHCON(APPLET(matchpathcon, BB_DIR_USR_SBIN, BB_SUID_DROP))
    241208IF_MD5SUM(APPLET_NOEXEC(md5sum, md5_sha1_sum, BB_DIR_USR_BIN, BB_SUID_DROP, md5sum))
     
    251218IF_MKFS_VFAT(APPLET_ODDNAME(mkfs.vfat, mkfs_vfat, BB_DIR_SBIN, BB_SUID_DROP, mkfs_vfat))
    252219IF_MKNOD(APPLET_NOEXEC(mknod, mknod, BB_DIR_BIN, BB_SUID_DROP, mknod))
    253 IF_CRYPTPW(APPLET_ODDNAME(mkpasswd, cryptpw, BB_DIR_USR_BIN, BB_SUID_DROP, mkpasswd))
    254220IF_MKSWAP(APPLET(mkswap, BB_DIR_SBIN, BB_SUID_DROP))
    255 IF_MKTEMP(APPLET(mktemp, BB_DIR_BIN, BB_SUID_DROP))
    256221IF_MORE(APPLET(more, BB_DIR_BIN, BB_SUID_DROP))
    257222/* On full-blown systems, requires suid for user mounts.
     
    273238IF_OPENVT(APPLET(openvt, BB_DIR_USR_BIN, BB_SUID_DROP))
    274239//IF_PARSE(APPLET(parse, BB_DIR_USR_BIN, BB_SUID_DROP))
    275 /* Needs to be run by root or be suid root - needs to change /etc/{passwd,shadow}: */
    276 IF_PASSWD(APPLET(passwd, BB_DIR_USR_BIN, BB_SUID_REQUIRE))
    277240IF_PGREP(APPLET(pgrep, BB_DIR_USR_BIN, BB_SUID_DROP))
    278241IF_PIDOF(APPLET(pidof, BB_DIR_BIN, BB_SUID_DROP))
    279 IF_PIPE_PROGRESS(APPLET(pipe_progress, BB_DIR_BIN, BB_SUID_DROP))
    280242IF_PIVOT_ROOT(APPLET(pivot_root, BB_DIR_SBIN, BB_SUID_DROP))
    281243IF_PKILL(APPLET_ODDNAME(pkill, pgrep, BB_DIR_USR_BIN, BB_SUID_DROP, pkill))
     
    298260IF_RESIZE(APPLET(resize, BB_DIR_USR_BIN, BB_SUID_DROP))
    299261IF_RESTORECON(APPLET_ODDNAME(restorecon, setfiles, BB_DIR_SBIN, BB_SUID_DROP, restorecon))
    300 IF_RFKILL(APPLET(rfkill, BB_DIR_USR_SBIN, BB_SUID_DROP))
    301262IF_RM(APPLET_NOFORK(rm, rm, BB_DIR_BIN, BB_SUID_DROP, rm))
    302263IF_RMDIR(APPLET_NOFORK(rmdir, rmdir, BB_DIR_BIN, BB_SUID_DROP, rmdir))
    303264IF_ROUTE(APPLET(route, BB_DIR_SBIN, BB_SUID_DROP))
    304 IF_RPM(APPLET(rpm, BB_DIR_BIN, BB_SUID_DROP))
    305 IF_RPM2CPIO(APPLET(rpm2cpio, BB_DIR_USR_BIN, BB_SUID_DROP))
    306265IF_RTCWAKE(APPLET(rtcwake, BB_DIR_USR_SBIN, BB_SUID_DROP))
    307 IF_RUN_PARTS(APPLET_ODDNAME(run-parts, run_parts, BB_DIR_BIN, BB_SUID_DROP, run_parts))
    308266IF_RUNCON(APPLET(runcon, BB_DIR_USR_BIN, BB_SUID_DROP))
    309267IF_RUNLEVEL(APPLET(runlevel, BB_DIR_SBIN, BB_SUID_DROP))
    310 IF_RUNSV(APPLET(runsv, BB_DIR_USR_BIN, BB_SUID_DROP))
    311 IF_RUNSVDIR(APPLET(runsvdir, BB_DIR_USR_BIN, BB_SUID_DROP))
    312268IF_RX(APPLET(rx, BB_DIR_USR_BIN, BB_SUID_DROP))
    313269IF_SCRIPT(APPLET(script, BB_DIR_USR_BIN, BB_SUID_DROP))
    314270IF_SCRIPTREPLAY(APPLET(scriptreplay, BB_DIR_BIN, BB_SUID_DROP))
    315 IF_SED(APPLET(sed, BB_DIR_BIN, BB_SUID_DROP))
    316271IF_SELINUXENABLED(APPLET(selinuxenabled, BB_DIR_USR_SBIN, BB_SUID_DROP))
    317272IF_SENDMAIL(APPLET(sendmail, BB_DIR_USR_SBIN, BB_SUID_DROP))
    318273IF_SEQ(APPLET_NOFORK(seq, seq, BB_DIR_USR_BIN, BB_SUID_DROP, seq))
    319274IF_SESTATUS(APPLET(sestatus, BB_DIR_USR_SBIN, BB_SUID_DROP))
    320 IF_SETARCH(APPLET(setarch, BB_DIR_BIN, BB_SUID_DROP))
    321275IF_SETCONSOLE(APPLET(setconsole, BB_DIR_SBIN, BB_SUID_DROP))
    322276IF_SETENFORCE(APPLET(setenforce, BB_DIR_USR_SBIN, BB_SUID_DROP))
     
    327281IF_SETSEBOOL(APPLET(setsebool, BB_DIR_USR_SBIN, BB_SUID_DROP))
    328282IF_SETSID(APPLET(setsid, BB_DIR_USR_BIN, BB_SUID_DROP))
    329 IF_SETUIDGID(APPLET_ODDNAME(setuidgid, chpst, BB_DIR_USR_BIN, BB_SUID_DROP, setuidgid))
    330283IF_SHA1SUM(APPLET_NOEXEC(sha1sum, md5_sha1_sum, BB_DIR_USR_BIN, BB_SUID_DROP, sha1sum))
    331284IF_SHA3SUM(APPLET_NOEXEC(sha3sum, md5_sha1_sum, BB_DIR_USR_BIN, BB_SUID_DROP, sha3sum))
     
    336289/* Do not make this applet NOFORK. It breaks ^C-ing of pauses in shells: */
    337290IF_SLEEP(APPLET(sleep, BB_DIR_BIN, BB_SUID_DROP))
    338 IF_SOFTLIMIT(APPLET_ODDNAME(softlimit, chpst, BB_DIR_USR_BIN, BB_SUID_DROP, softlimit))
    339291IF_SORT(APPLET_NOEXEC(sort, sort, BB_DIR_USR_BIN, BB_SUID_DROP, sort))
    340292IF_SPLIT(APPLET(split, BB_DIR_USR_BIN, BB_SUID_DROP))
    341 IF_START_STOP_DAEMON(APPLET_ODDNAME(start-stop-daemon, start_stop_daemon, BB_DIR_SBIN, BB_SUID_DROP, start_stop_daemon))
    342293IF_STAT(APPLET(stat, BB_DIR_BIN, BB_SUID_DROP))
    343294IF_STRINGS(APPLET(strings, BB_DIR_USR_BIN, BB_SUID_DROP))
    344295IF_STTY(APPLET(stty, BB_DIR_BIN, BB_SUID_DROP))
    345 /* Needs to be run by root or be suid root - needs to change uid and gid: */
    346 IF_SU(APPLET(su, BB_DIR_BIN, BB_SUID_REQUIRE))
    347 IF_SULOGIN(APPLET(sulogin, BB_DIR_SBIN, BB_SUID_DROP))
    348296IF_SUM(APPLET(sum, BB_DIR_USR_BIN, BB_SUID_DROP))
    349 IF_SV(APPLET(sv, BB_DIR_USR_BIN, BB_SUID_DROP))
    350 IF_SVLOGD(APPLET(svlogd, BB_DIR_USR_SBIN, BB_SUID_DROP))
    351297IF_SWAPONOFF(APPLET_ODDNAME(swapoff, swap_on_off, BB_DIR_SBIN, BB_SUID_DROP, swapoff))
    352298IF_SWAPONOFF(APPLET_ODDNAME(swapon, swap_on_off, BB_DIR_SBIN, BB_SUID_DROP, swapon))
    353299IF_SWITCH_ROOT(APPLET(switch_root, BB_DIR_SBIN, BB_SUID_DROP))
    354 IF_SYNC(APPLET_NOFORK(sync, sync, BB_DIR_BIN, BB_SUID_DROP, sync))
    355300IF_BB_SYSCTL(APPLET(sysctl, BB_DIR_SBIN, BB_SUID_DROP))
    356 IF_SYSLOGD(APPLET(syslogd, BB_DIR_SBIN, BB_SUID_DROP))
    357301IF_TAC(APPLET_NOEXEC(tac, tac, BB_DIR_USR_BIN, BB_SUID_DROP, tac))
    358302IF_TAIL(APPLET(tail, BB_DIR_USR_BIN, BB_SUID_DROP))
    359 IF_TAR(APPLET(tar, BB_DIR_BIN, BB_SUID_DROP))
    360 IF_TASKSET(APPLET(taskset, BB_DIR_USR_BIN, BB_SUID_DROP))
    361303/* IF_TC(APPLET(tc, BB_DIR_SBIN, BB_SUID_DROP)) */
    362304IF_TCPSVD(APPLET_ODDNAME(tcpsvd, tcpudpsvd, BB_DIR_USR_BIN, BB_SUID_DROP, tcpsvd))
     
    380322IF_TTYSIZE(APPLET(ttysize, BB_DIR_USR_BIN, BB_SUID_DROP))
    381323IF_TUNCTL(APPLET(tunctl, BB_DIR_SBIN, BB_SUID_DROP))
    382 IF_TUNE2FS(APPLET(tune2fs, BB_DIR_SBIN, BB_SUID_DROP))
    383324IF_UDHCPC(APPLET(udhcpc, BB_DIR_SBIN, BB_SUID_DROP))
    384325IF_UDHCPD(APPLET(udhcpd, BB_DIR_USR_SBIN, BB_SUID_DROP))
     
    386327IF_UMOUNT(APPLET(umount, BB_DIR_BIN, BB_SUID_DROP))
    387328IF_UNAME(APPLET(uname, BB_DIR_BIN, BB_SUID_DROP))
    388 IF_UNCOMPRESS(APPLET(uncompress, BB_DIR_BIN, BB_SUID_DROP))
    389329IF_UNEXPAND(APPLET_ODDNAME(unexpand, expand, BB_DIR_USR_BIN, BB_SUID_DROP, unexpand))
    390330IF_UNIQ(APPLET(uniq, BB_DIR_USR_BIN, BB_SUID_DROP))
    391331IF_UNIX2DOS(APPLET_NOEXEC(unix2dos, dos2unix, BB_DIR_USR_BIN, BB_SUID_DROP, unix2dos))
    392 IF_UNXZ(APPLET(unxz, BB_DIR_USR_BIN, BB_SUID_DROP))
    393 IF_UNLZMA(APPLET(unlzma, BB_DIR_USR_BIN, BB_SUID_DROP))
    394 IF_LZOP(APPLET_ODDNAME(unlzop, lzop, BB_DIR_USR_BIN, BB_SUID_DROP, unlzop))
    395 IF_UNZIP(APPLET(unzip, BB_DIR_USR_BIN, BB_SUID_DROP))
    396332IF_UPTIME(APPLET(uptime, BB_DIR_USR_BIN, BB_SUID_DROP))
    397333IF_USLEEP(APPLET_NOFORK(usleep, usleep, BB_DIR_BIN, BB_SUID_DROP, usleep))
     
    399335IF_UUENCODE(APPLET(uuencode, BB_DIR_USR_BIN, BB_SUID_DROP))
    400336IF_VCONFIG(APPLET(vconfig, BB_DIR_SBIN, BB_SUID_DROP))
    401 /* Needs to be run by root or be suid root - needs to change uid and gid: */
    402 IF_VLOCK(APPLET(vlock, BB_DIR_USR_BIN, BB_SUID_REQUIRE))
    403337IF_VOLNAME(APPLET(volname, BB_DIR_USR_BIN, BB_SUID_DROP))
    404 /* Needs to be run by root or be suid root - needs to write to /dev/TTY: */
    405 IF_WALL(APPLET(wall, BB_DIR_USR_BIN, BB_SUID_REQUIRE))
    406338IF_WATCH(APPLET(watch, BB_DIR_BIN, BB_SUID_DROP))
    407339IF_WATCHDOG(APPLET(watchdog, BB_DIR_SBIN, BB_SUID_DROP))
    408340IF_WC(APPLET(wc, BB_DIR_USR_BIN, BB_SUID_DROP))
    409 IF_WGET(APPLET(wget, BB_DIR_USR_BIN, BB_SUID_DROP))
    410 IF_WHICH(APPLET(which, BB_DIR_USR_BIN, BB_SUID_DROP))
    411341IF_WHOAMI(APPLET_NOFORK(whoami, whoami, BB_DIR_USR_BIN, BB_SUID_DROP, whoami))
    412 IF_UNXZ(APPLET_ODDNAME(xzcat, unxz, BB_DIR_USR_BIN, BB_SUID_DROP, xzcat))
    413 IF_XZ(APPLET_ODDNAME(xz, unxz, BB_DIR_USR_BIN, BB_SUID_DROP, xz))
    414342IF_YES(APPLET_NOFORK(yes, yes, BB_DIR_USR_BIN, BB_SUID_DROP, yes))
    415 IF_GUNZIP(APPLET_ODDNAME(zcat, gunzip, BB_DIR_BIN, BB_SUID_DROP, zcat))
    416343IF_ZCIP(APPLET(zcip, BB_DIR_SBIN, BB_SUID_DROP))
    417344
    418 #if !defined(PROTOTYPES) && !defined(NAME_MAIN_CNAME) && !defined(MAKE_USAGE)
     345#if !defined(PROTOTYPES) && !defined(NAME_MAIN) && !defined(MAKE_USAGE) \
     346    && !defined(MAKE_LINKS) && !defined(MAKE_SUID)
    419347};
    420348#endif
Note: See TracChangeset for help on using the changeset viewer.