Marked some more applets NOEXEC/NOFORK

Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Dan Fandrich
2010-09-30 14:31:12 -07:00
committed by Denys Vlasenko
parent 5657d374db
commit 2d1a78b88f
10 changed files with 31 additions and 13 deletions

View File

@@ -8,6 +8,8 @@
*/
#include "libbb.h"
/* This is a NOEXEC applet. Be very careful! */
int cksum_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
int cksum_main(int argc UNUSED_PARAM, char **argv)
{

View File

@@ -14,6 +14,8 @@
#include "libbb.h"
/* This is a NOEXEC applet. Be very careful! */
enum {
CT_UNIX2DOS = 1,
CT_DOS2UNIX

View File

@@ -12,6 +12,8 @@
#include "libbb.h"
#include "unicode.h"
/* This is a NOEXEC applet. Be very careful! */
/* Must match getopt32 call */
#define FLAG_COUNT_BYTES 1
#define FLAG_BREAK_SPACES 2

View File

@@ -13,6 +13,8 @@
#include "libbb.h"
/* This is a NOEXEC applet. Be very careful! */
static const char head_opts[] ALIGN1 =
"n:"
#if ENABLE_FEATURE_FANCY_HEAD

View File

@@ -17,6 +17,8 @@
#include "libbb.h"
/* This is a NOEXEC applet. Be very careful! */
#if !ENABLE_USE_BB_PWD_GRP
#if defined(__UCLIBC_MAJOR__) && (__UCLIBC_MAJOR__ == 0)
#if (__UCLIBC_MINOR__ < 9) || (__UCLIBC_MINOR__ == 9 && __UCLIBC_SUBLEVEL__ < 30)

View File

@@ -8,6 +8,8 @@
#include "libbb.h"
/* This is a NOEXEC applet. Be very careful! */
typedef enum {
/* 4th letter of applet_name is... */
HASH_MD5 = 's', /* "md5>s<um" */

View File

@@ -13,6 +13,8 @@
#include "libbb.h"
#include "libcoreutils/coreutils.h"
/* This is a NOEXEC applet. Be very careful! */
int mkfifo_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
int mkfifo_main(int argc UNUSED_PARAM, char **argv)
{

View File

@@ -14,6 +14,8 @@
#include "libbb.h"
#include "libcoreutils/coreutils.h"
/* This is a NOEXEC applet. Be very careful! */
static const char modes_chars[] ALIGN1 = { 'p', 'c', 'u', 'b', 0, 1, 1, 2 };
static const mode_t modes_cubp[] = { S_IFIFO, S_IFCHR, S_IFBLK };

View File

@@ -10,6 +10,8 @@
#include "libbb.h"
/* This is a NOFORK applet. Be very careful! */
int printenv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
int printenv_main(int argc UNUSED_PARAM, char **argv)
{