Results 1 to 3 of 3
Discuss Kernel signing / .kexts on iPhone at the iOS 4.x (iPhone OS 4.x) - Hackint0sh.org; I'm trying to find out if its at all possible to run a .kext on ...
  1. #1
    Newbie Array

    Join Date
    May 2010
    Posts
    7
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default Kernel signing / .kexts on iPhone

    I'm trying to find out if its at all possible to run a .kext on an unjailbroken iPhone.

    When the kernel is loaded, is the signature for the entire kernel image verified? Or just the signatures of any plugins there might be i.e. the .kext?

    If the entire kernel image signature is checked then I presume there's no chance of a .kext running unless it was inside the kernel when signed, thus no possibility at all of running a .kext.
    If however its not the entire kernel that is checked, but .kexts' signatures are checked individually when loaded, then there is a slim chance perhaps that I am able to sign the .kext with a specific certificate tied to the device's IMEI or similar, and thus would be able to load the .kext on one phone only (which would suit my purposes).



  2. #2
    Senior Professional Array

    Join Date
    Dec 2007
    Posts
    100
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    13

    Default

    Quote Originally Posted by mungbeans View Post
    I'm trying to find out if its at all possible to run a .kext on an unjailbroken iPhone.

    When the kernel is loaded, is the signature for the entire kernel image verified? Or just the signatures of any plugins there might be i.e. the .kext?
    That's the last thing you need to be worried about.

    First, you need to build your own kextload, because 4.x fw does not ship with any.
    Next, you need to reconstruct the OSKext::loadFromMkext() call, since iPhone's kernel is built with SECURE_KERNEL.
    Then, you need to inject the whole kxld subsystem, because iPhone's kernel is built without CONFIG_KXLD.
    You may also want to rebuild the System.kext pseudoextension.
    Finally, you should ask the signature question.

    Bottom line: the iPhone's kernel lacks considerable portions of code which deal with kext loading.
    Last edited by dborca; 06-17-2010 at 01:13 AM.
    Regards,
    Daniel Borca

  3. #3
    Developer Array

    Join Date
    Jul 2008
    Posts
    471
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    29

    Default

    Quote Originally Posted by mungbeans View Post
    I'm trying to find out if its at all possible to run a .kext on an unjailbroken iPhone.

    When the kernel is loaded, is the signature for the entire kernel image verified? Or just the signatures of any plugins there might be i.e. the .kext?

    If the entire kernel image signature is checked then I presume there's no chance of a .kext running unless it was inside the kernel when signed, thus no possibility at all of running a .kext.
    If however its not the entire kernel that is checked, but .kexts' signatures are checked individually when loaded, then there is a slim chance perhaps that I am able to sign the .kext with a specific certificate tied to the device's IMEI or similar, and thus would be able to load the .kext on one phone only (which would suit my purposes).
    how in the world would you expect to load a kext without jailbreaking a phone??? and if you want to do something as low-level and intricate as kext loading why would you balk at jailbreaking? makes no sense.

 

 

Similar Threads

  1. How to Backup Kexts and Kernel - Video
    By kromakey in forum Hardware
    Replies: 0
    Last Post: 03-12-2010, 08:15 PM
  2. Are Typical Kexts Kernel Specific?
    By HP->Mac in forum Kernel / Kext (Driver) Support
    Replies: 0
    Last Post: 05-07-2009, 11:59 PM
  3. Replies: 1
    Last Post: 01-28-2008, 04:35 AM
  4. [How to] buy an iPhone w/o signing At&T plan ?
    By BImmelicous in forum General
    Replies: 3
    Last Post: 12-31-2007, 12:15 AM
  5. Replies: 6
    Last Post: 09-10-2007, 06:03 PM

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
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 03:09 PM.
twitter, follow us!