View Single Post
Posts: 268 | Thanked: 1,053 times | Joined on May 2010 @ The Netherlands
#374
Originally Posted by iDont View Post
I prefer to package up su separately as well; will look into that next week. I don't think it's wise though to leave out the setuid applets from busybox, as leaving out applets vs. Maemo's stock busybox (such as su) might break some (3rd party) applications.
The proper solution would be to make the new su package divert /bin/su.

I'm surprised su hasn't been packaged up before though, I hope I won't be in for some unpleasant surprise.
I've ported Debian's login package to Maemo (which includes su), but even though the resulting binary works and it's arguments match those of BusyBox', Maemo will get stuck at the four dots during boot with this su installed. If anyone wants to pick up work on this package, let me know and I'll send over the sources.
It is possible to install this su binary as e.g. /bin/su.real and alias it to su for interactive logins.

However, I took a different approach: compile just the su applet from upstream BusyBox' source and package it up as "busybox-su". This su binary can be installed setuid as /bin/su without breaking Maemo. At least I haven't noticed any breakage yet; running it since April 10th.
Busybox-su diverts /bin/su during installation, so the same warning applies as with busybox-power ("it touches an essential system binary...").

The accompanying source for busybox-su is also attached. Note that this tarball only includes the Debian packaging. It is to be used with upstream's BusyBox sources.

Feedback welcome . I'll let the package stage here for a day or two before I push it to Maemo's extras-devel repository.

--
And regarding busybox-power & proper man setup: this is still on my TODO list, but I haven't gotten around to it yet.
Attached Files
File Type: deb busybox-su_1.21.0su1_armel.deb (11.7 KB, 102 views)
File Type: gz packaging_source.tar.gz (20.0 KB, 81 views)

Last edited by iDont; 2013-04-15 at 20:01.
 

The Following 2 Users Say Thank You to iDont For This Useful Post: