Results 1 to 4 of 4

Thread: Kernels with su elsewhere than in /sbin

777
  1. [translate]    #1
    Member
    Join Date
    Apr 2010
    Posts
    66

    Default Kernels with su elsewhere than in /sbin

    Hi,

    Since the latest updates of the super-user app, it keeps telling that most su exec shipped with the differents kernels are outdated and that it cannot perrform update since it is placed in /sbin.

    Using a terminal emulator to remove /sbin/su and put it to /system/xbin works ... untill some curious event (maybe reboot but don't now) where the /xbin/su reappears.

    I think it would be great to have kernels that puts the su exec in /system/xbin and not in /sbin. It woud help not having that warning "obolete su exec" popping up very often.

    I looked on a kernel zip file, but all interesting things for that purpose seem to happen in the zImage file...

  2. [translate]    #2
    Senior Member
    Join Date
    Aug 2010
    Location
    Poland
    Posts
    2,826

    Default

    Most kernels have su binary inside initramfs (in zImage itself) and this one will always override binary in /system.
    Tom3q's CM7 does not have su in initramfs so superuser updates work.
    It it possible (and suggested) to remove su from initramfs but su has to be placed in /system/sbin otherwise there will be no root. I didn't check if available roms contain su.
    IMO current su location is a leftover from rooting kernel (Lk2.08 for official firmwares)

    Sent from my HTC Desire using Tapatalk
    Code:
    setprop persist.world.domination 1

  3. [translate]    #3
    Member
    Join Date
    Apr 2010
    Posts
    66

    Default

    Yes, that was more or less what I thought. I seems to me that su updater is able to update /system/sbin/su binary but not /xbin/su and that most spica kernels have their su binary in zImage that goes to /xbin

    I do not know if it is easy to edit zImage so that su is put elsewhere.

  4. [translate]    #4
    Senior Member
    Join Date
    Aug 2010
    Location
    Poland
    Posts
    2,826

    Default

    Quote Originally Posted by drebon View Post
    Yes, that was more or less what I thought. I seems to me that su updater is able to update /system/sbin/su binary but not /xbin/su and that most spica kernels have their su binary in zImage that goes to /xbin

    I do not know if it is easy to edit zImage so that su is put elsewhere.
    /xbin/su loaded from initramfs is RO so nothing can change it.
    Removing su from kernel is easy- requires small change in initramfs an recompilation using changed initramfs. Also update zip should install su to avoid possible problems if system doesn't have one


    Sent from my HTC Desire using Tapatalk
    Code:
    setprop persist.world.domination 1

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •