Why do not use the following option in busybox? It can replace the busybox.suid approach.
(yes) Drop SUID state for most applets
(yes) Enable SUID configuration via /etc/busybox.conf (NEW)
(no) Suppress warning message if /etc/busybox.conf is not readable (NEW)
Used in combination with this /etc/busybox.conf [1] and obviously with the suided busybox, it will reduce size and simplify things: just one compilation and one binary instead of two.
original version:
600600 bytes (601 kB, 587 KiB) nosuid
75720 bytes (76 kB, 74 KiB) suid
suggested version:
604696 bytes (605 kB, 591 KiB) nosuid
75720 bytes (76 kB, 74 KiB) suid
suggested version but single file
637464 bytes (637 kB, 623 KiB) single
In attachment the configuration file for a single file busybox.
As you can see my original version is 40kb larger because than yours (540kB) because I use -O2 for compilation.
I wish to receive a suggestion to use -Os because I tried to add to CFLAGS but it is ignored.
[1]
http://lists.busybox.net/pipermail/busybox/2004-May/045643.html