From 2d1a78b88f6c986cbe147fc6f99091fd61f3bdd9 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Thu, 30 Sep 2010 14:31:12 -0700 Subject: Marked some more applets NOEXEC/NOFORK Signed-off-by: Dan Fandrich Signed-off-by: Denys Vlasenko --- coreutils/cksum.c | 2 ++ coreutils/dos2unix.c | 2 ++ coreutils/fold.c | 2 ++ coreutils/head.c | 2 ++ coreutils/id.c | 2 ++ coreutils/md5_sha1_sum.c | 2 ++ coreutils/mkfifo.c | 2 ++ coreutils/mknod.c | 2 ++ coreutils/printenv.c | 2 ++ 9 files changed, 18 insertions(+) (limited to 'coreutils') diff --git a/coreutils/cksum.c b/coreutils/cksum.c index 8e7800ee9..7bf383e2d 100644 --- a/coreutils/cksum.c +++ b/coreutils/cksum.c @@ -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) { diff --git a/coreutils/dos2unix.c b/coreutils/dos2unix.c index 626c414f2..ba1ca8c79 100644 --- a/coreutils/dos2unix.c +++ b/coreutils/dos2unix.c @@ -14,6 +14,8 @@ #include "libbb.h" +/* This is a NOEXEC applet. Be very careful! */ + enum { CT_UNIX2DOS = 1, CT_DOS2UNIX diff --git a/coreutils/fold.c b/coreutils/fold.c index 54f1aa2ac..4a6429ad7 100644 --- a/coreutils/fold.c +++ b/coreutils/fold.c @@ -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 diff --git a/coreutils/head.c b/coreutils/head.c index 0845b4375..669aae819 100644 --- a/coreutils/head.c +++ b/coreutils/head.c @@ -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 diff --git a/coreutils/id.c b/coreutils/id.c index 56286f4d4..ed1dc862e 100644 --- a/coreutils/id.c +++ b/coreutils/id.c @@ -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) diff --git a/coreutils/md5_sha1_sum.c b/coreutils/md5_sha1_sum.c index 646f8bd10..5e36d391a 100644 --- a/coreutils/md5_sha1_sum.c +++ b/coreutils/md5_sha1_sum.c @@ -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