Slashdot Mirror


Apple Crippled Its DTrace Port

Linnen writes in to note that one of developers of Sun's open source system tracing tool, DTrace, has discovered that Apple crippled its port of the tool so that software like iTunes could not be traced. From Adam Leventhal's blog: "I let it run for a while, made iTunes do some work, and the result when I stopped the script? Nothing. The expensive DTrace invocation clearly caused iTunes to do a lot more work, but DTrace was giving me no output. Which started me thinking... did they? Surely not. They wouldn't disable DTrace for certain applications. But that's exactly what Apple's done with their DTrace implementation. The notion of true systemic tracing was a bit too egalitarian for their classist sensibilities..."

19 of 476 comments (clear)

  1. Yet another example of how Apple is not our friend by Zombie+Ryushu · · Score: 4, Insightful

    Apple is as much the DRM laden threat to open computing as Microsoft is. We may have circumvented this issue this time, but what about the time after that? and after that? Its a cat and mouse game Apple is going to play.

  2. Great! by Jeremi · · Score: 5, Insightful
    So can I apply this NOATTACH flag to my l33t rootkit software to make sure it goes undetected by any system diagnostic tools?


    This will be a big help for me in my quest for a legion of Mac zombies ;^)

    --


    I don't care if it's 90,000 hectares. That lake was not my doing.
  3. Re:DRM bad, but "classist sensibilities"? by Hsensei · · Score: 4, Insightful

    Of course if it was MS you would have you pitchfork and torch ready. I forget Jobs can do no wrong.

    --
    ~
  4. Re:DRM? by KublaiKhan · · Score: 4, Insightful

    That may have been Apple's intent, but as usually happens in such cases, the end result is to encourage people to find out new ways around the 'protections' that have been inflicted.

    --
    In Xanadu did Kubla Khan
    A stately pleasure dome decree
  5. Freedom Crippled when you use Proprietary Software by Anonymous Coward · · Score: 5, Insightful

    You of all people should know that you give up your freedom to use your software and hardware as you wish when you use proprietary software. Apple's continuous attempt to stop people from changing software on their home computers is a good example of how they feel about freedom. They only side with freedom when it is immediately beneficial.

  6. Re:DRM bad, but "classist sensibilities"? by Samgilljoy · · Score: 4, Insightful

    The struggle against corporations may be an important part of the defense of humanity, but some would argue that seemingly innocuous things are often just small, innocuous things, and that to go ape shit about them and blow them out of proportion is characteristic of small minds and spirits.

    Some would also argue that getting hung up on the small things and seeing battles to be won therein is a good way to ensure that people never take on any large and not so seemingly innocuous issues, that they self indulgently imagine themselves to be revolutionaries fighting the good fight and propagating righteous and enlightened rhetoric.

    And even if these people are totally wrong, it still doesn't excuse the ideologically loaded "classist sensibilities" bullshit. But I'm sure the original poser, err poster, feels good about his awesomeness.

  7. Re:C'mon, seriously? by bersl2 · · Score: 5, Insightful

    (Note: IANA DTrace user or developer.)

    The real effects seem to be that while a process which sets this flag has control of the system, any DTrace events that fire off during this time will not be detected, as if they never occurred, regardless of whether what is being traced has anything to do with that process. It seems to break a few important(?) idioms used by DTrace users, so that the results returned are not what they should be.

    The furor seems to be that this subtle breakage has gone undocumented; and although only iTunes currently uses it, that does not stop other software (including software that should not be there) from using it. That a DTrace developer discovered this, combined with that this is in all likelihood being done for no reason other than that of DRM, is what makes this notable. If I were working on DTrace, I'd probably be pissed too.

  8. The point of the article by aberkvam · · Score: 4, Insightful

    The /. summary and most of the /. posters seem to be missing the point of the article. (To be fair, the author wasn't too clear himself. He's done some clarification in the comments section of his article.)

    Sure, it's annoying that DTrace can't "see" iTunes. But that's more of a DRM issue. Whether you agree with DRM and Apple's implementation of it or not, this DTrace feature is merely a logical extension of that issue.

    The real problem though is that this feature actually does break iTunes. If DTrace probes while the iTunes application happens to be the application currently running on the CPU, the DTrace probe won't run. (It's technically a thread of iTunes' at that moment.) So not only will DTrace not show iTunes, it won't show ANY information until it happens to fire off when iTunes isn't the app running on the CPU.

    It is fair to say that Apple has made a change to DTrace that has introduced a bug that they need to fix. It is possible for them to fix that bug while continuing to block using DTrace on iTunes.

  9. So? by Plekto · · Score: 4, Insightful

    I just don't see what the big deal with all of this is. Smart people don't touch ITunes, because it's just going to help feed the beast. People seem to have forgotten how Jobs ran Apple the last time he was in charge. He's merely a lot more charismatic than Gates. But they are both equally self-serving.

    Thankfully there are options which involve neither company.

  10. Re:Luckily... by Hamilton+Lovecraft · · Score: 5, Insightful

    So, uh, why don't you open source wizards recompile DTrace without the code that checks P_LNOATTACH?

    --
    step 3: god dammit, it doesn't work
  11. Re:DRM bad, but "classist sensibilities"? by dcollins · · Score: 4, Insightful

    Completely disagree.

    "Apple's just being a company" = "Class struggle"

    The fact that there are two classes of legally recognized entities, with competing rights allocated to each, is sort of the definition of a class struggle.

    --
    We know where leadership by an anti-intellectual "strongman" who scapegoats minorities and likes boisterous rallies goes
  12. Re:DRM? by mstone · · Score: 5, Insightful

    Most likely, Apple's intent is to deliver a 'credible effort' to prevent circumvention and/or reverse engineering.

    Even though the labels have largely dropped DRM, they still don't like the idea of users having control over digital music. It's part of their DNA. Their whole business revolved around having control over the production and distribution systems, and they just can't contemplate existence without having control over something. The contracts between Apple and the labels reflect that fear, with Apple having the job of making it look like the horses are still in the barn even though the door is open.

    Now technically, that's impossible. But my experience with corporate software development has shown me that you can balance 'customers who don't want to know what's impossible' with judicious use of handwavium. You don't have to build a solution that's bulletproof, you just need something that works most of the time. It doesn't matter if there are workarounds, or even if those workarounds are practically trivial for anyone with a technical background, as long as you can't discuss the workaround without using technical terms.

    It's sort of an extension of the Sapir-Whorf hypothesis. It's not that your customers can't think about the problem if you lack the vocabulary, it's more that they won't want to think about the problem if they have to spend effort learning how to discuss it intelligently.

    So from a contractual standpoint, providing a 'credible effort' is more about obfuscation than actually trying to do the impossible. Apple probably doesn't care if people can work around this issue, as long as the explanation boils down to 'blah blah blah' to aggressively uninformed label executives.

  13. Re:DRM bad, but "classist sensibilities"? by Quadraginta · · Score: 5, Insightful

    Friend, a corporation is a miniature society. It's an organization of people that divides labor for the purpose of maximizing the welfare of all, subject to an agreed-upon heirarchical distribution scheme. (That is, the wealth it creates is not usually distributed equally.) Society is merely the largest possible corporation, in which we are all, whether we like it nor not, employed.

    What you are saying is that the smaller organization we may voluntarily join (e.g. the corporations that employ us) should be policed by and subject to the larger organizations that we are a member of whether we like it or not (e.g. the country in which we are born).

    Yeah, well, not by me. I prefer to choose with whom I associate, and to whom I listen. I most definitely do not like the idea of the largest possible organization of which I'm a member, like it or not, enforcing the ultimate rules of my life. I'm much happier if the rules are defined by a smaller organization that I voluntarily join, and which I can voluntarily leave if I don't like the rules.

    In a free society, where the largest powerful organizations are much smaller than the entire country, I can find the corner of it that plays by the rules I like. I have choices. I can be mostly who I want to be. In your "social" society, I have no more choices. I have to be what the majority thinks I should be, act accordingly to their morality and expectations.

    No thanks! I know my average fellow man too well to think it would be fun to allow him to dictate the terms of my life.

  14. Right. Because that's how the OS community is by Weaselmancer · · Score: 5, Insightful

    We never ever criticize our heroes ever.

    The difference you seem to be missing here is that Steve Jobs only occasionally does a boneheaded thing like this against his fan base. Bill Gates only occasionally doesn't.

    --
    Weaselmancer
    rediculous.
  15. Re:OS-X itself by jeff4747 · · Score: 4, Insightful

    Apple boxes don't use the same kind of BIOS as a non-Apple box. If you somehow got a retail OS-X DVD to install on your Compaq, it wouldn't boot.

    Now, it's not too hard to get around this (install Darwin), but there actually is something "technical that prevents it from running on any modern PC".

  16. "DTrace is hardly crippled" by Chas · · Score: 5, Insightful

    I call BULLSHIT.

    If they're selectively telling this app NOT to log "certain types of traffic", and give no notification of such, or allow the functionality to be restored, then it's CRIPPLED.

    I'm so sick of apologists telling me that stuff that's broken is broken for a good reason and that I should be glad someone deigned to allow me to hack it back to some semblance of functionality without getting sued into oblivion!

    --


    Chas - The one, the only.
    THANK GOD!!!
  17. Re:DRM bad, but "classist sensibilities"? by VidEdit · · Score: 5, Insightful

    "As I understand it, a DTrace user has experimented with the program, determined it to be specifically crippled, and given an educated guess about why it is crippled in that way"

    No, the frickin' **author** of DTrace has found the specific code used by Apple to cripple it.

    --
  18. Re:Wow by Lally+Singh · · Score: 4, Insightful

    Sure I read the post, I just don't agree with the conclusions.

    DTrace works on processes it's supposed to, and doesn't work on those it's not. I'm happy to agree the implementation of the latter is buggy, but I don't think it's the end of the world or a conspiracy theory. Maybe later the providers can be adapted to more intelligently deal with these closed-off processes to give more consistent results.

    Apple decided to put in some measures to keep some software locked-down. The correctness of doing so isn't a technical issue, that's a philosophical one.

    DTrace is a wonderful tool: one that's saved me *months* off my PhD work, and I love it. And you have my deepest respect for it. But, I don't take dtrace as a philosophy -- I gave up on software religion a long time ago. Everyone's got their own requirements (e.g. locking down iTunes to keep FairPlay from being cracked -- to keep record producers from leaving iTunes) and they've gotta get them done however they can. Call it mercenary ethics if you want, but we don't all work at Sun with CEOs who get it.

    --
    Care about electronic freedom? Consider donating to the EFF!
  19. Re:One question: by wyldeone · · Score: 4, Insightful

    You've (like many) completely misunderstood the point of Apple's code signing efforts. It's not to stop unauthorized code from running--Apple is not Microsoft, no matter how you cut it; they don't even have activation, nor any protections on their software besides serial numbers. The real point of code signing is so that when you have a piece of software that claims to be from Company X, you can be sure it's actually from Company X. It's a tool to reduce malware pretending to be legitimate software, not a means for Apple to lock down your computer.

    --
    In the beginning the universe was created. This made a lot of people very angry and is widely considered as a bad move.