4 ms·
Interesting. You really have to go out of your way to delete directories in UNIX, so this must be some sort of intentional behavior that is misbehaving. (It d
by jrockway 17y ago
Interesting. You really have to go out of your way to delete directories in UNIX, so this must be some sort of intentional behavior that is misbehaving. (It deletes your user's data, not the guest's data, right? Seems like the opposite of what you would want to happen.)
Anyway, this is why I prefer operating systems whose source code I can view and modify. It is nicer to find bugs by reading the source code instead of logging into your account and finding all your data gone.
- notwist 17y agoNot to mention the fact that open source system allows other people to view and modify (improve) the source code, even if you personally don't know anything about programming. This problem would be solved instantly in a Linux OS (If it even got through to launch) which is the beauty when compared to proprietary software.
- dchest 17y agoThis is a thread about a bug in the operating system. Please let's not start the whole proprietary vs free thing again.
- jrnkntl 17y agoBecause you've read the source code of user account logins of the OS you're running right now?
- cperciva 17y agoI don't know if he has, but I've read the source code used for user logins in the OS I'm running. Depending on exactly where you draw the line between "code used for user logins" and the rest of the OS, I may have fixed bugs in it, too.
- mahmud 17y agoyou are often the exception rather than the rule, cperciva.
- wrinklz 17y agoIt's the exceptional hackers that generally catch these problems early and patch them before they become a big problem, that is true.
- wglb 17y agoAnd make the patch widely available, rather than remaining silent.
- jerf 17y agoYes, but knowledge about code is very transmittable. The fact that someone like cpercival can examine the code, and has, means that I can just freeride on his analysis, along with everybody else who has also read it. Only a fraction of users need to verify the code for all of use to benefit. And "only a fraction of users" for an open source project can still be a lot more users than Microsoft can bring to bear, and a higher caliber of users, too. Of course, Microsoft could do most of the same thing if they opened their source. People would read that too. But that's another issue, of course.
- m_eiman 17y agoThere's a slight problem with the "google the problem, find a patch and apply it": if you can't read and understand the patch, you're in no better (and probably worse) shape than you were before, security-wise. In some ways having a late patch from a trusted source is better than a quick one from some random place on the net. The best would be quick, trusted patches, of course. A GPG-style web of trust validation of patches, maybe?
- gmartres 17y agoTypically, the guy who found the flaw and fixed it will submit it to the upstream developers which hopefully will be able to tell if the patch can be trusted or not, apply it to the development repository, eventually release a patched version, and warn vendors(mostly, Linux distributions) to upgrade. The user only has to keep up to date.
- viraptor 17y agoI think he means that if the bug was in some open-source system, we could expect a patch to be ready from someone a few hours after such announcement, instead of "as of yet, Apple has been silent."
- omouse 17y agoMore coders should be reading source code. Thanks for the idea, gonna spent a few hours reading the user account logins shit for GNU/Linux now ;p
- ionfish 17y agoSurely these two things aren't exclusive? One could log into one's account on a (Linux|BSD|etc.) installation and find all one's data gone, then read the source code to find out what went wrong. I presume you don't check the complete source code for your operating system before installing it, just to see if there are any bugs there.
- borism 17y agoBesides, checking all "OS" source code won't save you. You'll also need to read all source code for the compiler etc. as proven by Ken Thompson: http://cm.bell-labs.com/who/ken/trust.html http://cm.bell-labs.com/who/ken/trust.html
- randallsquared 17y agoI don't think anyone is suggesting that this is malicious, and any compiler-only bug that didn't affect only compiling would almost have to be.
- dchest 17y agoYes, the deletion of data is intentional: "When guest user logs out, all information and files in the guest account's home folder are deleted." However, it deletes user's data instead of guest's.
- borism 17y agoPerhaps Snow Leopard marks all users as guests during install (with extended attribute or something), then when you have used Guest account starts to delete all guest files/folders. BTW, I would expect it to be in some shell/Apple script anyway, so Open/Closed Source argument doesn't really stand here.
- vorador 17y agoyes, but you don't know which program calls this script and what for.
- dchest 17y agoBut you can find out! http://opensource.apple.com/release/mac-os-x-1061/ http://opensource.apple.com/release/mac-os-x-1061/
- pbhjpbhj 17y agoRemember you don't have a right to modify a script simple because you can. Usually modification of a copyright work is forbidden and I'll bet Apple strictly disclaim any ability to modify which would otherwise be fair use.
- rcoder 17y agoHave you heard of a little something called Fair Use? If you were to modify one of Apple's system utilities and then distribute it, you could easily run afoul of copyright. Simply making a local modification in-place, however, is no more illegal than installing a new hardware driver, changing your shell prompt, or downloading and using Firefox in place of Safari. Now, if you changed some piece of the system in order to circumvent FairPlay, or some other DRM component, then you might be running afoul of the DMCA. Not the same thing as copyright violation, however.
- transmit101 17y agoThe point of an OS is that it abstracts away these details, so that I don't have to bother about them. I just want my OS to work, regardless of whether it's open source or not.
- statictype 17y ago>It is nicer to find bugs by reading the source code instead of logging into your account and finding all your data gone. And yet, having the source open did nothing to prevent the Debian SSL-cert bug from happening. Perhaps it got patched faster because the source was open, but the bug was in there for quite some time before it got caught.
- jrockway 17y agoThere is a difference in detectability of "all my files get erased" and "a number isn't random enough". The second one is easily missed by a lot of people. If Windows or OS X has a similar bug, my guess is that it will never be found.
- Nwallins 17y ago... outside of black hat circles.
- tedunangst 17y agoThere's also a subtle point that lots of people have looked at OpenSSL and trusted it, but not everyone knew that Debian-SSL was just a little different. Lots of people have looked at the Windows number generator (or its results) to see if it's wrong. Lots of people have looked at OpenSSL too. But the place they are likely to look is the official releases, not the distro forks. Being open source allows many small variations to exist. It's not enough to know you're using open source and that a million eyeballs have looked at it. Have the million eyeballs actually looked at the exact source you are running?
- Zev 17y agoIf I had to guess, I would say that user accounts are part of Darwin, not Aqua. If that is the case, you can still view (and modify) the source code.