[Buildroot] how does buildroot avoid requireing root?
john at stilen.com
Sat Jun 29 00:47:16 UTC 2013
I am confused about how buildroot creates busybox.
There are notes that one must ensure that busybox setuid root.
Performing this operation must be performed as root:
chown 0.0 /bin/busybox; chmod 4755 /bin/busybox
Yet when I use buildroot I never become root.
How does buildroot accomplish this?
In output/build/busybox-1.18.5 I see applets/install.sh calls:
install -m 755 busybox $prefix/bin/busybox || exit 1
but I don't see how this becomes setuid?
On my embedded system, I see:
-rwsr-xr-x 1 root root 605876 Jun 28 2013 /bin/busybox*
More information about the buildroot