[Buildroot] Buildroot RFS Login Question

Poole, Donald R. drpoole at swri.org
Thu Feb 9 19:56:56 UTC 2012


On 2/9/12 9:36 AM, "Peter Korsgaard" <jacmet at uclibc.org> wrote:


>>>>>> "Donald" == Poole, Donald R <drpoole at swri.org> writes:
>
>Hi,
>
> Donald> Hmm, interestingly I do have that in my .config.  Why would it
> Donald> have failed to execute the Setuid in this case?
>
>Sorry, no idea. Do you see it in the fakeroot invocation to create the
>tarball? Are the permissions in the tarball correct?
>
>E.G.:
>tar tvf output/images/rootfs.tar | grep '^-.*busybox'
>-rwsr-xr-x root/root    420472 2012-02-09 09:29 ./bin/busybox
>
>-- 
>Bye, Peter Korsgaard

This is the my tarball creation output:

	>>>   Generating root filesystem image rootfs.tar
	rm -f 
/opt/embedded-systems/armv7/buildroot-2011.11/output/build/_fakeroot.fs
	touch 
/opt/embedded-systems/armv7/buildroot-2011.11/output/build/.fakeroot.00000
	cat /opt/embedded-systems/armv7/buildroot-2011.11/output/build/.fakeroot*
> /opt/embedded-systems/armv7/buildroot-2011.11/output/build/_fakeroot.fs
	echo "chown -R 0:0
/opt/embedded-systems/armv7/buildroot-2011.11/output/target" >>
/opt/embedded-systems/armv7/buildroot-2011.11/output/build/_fakeroot.fs
	cat target/generic/device_table.txt  >
/opt/embedded-systems/armv7/buildroot-2011.11/output/build/_device_table.tx
t
	echo 
"/opt/embedded-systems/armv7/buildroot-2011.11/output/host/usr/bin/makedevs
 -d 
/opt/embedded-systems/armv7/buildroot-2011.11/output/build/_device_table.tx
t /opt/embedded-systems/armv7/buildroot-2011.11/output/target" >>
/opt/embedded-systems/armv7/buildroot-2011.11/output/build/_fakeroot.fs
	echo " tar -c""f 
/opt/embedded-systems/armv7/buildroot-2011.11/output/images/rootfs.tar -C
/opt/embedded-systems/armv7/buildroot-2011.11/output/target ." >>
/opt/embedded-systems/armv7/buildroot-2011.11/output/build/_fakeroot.fs
	chmod a+x 
/opt/embedded-systems/armv7/buildroot-2011.11/output/build/_fakeroot.fs
	/opt/embedded-systems/armv7/buildroot-2011.11/output/host/usr/bin/fakeroot
 -- /opt/embedded-systems/armv7/buildroot-2011.11/output/build/_fakeroot.fs
	rootdir=/opt/embedded-systems/armv7/buildroot-2011.11/output/target
	table='/opt/embedded-systems/armv7/buildroot-2011.11/output/build/_device_
table.txt'
	bzip2 -9 -c 
/opt/embedded-systems/armv7/buildroot-2011.11/output/images/rootfs.tar >
/opt/embedded-systems/armv7/buildroot-2011.11/output/images/rootfs.tar.bz2

So, I see it in the fakroot invocation and when I issue the command you
gave to check the permissions of the busybox binary, it get this output:

	-rwsr-xr-x root/root    621852 2012-02-09 13:43 ./bin/busybox

So, it appears that it's being set correctly too.

Donald R. Poole, Jr.
Research Engineer
Voice: 210.522.3131 | Fax: 210.522.4931
Tactical Networks & Communications (tacticalnetworks.swri.org)
Southwest Research Institute (SwRI)



More information about the buildroot mailing list