News for hackers. Stuff that matters.
Re:The UK Court Sanctions Apple, Hopes "Lack of Integrity" I... by chrisacky on Friday November 09, 2012 @08:04PM (#4765520)
No shit.[1]

"Apple. Your brand is being ruined by misplaced trust in a losing super-aggressive legal strategy."

I genuinely used to like Apple. I can actually remember regularly checking the website for the different gadgets I could buy. This was well before the Android v Apple "fan-boyism".

I switched off totally from the anti-consumerism that drives Apple. They make great devices that just work. I have no problems in borrowing an iPad for an hour, but they consistently take strategies beyond their products that have decremental effects to their customers and customers of other companies.

Who needs a third adapter for their phone (that will only work on iPhone5)? Who needs a different form factor for their SIM card so Apple can secure three year licencing deals with carriers? Who needs the walled garden of an App Store that prevents developers from releasing Apps that might cross over with iOS functionality... Who needs to write a book on Apple Software where the terms demand that they only distribute the book on Apple platforms[2]..

Put honestly, there is very little that Apple does that could be interpreted as being for the "better-ment" of people that aren't Apple customers. They take a "fuck"[1] everyone attitude that isn't a beneficiary of Apple stock.

I just think that this is a very toxic label for Apple to have against them.

Just to stress... I think Apple make great products, although I will never again contribute a single cent to anything that bears the Apple name. They have all but destroyed their brand that I once so sorely coveted (and this was a time not so long ago).

Who needs humility... Clearly, not Apple...

    [1] : I hate swearing. Apologies. 
    [2] : This got changed shortly after considerable backlash.
    [9] : I need to stop writing so many "Apple" critical comments..
          If you look through any of my last 50 comments I'd guess
          perhaps 10 are Apple related. It's wrong of me that I consistently 
          only comment on Apple posts.
Re:The UK Court Sanctions Apple, Hopes "Lack of Integrity" I... by jrockway on Friday November 09, 2012 @08:20PM (#4765544)
I was the same way until one day, I tried to run gdb on iTunes, and gdb segfaulted. I did some research and found that Apple added extra code to the OS just to prevent someone from doing exactly that. They spent additional engineering effort just to lock me out of my own computer. (I still wonder what data collection they were trying to hide.)

Anyway, that was the day I deleted OS X and switched back to Linux forever. (I even ran Rockbox on my iPod until I replaced it with a $30 Sansa device with 10x the features.)

Re:The UK Court Sanctions Apple, Hopes "Lack of Integrity" I... by Osmium on Friday November 09, 2012 @09:04PM (#4765646)
Playing devil's advocate here, but what's the media store like on your typical Linux distribution? The reason Apple has to go to such draconian measures is to please their content providers. Without doing so, you wouldn't have an iTunes store with such a wide variety of content.

Apple's margins from content sales are slim; they push content to sell devices. As they've shown with music in the past, they'll get rid of DRM if the content providers allow it. So it's not entirely fair to blame Apple for that one.

Re:The UK Court Sanctions Apple, Hopes "Lack of Integrity" I... by caf on Friday November 09, 2012 @10:13PM (#4765793)
The content providers seem happy with iTunes running on Windows without such protection.
Re:The UK Court Sanctions Apple, Hopes "Lack of Integrity" I... by pyre on Saturday November 10, 2012 @01:04AM (#4766065)
When Apple first signed on the labels, iTunes didn't run on Windows. Do we know when these protections first showed up? Was it Apple's way of appeasing the labels before they gained enough mass that the labels couldn't ignore them?
Re:The UK Court Sanctions Apple, Hopes "Lack of Integrity" I... by caf on Saturday November 10, 2012 @01:48AM (#4766128)
I don't know about the debug protections, but according to Wikipedia's timeline, it was only a matter of 6 months between iTunes Store appearing and iTunes becoming available for Windows.
Re:The UK Court Sanctions Apple, Hopes "Lack of Integrity" I... by njharman on Friday November 09, 2012 @09:55PM (#4765769)
> typical media store

There are several BitTorrent clients to choose from!

Re:The UK Court Sanctions Apple, Hopes "Lack of Integrity" I... by adambyrtek on Saturday November 10, 2012 @07:54AM (#4766559)
7digital[1] is great for music, and they don't use any DRM.

[1] http://www.7digital.com/

Re:The UK Court Sanctions Apple, Hopes "Lack of Integrity" I... by desas on Saturday November 10, 2012 @04:52AM (#4766374)
The amazon store is pretty goood
Re:The UK Court Sanctions Apple, Hopes "Lack of Integrity" I... by eridius on Friday November 09, 2012 @10:40PM (#4765845)
You seem to be very confused. The facility that blocks gdb is part of the standard ptrace APIs. It was not extra code that Apple added.

In any case, there's also a very simple explanation that should be obvious to anyone who thinks about it as to why Apple did this: because iTunes deals with DRM. A one-line change to block debugging is something I'd absolutely expect any app that uses DRM'd content to do.

Re:The UK Court Sanctions Apple, Hopes "Lack of Integrity" I... by ajross on Saturday November 10, 2012 @12:19AM (#4766007)
PT_DENY_ATTACH certainly isn't part of any standard. It's absolutely a Darwin-specific feature, and is thus "extra code that Apple added", and they presumably did it for exactly this application. And no, other DRM-aware apps on other OSes don't do this.

So... who's very confused?

Re:The UK Court Sanctions Apple, Hopes "Lack of Integrity" I... by justincormack on Saturday November 10, 2012 @04:05AM (#4766305)
Ubuntu also restricts use of ptrace for security reasons although it shouldn't affect gdb https://wiki.ubuntu.com/SecurityTeam/Roadmap/KernelHardening...
Re:The UK Court Sanctions Apple, Hopes "Lack of Integrity" I... by ajross on Saturday November 10, 2012 @09:23AM (#4766688)
Yes, but critically in Linux you can turn it off as the administrator of the system. It affects security but not inspectability. Regardless, my response was simply to the idea that Apple was "following standards" when they clearly weren't.
Re:The UK Court Sanctions Apple, Hopes "Lack of Integrity" I... by vetinari on Saturday November 10, 2012 @12:35PM (#4767138)
In Ubuntu, it's user overridable (i.e. machine owner is in control). In Darwin/OSX, it is not (i.e. machine vendor is in control).
Re:The UK Court Sanctions Apple, Hopes "Lack of Integrity" I... by ReadyNSet on Saturday November 10, 2012 @12:02PM (#4767063)
Actually iTunes on Windows also calls IsDebuggerAttached and exits for YES. This though can be easily by passed by hooking the function call.
Re:The UK Court Sanctions Apple, Hopes "Lack of Integrity" I... by majke on Friday November 09, 2012 @08:47PM (#4765604)
> I tried to run gdb on iTunes, and gdb segfaulted.

Whoo, any links please? I'd like gdb to crash on my programs as well!

Re:The UK Court Sanctions Apple, Hopes "Lack of Integrity" I... by comex on Friday November 09, 2012 @09:07PM (#4765657)
Call ptrace with PT_DENY_ATTACH (it's actually documented).
Re:The UK Court Sanctions Apple, Hopes "Lack of Integrity" I... by mikeash on Friday November 09, 2012 @10:05PM (#4765784)
Trivially worked around by starting the program in gdb and running these commands before you run the program:

    b ptrace
    commands
    return 0
    cont
    end
(In short, every time the app calls ptrace, return a 0 to the caller without executing any ptrace code, and automatically resume execution. Since apps almost never use ptrace for anything else, it's workable to just short-circuit every single call like this rather than trying to check for PT_DENY_ATTACH.)
Re:The UK Court Sanctions Apple, Hopes "Lack of Integrity" I... by ajross on Saturday November 10, 2012 @12:22AM (#4766011)
Clearly, one has to agree that this is a poorly designed API feature with a huge hole that provides no real security.

Apple still, however, designed it into their product and tried to use it to prevent user inspection of system state.

Re:The UK Court Sanctions Apple, Hopes "Lack of Integrity" I... by mikeash on Saturday November 10, 2012 @08:21AM (#4766592)
I can only assume that they're following the letter of their contract with media companies to include anti-debugger measures, while not really trying very hard.

Just to be clear, I'm not trying to defend Apple here, just telling people how they can get around this if they feel like debugging iTunes or whatever.

Re:The UK Court Sanctions Apple, Hopes "Lack of Integrity" I... by nitrogen on Saturday November 10, 2012 @02:19AM (#4766154)
I wonder if the above gdb script counts as circumvention of a technological measure under the DMCA.
Re:The UK Court Sanctions Apple, Hopes "Lack of Integrity" I... by tedunangst on Friday November 09, 2012 @09:53PM (#4765763)
Besides Apple's nefarious Dr. Evil world domination uses, it can also be used to protect programs from each other. If your browser denies ptrace, it will prevent rogue programs from reading your passwords out of its memory.
Re:The UK Court Sanctions Apple, Hopes "Lack of Integrity" I... by comex on Friday November 09, 2012 @09:58PM (#4765776)
Not really, since a program wanting to circumvent it can just attach before the call is made, or use other mechanisms to read process memory.
Re:The UK Court Sanctions Apple, Hopes "Lack of Integrity" I... by tedunangst on Friday November 09, 2012 @10:17PM (#4765799)
ok, true, you have get there before the bad guys.
Re:The UK Court Sanctions Apple, Hopes "Lack of Integrity" I... by malandrew on Friday November 09, 2012 @09:05PM (#4765650)
For the naive: why?
Re:The UK Court Sanctions Apple, Hopes "Lack of Integrity" I... by lazugod on Friday November 09, 2012 @09:17PM (#4765685)
To learn.
Re:The UK Court Sanctions Apple, Hopes "Lack of Integrity" I... by malandrew on Friday November 09, 2012 @10:08PM (#4765786)
Oh, I thought you may have a specific reason for causing gdb to segfault on your app.
Re:The UK Court Sanctions Apple, Hopes "Lack of Integrity" I... by ciniglio on Friday November 09, 2012 @09:28PM (#4765712)
I would guess that the gdb thing is to prevent cracking of their DRM, not to hide some PII tracking. Do you know if you can attach gdb to something like Xbox Music (Zune)?
Re:The UK Court Sanctions Apple, Hopes "Lack of Integrity" I... by recoiledsnake on Friday November 09, 2012 @11:35PM (#4765930)
Looks like you can attach a debugger to Zune, but if you try to play DRM'ed files when doing so, it will fail with an error.

http://blogs.technet.com/b/askperf/archive/2009/02/24/window...

Re:The UK Court Sanctions Apple, Hopes "Lack of Integrity" I... by comex on Friday November 09, 2012 @09:06PM (#4765655)
For the record, the iBooks Author thing was more a clarification than a change; you still can't sell the main exported .ibooks format outside of the iBookstore, but you can do what you want with the source files or files exported in other formats.
Re:The UK Court Sanctions Apple, Hopes "Lack of Integrity" I... by olgeni on Saturday November 10, 2012 @07:41AM (#4766546)
> They make great devices that just work.

After learning that the App Store actually uses Spotlight (!) to find out what's in /Applications, and that sometimes you need to reindex to get an upgrade, or change permissions set by App Store itself, I'm not so sure. And after seeing what iOS 6 did to my battery life, I'm even less sure...