Slashdot Mirror


The 'App' You Can't Trash: How SIP is Broken in Apple's High Sierra OS (eclecticlight.co)

A reader shares a blog post that talks about why Mac running High Sierra 10.13.2 (and other versions near it) refuses to let users uninstall some third-party applications easily. For instance, when users attempt to uninstall BlueStacks, an Android emulator, the Finder shows this warning: "The operation can't be completed because you don't have the necessary permission." The blog post looks into the subject: The moment that we see the word permission, all becomes clear: it's a permissions problem. So the next step is to select the offending item in the Finder, press Command-I to bring up the Get Info dialog, and change the permissions. It does, though, leave the slight puzzle as to why the Finder didn't simply prompt for authentication instead of cussedly refusing. Sure enough, after trying that, the app still won't go and the error message is unchanged. Another strange thing about this 'app' is that it's not an app at all. Tucked away in a mysterious folder, new to High Sierra, in /Library/StagedExtensions/Applications, its icon is defaced to indicate that the user can't even run it. Neither did the user install it there. Trying to remove it using a conventional Terminal command sudo rm -rf /Library/StagedExtensions/Applications/BlueStacks.app also fails, with the report Operation not permitted.


High Sierra leaves the user wondering what has happened. There's nothing in Apple's scant documentation to explain how this strange situation has arisen, and seemingly nothing more that the user can do to discover what is wrong, or to do anything about it. The clue comes from probing around in Terminal, specifically using a command like ls -lO /Library Try that in High Sierra, and you'll see drwxr-xr-x@ 4 root wheel restricted 128 2 Jan 13:03 StagedExtensions

There are two relevant pieces of information revealed: the @ sign shows that directory has extended attributes (xattrs), and the word restricted that it is protected by System Integrity Protection (SIP). A quick peek inside /Library/StagedExtensions/Applications/BlueStacks.app shows that it is a stub of an app, lacking any main code, but it does contain a kernel extension (KEXT) which is also protected by SIP, by virtue of being inside a SIP-protected folder. > ls -lO /Library/StagedExtensions/Applications
drwxr-xr-x 3 root wheel restricted 96 2 Jan 13:03 BlueStacks.app So how did this third-party kernel extension end up in this mysterious folder, complete with SIP protection?

112 of 164 comments (clear)

  1. SIP? by Anonymous Coward · · Score: 5, Insightful

    Please STOP using existing acronym. SIP has already been in use by something else:

    https://en.wikipedia.org/wiki/Session_Initiation_Protocol

    By the headline, I was expecting an article to be about how SIP softphones were broke in MAC OS.

    1. Re:SIP? by grasshoppa · · Score: 2

      Had the same impression. Was coming in here to post, "Back in my day, every provider broke SIP in their own unique way. Did we whine about it? Well, yes, but then we worked around it.

      Get off my lawn".

      --
      Mod me down with all of your hatred and your journey towards the dark side will be complete!
    2. Re:SIP? by Hal_Porter · · Score: 1, Redundant

      Please STOP using an existing acronym. SIP is already in use by something else

      https://en.wikipedia.org/wiki/Standard_Interchange_Protocol

      --
      echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
    3. Re:SIP? by Bing+Tsher+E · · Score: 1

      Single Inline Package.

      Various leaded chips, and resistor arrays are arranged in this fashion.

    4. Re:SIP? by grasshoppa · · Score: 1

      K, but is that contextual relevant?

      Both the package mentioned in the article and SIP are software applications, and what you put forth is a hardware configuration. It's not unreasonable to assume folks wouldn't confuse them.

      --
      Mod me down with all of your hatred and your journey towards the dark side will be complete!
    5. Re:SIP? by K.+S.+Kyosuke · · Score: 1

      But you're much more likely to have Session Initiation Protocol software in your computer than Standard Interchange Protocol software. (Or Single Inline Packages, for thay matter.)

      --
      Ezekiel 23:20
    6. Re:SIP? by ArtemaOne · · Score: 4, Funny

      Shelter In Place
      Self Inspection Program
      Serial Interface Protocol
      System Implementation Plan
      Systems Integration Plan
      Summer Internship Program
      Share Incentive Plan
      Signal Image Processing
      Sooner If Possible

    7. Re:SIP? by Hal_Porter · · Score: 5, Informative

      I use the SIP to do research for the package I'm writing to automate my SIP which I'm writing using SIP. Thanks to the SIP my phone service is good and I don't need to use SIP to phone people.

      --
      echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
    8. Re:SIP? by Miser · · Score: 1

      Me too! (says an AOL'er) :)

      I had the first same impression, then read the article (shock! horror!) and thought to myself "I thought SIP was for VoIP & such...."

      I welcome you on my lawn.

      -Miser

    9. Re:SIP? by K.+S.+Kyosuke · · Score: 4, Funny

      I imagine you wrote all this while smugly sipping tea. ;)

      --
      Ezekiel 23:20
    10. Re:SIP? by flopsquad · · Score: 1

      Please STOP using existing acronym.

      Nice try, World Wildlife Fund sockpuppet!

      We don’t have to listen to you and your program of Complete acronym totalitarianism (everywhere, everywhen, everywhich, everywhat, everywhether), better known as “Cat5e”.

      --
      Nothing posted to /. has ever been legal advice, including this.
    11. Re:SIP? by suutar · · Score: 1

      all while you SIP your beverage of choice!

    12. Re:SIP? by DontBeAMoran · · Score: 1

      Stop Insignificant Postings

      --
      #DeleteFacebook
    13. Re:SIP? by Excelcia · · Score: 1

      Sure, before SIP was System Integrity Protection is was Session Initiation Protocol. But before it was Session Initiation Protocol it was Single Inline Package. Before that it was something different. I'm sure in an acronym dictionary you'll find a few dozen others.

      You are not the arbiter of what an acronym means. I'm not registering my acronyms with you before I use them, as much as you seem to want the job. And we're not impressed that you know what Session Initiation Protocol is. If you really knew what it was, you'd be able to deduce from the context of the post that the story wasn't about it. Session Initiation Protocol was hopeless broken the day it was penned, it being broken or breaking something else somewhere is old news. Not even Slashdot would post about something that old.

    14. Re:SIP? by FatdogHaiku · · Score: 2

      Given the issue in the summary I think it needs to stand for:
      Some Insidious Process

      --
      You have the right to remain sentient. If you give up the right to remain sentient, you will be elected to public office
    15. Re:SIP? by flopsquad · · Score: 1

      Aside: When did links stop working?

      --
      Nothing posted to /. has ever been legal advice, including this.
    16. Re:SIP? by Hal_Porter · · Score: 1

      I was but the SIP memory in my PC - powerful and modern 80386 worth $15 - became loose and I had to put my tea down to reseat it.

      --
      echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
    17. Re:SIP? by LynnwoodRooster · · Score: 1

      From a sippy cup no less!

      --
      Browsing at +1 - no ACs, I ignore their posts. So refreshing!
    18. Re: SIP? by Hal_Porter · · Score: 2

      https://en.wikipedia.org/wiki/SIPP_memory

      Apparently some early STEs used SIP modules

      http://info-coach.fr/atari/har...

      They were used on a few 80286 and 80386 machines too.

      --
      echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
    19. Re:SIP? by mrops · · Score: 1

      Agree 100%

    20. Re:SIP? by Z00L00K · · Score: 1

      Thanks! I got badly confused myself.

      --
      If builders built buildings the way programmers wrote programs, then the first woodpecker would destroy civilization.
    21. Re:SIP? by Hal_Porter · · Score: 2

      SPWOWIBTAIIICTOE - So perhaps write out what is behind the acronym if it isn't immediately clear to everyone.

      --
      echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
    22. Re:SIP? by alexgieg · · Score: 1

      I use the SIP to do research for the package I'm writing to automate my SIP which I'm writing using SIP. Thanks to the SIP my phone service is good and I don't need to use SIP to phone people.

      That's what the abbr HTML tag is intended to solve. Evidently no one used it for anything remotely useful, but one can imagine text editors implementing them automatically from a dictionary and asking writers to select between the alternatives if there are several and the context doesn't make it clear which one should be the default.

      --
      Conservatism: (n.) love of the existing evils. Liberalism: (n.) desire to substitute new evils for the existing ones.
  2. Kind of how by kilodelta · · Score: 2

    On Windows 10 you can't kill Cortana. So I just take the route of blocking all access to microsoft's Bing because that is what I found Cortana using to phone home.

    1. Re:Kind of how by Megol · · Score: 1

      Really? My system doesn't show it running. Microsoft didn't make it easy though which is yet another count against using their products.

    2. Re: Kind of how by sexconker · · Score: 3, Informative

      Last update: Nov. 10, 2016

      There have been 2 major Windows 10 updates since that thing was last updated. There's no way it still manages to block all of the shit, if it ever did.

    3. Re:Kind of how by Darinbob · · Score: 1

      Except that Cortan is a Microsoft product and a part of Windows 10. This article is talking about third party apps that won't uninstall.

  3. Andy, another android emulator by angel'o'sphere · · Score: 2

    I warn about that one.
    It asks for privileges to install (Mac OS X Applications usually don't need privileges, you just copy them with drag and drop into the Applications folder), then tries to install (with a warning) a "Yahoo Toolbar" and silently installs "Mac Keeper" a mal ware.
    But it is easy to remove with sudo "rm ..." ... but I think I used an chmod or chown before that ... don't remember what I actually needed to do to remove it.
    There was a background process running, watching the killing of the Mac Keeper process, so you needed to kill that first, remove the exe of that process and then kill Mac Keeper and remove the "Andy" programm.

    --
    Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
    1. Re:Andy, another android emulator by MrLint · · Score: 2

      Thus belies another issue with /Applications on macos. Being in the admin group you have permissions to access /Applications beyond that of a normal user. So to say that you dont 'usually need privileges' You do, you already have them. However this is really a problematic behaviro of MacOS, it really should be triggering a superuser exception for that folder.

    2. Re:Andy, another android emulator by angel'o'sphere · · Score: 1

      Sorry, that is nonsense.
      You need no special priviledges because a copy of an app you 'install' is just a copy with no special rights.
      If a user double cliccks on the app it runs with the users privileges.
      Why would you need any special privileges to 'install' it?
      Exactly that above is the reason you should be wary IF THE OS ASKES FOR super user rights, beccause for ordinary stuff they are not needed and there never was an intentin or reason to need them!

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
    3. Re:Andy, another android emulator by MrLint · · Score: 1

      This is the permissions for /Applications

        0 drwxrwxr-x+ 69 root admin 2346 Dec 26 09:05 Applications

      Please note the group permissions 'admin' and the file system permissions in octets.
      d - directory flag and then Owner (root) [RWX] Group (admin) [RWX] and Other [RX].

      Members of the admin group and hot write to /Applications. Users who are not in the admin group will get prompted for elevation.

    4. Re:Andy, another android emulator by angel'o'sphere · · Score: 1

      I doubt users not in the admin group get promped for elevation.
      In that case they only could be elevated to root, and that requires to be in the wheels group.

      But I make a test user to see :)

      I actually forgot about what the 'argument was' ... I was about to sent my ls -ld /Applications output at the moment, rofl
      My main user is in the admins group though.

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
  4. So turn it off by mccalli · · Score: 1

    So you go to security in preferences, and turn it off. That's also where you'll find your kernel extension which will not have been granted rights to run until you approve it in that preference pane.

    Using preferences is hard now?

    1. Re:So turn it off by Kenja · · Score: 4, Informative

      Turn what off? SIP? You can't, there is no option to disable it. It's always on as part of Apple's continued effort to boil the frog until no one notices OS X is now iOS X.

      You can, but I wouldn't recommend it. Just use the kextunload command to turn off a kernel extension, it can then be deleted.

      --

      "Have you ever thought about just turning off the TV, sitting down with your kids, and hitting them?"
    2. Re:So turn it off by phayes · · Score: 2

      What? Informative information on kernels in a Slashdot post!?! I'd thought that had left along with Taco...

      To find the list of loaded kexts use "kextfind -loaded".

      --
      Democracy is a sheep and two wolves deciding what to have for lunch. Freedom is a well armed sheep contesting the issue
    3. Re:So turn it off by Anonymous Coward · · Score: 1

      turning of SIP is a little bit harder than that
      Disable SIP on Mac OS El Capitan:
      Click the menu.
      Select Restart...
      Hold down Command-R to boot into the Recovery System.
      Click the Utilities menu and select Terminal.
      Type csrutil disable and press return.
      Close the Terminal app.
      Click the menu and select Restart....

    4. Re:So turn it off by ilsaloving · · Score: 1

      Yes, because you really want the average user who barely understands the difference between left and right mouse clicks, to have the ability to easily modify kernel modules.

      Grow up.

    5. Re:So turn it off by aaarrrgggh · · Score: 1

      Agree; for most users it is a blessing.

      For some users, OSX (whoops... MacOS) is becoming a real pain in the ass. They eliminated FTP and Telnet, and they make a number of things that used to be very easy downright painful. Every update I cringe because I need to figure out how to fix their broken implementation of SMB in the new version, make sure my local dhcp server for my office's non-routable VLAN is still intact...

      It almost makes me long for systemd. j/k.

    6. Re: So turn it off by ilsaloving · · Score: 1

      Thank you for demonstrating that you have no idea what you (or we) are talking about. We're talking about Kernel Extensions.

      Maybe you should spend less energy being indignant, and more into researching what we're talking about.

    7. Re: So turn it off by Malc · · Score: 2

      Try cleaning up a Windows app that installed device drivers and crap in the registry, and whose uninstaller didn't clean-up these up properly. There's no need to get frothy mouthed about Apple when it's easy enough to contrive similar situations on other platforms. This kind of thing probably happens more frequently on other platforms.

    8. Re:So turn it off by TheFakeTimCook · · Score: 1

      Yes, because you really want the average user who barely understands the difference between left and right mouse clicks, to have the ability to easily modify kernel modules.

      Grow up.

      Perfect response!

    9. Re: So turn it off by TheFakeTimCook · · Score: 1

      Try cleaning up a Windows app that installed device drivers and crap in the registry, and whose uninstaller didn't clean-up these up properly. There's no need to get frothy mouthed about Apple when it's easy enough to contrive similar situations on other platforms. This kind of thing probably happens more frequently on other platforms.

      Exactly!

      Or, on Windows, just TRY to Delete/Rename/Anything-Else to a File that Windows has deemed "In use by another (unnamed) Process".

      OMFG! THAT little all-too-easily-encountered "nicety" requires a Reboot, which is really fun when it happens on a frickin' Production File Server...

    10. Re:So turn it off by v1 · · Score: 1

      mycomputer:~ root # csrutil status
      System Integrity Protection status: disabled.

      guess what, it's disabled! The trick is you have to boot off the recovery partition to flip the bit. It's similar to the process of unsetting the SCHG flag on a file. You can set it with root access, but you can't UNset it if kernel protection mode has been elevated by booting off a normal OS. That is a one-way trip, and a restart is the only way to unset it. In other words, no, you cannot use system prefs to disable SIP. That's kind of the point... it prevents a user from getting social-engineered into giving malware their password (which, depending on the user, can be very easy to pull off) and then simply SUDO a command to turn off SIP. Forcing the user to boot off the recovery partition to turn off SIP has two huge advantages:

      1. novice users are unlikely to be willing / able to do it
      2. malware can't turn it off regardless of how successful they are at deceiving the user

      The idea here is to address "The user is the weakest point in the security of most computer systems".

      Here's a decent guide on how to disable it. Or how to modify other associated settings such as where a machine can netboot from:

      https://www.macworld.com/artic...

      Anyway, one of the things SIP does is it protects bundled applications in the /Applications folder from being modified or deleted. Other apps installed in the /Applications folder aren't supposed to be included, things like Firefox or Photoshop for example. It sounds like there's a bug here that's causing some installed apps to get granted SIP protection when they should not. Disable SIP and you should be able to remove those apps. SIP supersedes root, (which is why you can't SUDO it off) and so you can't just boot into single user mode to remove those apps if SIP is enabled

      I turn it off on my computer because I'm not an easy mark to social engineer, and I occasionally need to do things that SIP prevents me from doing. (or causes me a hassle - Operation Not Permitted when I am logged in as root just pisses me off, I'm not an idiot so stop telling me what I can and can't do with my own computer!) Better than 98% of users will never have a good reason to disable SIP though. So the issue is more about clickbait and headlines than anything else. Even the crowd here probably doesn't get anywhere over 20% ever having a reason to disable it.

      --
      I work for the Department of Redundancy Department.
    11. Re: So turn it off by Demena · · Score: 1

      Lsof revision 4.89 lists on its standard output file information about files opened by processes for the following UNIX dialects:

      Apple Darwin 9 and Mac OS X 10.[567]

      FreeBSD 8.[234], 9.0, 10.0 and 11.0 for AMD64-based systems

      Linux 2.1.72 and above for x86-based systems

      Solaris 9, 10 and 11

      Where the hell do you think Microsoft got the idea from? Their staff?

    12. Re: So turn it off by Malc · · Score: 1

      Really? Youâ(TM)d be the first person who found it easy to find out how to unlock files like â$Extend\$RMMetadata\TXfLogâ(TM) when you canâ(TM)t safely eject an external USB drive.

    13. Re: So turn it off by Malc · · Score: 1

      And BTW, in case somebody comes across this via a Google search... this is most commonly resolved by going to Disk Manager and marking a drive offline first. This issue has been annoying and confounding people for years

    14. Re:So turn it off by phayes · · Score: 1

      You'll need to get off your mother's tit before telling me to grow up, junior.

      New kexts are not loaded nor protected by SIP initially, they are placed in StagedExtensions and show up in System Preferences>Security & Privacy where "average users" can authorize them.

      If "average users" are authorizing kexts, there should also be a GUI for "average users" to remove them.

      --
      Democracy is a sheep and two wolves deciding what to have for lunch. Freedom is a well armed sheep contesting the issue
    15. Re: So turn it off by phayes · · Score: 1

      It was amusing to watch the 7 digit /. user tell me to grow up. It's hilarious watching him try to snootily tutor you.

      --
      Democracy is a sheep and two wolves deciding what to have for lunch. Freedom is a well armed sheep contesting the issue
    16. Re: So turn it off by Ash-Fox · · Score: 1

      Try cleaning up a Windows app that installed device drivers

      That's easy, same method since Windows 2000. Open up device manager, choose view, show hidden devices, right click uninstall relevant devices (this will also uninstall the driver).

      and crap in the registry

      Easily done with a tool like ccleaner.

      There's no need to get frothy mouthed about Apple when it's easy enough to contrive similar situations on other platforms

      On Windows, it's a non-issue to solve in my experience.

      --
      Change is certain; progress is not obligatory.
    17. Re: So turn it off by Brockmire · · Score: 1

      Just use Unlocker. Usually saves from a reboot.

    18. Re: So turn it off by Malc · · Score: 1

      It's also a non-issue for macOS, and these things are generally easier than Windows. This story is fairly daft. So Apple change how they do something and it's taking people a little while to figure this out and understand it? So what?

    19. Re: So turn it off by TheFakeTimCook · · Score: 1

      Just use Unlocker. Usually saves from a reboot.

      Didn't know about that.

      Thanks for the tip!

  5. with imac pro you can't remove storage to offline by Joe_Dragon · · Score: 1

    with imac pro you can't remove storage to remove it offline as well. Coming soon in mac os more lock down and down the road limited drivers for GPU's in TB docs. rootless = no updating build in ATI drivers and no NVIDIA ktexts

  6. kextunload command... by Kenja · · Score: 5, Informative

    Use the kextunload to unload a kernel extension. It can then be deleted.

    --

    "Have you ever thought about just turning off the TV, sitting down with your kids, and hitting them?"
  7. does apple need an installer / uninstaller system? by Joe_Dragon · · Score: 1

    does apple need an installer / uninstaller system? Like windows MSI?

  8. Re:does apple need an installer / uninstaller syst by Kenja · · Score: 1

    It has one. It uses packages, similar to many other UNIX systems. However, there is no enforcement for apps to use them and there is no default package manager. Frankly, I avoid packages since they can do things like install kernel extensions.

    --

    "Have you ever thought about just turning off the TV, sitting down with your kids, and hitting them?"
  9. There's a reason by 93+Escort+Wagon · · Score: 1, Informative

    I've stayed on El Capitan (tried Sierra - twice - and eventually rolled back to El Capitan - twice). Unfortunately it will stop getting security updates sometime this summer, though... at which point I'll have to pick my poison and "upgrade".

    --
    #DeleteChrome
    1. Re:There's a reason by ctilsie242 · · Score: 1

      I would say the biggest reason to move to 10.13.x is for APFS. It took Apple a long time, but APFS is a decent filesystem. Of course, it would have been nice if Apple licensed ZFS way back when.

    2. Re:There's a reason by antdude · · Score: 1

      Yep, that is why I don't always upgrade for major new versions.

      --
      Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
    3. Re:There's a reason by TheFakeTimCook · · Score: 1

      I would say the biggest reason to move to 10.13.x is for APFS. It took Apple a long time, but APFS is a decent filesystem. Of course, it would have been nice if Apple licensed ZFS way back when.

      No.

      It would have been nice if Oracle had just let ZFS remain Truly Free and Open.

    4. Re:There's a reason by xploraiswakco · · Score: 1

      Apple was seriously considering a switch to ZFS when Oracle's bought Sun, which then put ZFS's status as questionable, which killed Apple's interest in it.

    5. Re:There's a reason by ctilsie242 · · Score: 1

      I learned that the hard way. At least you can create an encrypted APFS volume and install macOS on that, but that doesn't help if it is a default install.

      Apple just seems to like giving the middle finger to the enterprise. I'm guessing they expect IT to use MDM tools like JAMF than standard imaging practices.

  10. Unix by fluffernutter · · Score: 1

    A unix system is what you want, a unix system is what you get.

    --
    Laws are rules for the court, but merely a bottom bar to hit for life. Think beyond laws in your actions always.
    1. Re:Unix by iggymanz · · Score: 2

      no, SIP is Apple's own invention

      buy Apple, get Apple weirdness.

      still, we were given choice and I like the mac I have from my employer more than windows box I could have had.

    2. Re:Unix by fluffernutter · · Score: 1

      I had the option, but with the kind of work I do a mac would have been lower powered and I would find OS/X way too inefficient.

      --
      Laws are rules for the court, but merely a bottom bar to hit for life. Think beyond laws in your actions always.
    3. Re:Unix by TheRaven64 · · Score: 4, Informative

      SIP is basically the flags part of BSD securelevel 1. At securelevel 1 you can set the user and system immutable flags, but you can't remove them. If you want to, you need to reboot at securelevel 0 (or -1), use chflags to remove the relevant flags, and then delete the files (you can always increase the securelevel, you can't lower it without a reboot). On most BSD systems, securelevel 1 comes with some other restrictions related to opening certain devices, which are not enforced by XNU for SIP. This functionality dates back to 4.4BSD.

      --
      I am TheRaven on Soylent News
    4. Re:Unix by iggymanz · · Score: 1

      macosx had nothing like that though, SIP is recent

  11. Re:does apple need an installer / uninstaller syst by fluffernutter · · Score: 1

    Also they don't always clean up very nicely once you remove them, probably due to not everything being kept within their bundle directory. Too much smoke and mirrors, like 'specially' named directories. As parent mentions, there is not one standard way to install. Sometimes you run an executable, sometimes you copy a file into the app directory. Sometimes there are strange folders inside the install screen. It's kind of a mess.

    --
    Laws are rules for the court, but merely a bottom bar to hit for life. Think beyond laws in your actions always.
  12. Re:does apple need an installer / uninstaller syst by Kenja · · Score: 1

    My rule of thumb is to avoid anything but "drag the app into your apps folder". Means I don't get to use Flash or Java, but I'll manage.

    --

    "Have you ever thought about just turning off the TV, sitting down with your kids, and hitting them?"
  13. Re:It's not your computer. It's Apple's by ctilsie242 · · Score: 1

    Windows has had something very similar since the XP days, where if one blows away a DLL, Windows silently copies it back.

  14. Re:A WUH? by DontBeAMoran · · Score: 1

    Did you mean Sergei Mikhailovich Eisenstein or did you write Albert Einstein's name wrong in an attempt to make your post double-funny?

    --
    #DeleteFacebook
  15. Re:It's not your computer. It's Apple's by DontBeAMoran · · Score: 2

    One more reason to stay with 10.9.5

    The unreadable thing gray fonts of the latest versions being the primary reason.

    --
    #DeleteFacebook
  16. Re:does apple need an installer / uninstaller syst by ctilsie242 · · Score: 2

    It has a packaging system, or one just copies the app to the Applications folder. However, uninstalling is a completely different matter. macOS has no real standard way to uninstall packages, other than to drag the application to the trash, or click the x when the icons wiggle in the Launcher.

    macOS really needs a better packaging system. What would be ideal is not just one that can handle installs and clean uninstalls, but to be able to back off updates without reinstalling, similar to AIX's installp. It also would be nice to have a repair mechanism so that a damaged install can be backed out completely. Other package managers are transactional, but it would be nice to have a cleanup process to find broken, not completed installs and remove them.

    As an added bonus, if signatures and such are done right, SIP could be used to protect the integrity of one program from another, as a way to mitigate rootkits.

  17. Re:It's not your computer. It's Apple's by TheRaven64 · · Score: 4, Insightful

    SIP can be disabled. Generally, you don't want to, because it does what it says: protects the integrity of the system, by preventing the user from modifying system files. If you really want to, then reboot into recovery mode, disable SIP, and then reboot into normal mode. This is no different from the procedure for lowering the default securelevel on a BSD system (reboot to single-user mode, tweak the config file, boot to multiuser), does that mean that when you use FreeBSD then the FreeBSD project owns your computer?

    --
    I am TheRaven on Soylent News
  18. AC's are ignorant. by phayes · · Score: 4, Informative

    The reason SIP was protecting the kext is because it was loaded into the actively running kernel. Unload the kext with "kextunload kextfile" and it is no longer protected by SIP and can be removed.

    Yes, Apple could make this easier do so without using a shell. Ex: By putting a button in Preferences>Security that pops up a window displaying loaded kexts in a list & a button to unload them.

    --
    Democracy is a sheep and two wolves deciding what to have for lunch. Freedom is a well armed sheep contesting the issue
    1. Re:AC's are ignorant. by Darinbob · · Score: 1

      The problem seems to be third party apps get installed easily, but don't refuse to be uninstalled afterwords without a lot of specialized knowledge. This rarely happened in the past I think because most apps didn't use kernel extensions and those that did usually required specialized instructions to install in the first place.

      Definitely the error message should be changed to make it clear what's going on. OSX has been getting more inscrutable over time.

    2. Re:AC's are ignorant. by phayes · · Score: 1

      All true but (IIRC):
      - New kexts need to be authorized to be moved from /Library/StagedExtensions to /Library/Extensions
      - You authorize this in Security Preferences>Security & Privacy>General where all StagedExtensions show up
      - Once you authorize the kext, it gets loaded (where they get protected by SIP) but poof, it never shows up in the Mac GUI anymore.

      If there is a GUI to authorize new kexts, there should also be a GUI to unload them.

      In my opinion any app that adds kexts like Bluestack should be publishing clear info during the install process on how to remove them.

      --
      Democracy is a sheep and two wolves deciding what to have for lunch. Freedom is a well armed sheep contesting the issue
  19. Back in the good old days you could force delete even OS stuff that would wreck the OS, and open files that would crash the computer. This made it easy to get rid of viruses.

    Whether they changed this to stop OS problems, or to stop viruses from using it to install themselves, it made virus removal harder as virus writers coopted it to prevent their own removal, when the OS people no doubt thought they had the upper hand.

    --
    (-1: Post disagrees with my already-settled worldview) is not a valid mod option.
  20. Re:does apple need an installer / uninstaller syst by TheRaven64 · · Score: 1

    Apple has a standard .pkg format and a standard tool for installing, but no standard way of uninstalling. Most apps are just bundles (folders that appear to be single files in the GUI unless you right-click and say 'show contents') and so are uninstalled by simply deleting them (and are installed by just dragging them to where you want them to live), so this isn't a problem for most things. It is annoying for other things though, and sufficiently annoying that there are third-party tools that will read the manifest from a .pkg file and delete everything for you (.pkg files install a plist containing all of the things that they've installed in /Library/Receipts).

    Most things installed from .pkg files can be uninstalled by running 'lsbom -pf /Library/Receipts/{installer name} | xargs rm -rf ', but that doesn't help you if it ran some post-install script that put files elsewhere.

    --
    I am TheRaven on Soylent News
  21. Re:does apple need an installer / uninstaller syst by TheRaven64 · · Score: 1

    And, immediately after posting that, I discovered the pkgutil tool, so you should replace the lsbom command with 'pkgutil --files {bundle identifier}'. It still doesn't include an uninstall command (though it does allow you to repair and verify installed packages).

    --
    I am TheRaven on Soylent News
  22. C'mon /. you're slipping by LynnwoodRooster · · Score: 1

    Clearly the issue is you're uninstalling it wrong!

    --
    Browsing at +1 - no ACs, I ignore their posts. So refreshing!
  23. You know, SIP by Provocateur · · Score: 1

    Stop it people! Stop Insignificant postings!!

    --
    WARNING: Smartphones have side effects--most of them undocumented.
  24. Curly quotes by tepples · · Score: 3, Informative

    Aside: When did links stop working?

    Based on the curly quotes and en.m.wikipedia.org hostname I see on that link's href attribute value in View Source, links in your comments stopped working roughly when you enabled automatic curly quotes on your iPhone or iPad or upgraded your iPhone or iPad to a version of iOS that enabled automatic curly quotes by default. Quoted attribute values in HTML5 must use Basic Latin quotation marks, be they single or double.

    1. Re:Curly quotes by flopsquad · · Score: 1

      That was precisely, succinctly, the answer. +3 Mobile Internets to you, sir!

      --
      Nothing posted to /. has ever been legal advice, including this.
  25. Re:It's not your computer. It's Apple's by Topwiz · · Score: 1

    That is for operating system files, not applications.

  26. Re: does apple need an installer / uninstaller sys by tepples · · Score: 1

    The problem here is that the application includes a kext (kernel module) for some purpose, and applications that include a kext cannot be distributed through Mac App Store.

  27. Re:It's not your computer. It's Apple's by lgw · · Score: 1

    As is SIP, it's just that somehow the app was marked as a system file (technically, installed to a system directory). That latter part is the problem: seems like a malware magnet. It makes sense for parts of the kernel, but for apps?

    --
    Socialism: a lie told by totalitarians and believed by fools.
  28. Mac app store censorship and to much sandboxing by Joe_Dragon · · Score: 1

    Mac app store has content censorship and to much sand boxing

    1. Re:Mac app store censorship and to much sandboxing by rjstanford · · Score: 1

      Of course part of that is to disallow this specific situation from happening, where an application took what is arguably too many permissions and buried itself deep into your system.

      If you want guaranteed cleanup, you're going to also get some restrictions on how much mess apps can make.

      --
      You're special forces then? That's great! I just love your olympics!
  29. Re:does apple need an installer / uninstaller syst by Pfhorrest · · Score: 1

    No, software needs to not rely on installers / uninstallers. I'm automatically suspicious of any bit of software that comes with an installer (on a Mac OS system), because most software doesn't need it: you copy the app to your applications folder (or, for that matter, anywhere you want) and that's it. That's all normal user applications should need. Anything that wants to "install" itself makes me wonder what kind of wonky shit it's doing to my system besides just putting an app into the applications folder.

    --
    -Forrest Cameranesi, Geek of all Trades
    "I am Sam. Sam I am. I do not like trolls, flames, or spam."
  30. Mac sysadmin 101 by guruevi · · Score: 1

    You unload the kernel extension, if not, boot into single user mode. How did the thing get there: you or your user installed it with an admin password. It's not a standard app that comes with OS X so there is no other way it got installed.

    --
    Custom electronics and digital signage for your business: www.evcircuits.com
  31. Cussedly by deesine · · Score: 1

    Great word to use when describing apple os.

    --
    damaged by dogma
  32. Re:I beat something LIKE this on Windows... apk by guruevi · · Score: 1

    As any seasoned Unix sysadmin knows: it's called single user mode. It avoids SIP, Gatekeeper and pretty much all kernel extensions. You can then kextunload or simply delete the file and (optionally) rebuild the kernel cache.

    --
    Custom electronics and digital signage for your business: www.evcircuits.com
  33. Re:Mr. Obvious is obvious by avgjoe62 · · Score: 1

    The Department of Redundancy Department has been made redundant. If you have any questions please consult the Office of Superfluous Offices.

    --

    How come Slashdot never gets Slashdotted?

  34. Words With Pandas by tepples · · Score: 1

    Did World Wildlife Fund sue Zynga over Words With Friends or something?

    1. Re:Words With Pandas by flopsquad · · Score: 1

      No they forced the (former) World Wrestling Federation, also "WWF" up to that point, to change their name to World Wrestling Entertainment with "WWE" acronym. As an IP attorney, their international, decade-spanning battle over a 3-latter acronym—used as a mark on vastly different goods & services—has always fascinated me.

      But given how strident Wildlife was, I'm a little surprised Words With Friends, the Working Women's Forum, or Windows Workflow Foundation are allowed to exist in peace...

      --
      Nothing posted to /. has ever been legal advice, including this.
  35. Re:It's not your computer. It's Apple's by postbigbang · · Score: 1

    Oddly, that's exactly what the post reference link says.

    Glad you read it.

    Too bad others didn't.

    --
    ---- Teach Peace. It's Cheaper Than War.
  36. Why a kernel module? by steamraven · · Score: 1

    Why does an android emulator need to install a kernel module?

    1. Re:Why a kernel module? by Anonymous Coward · · Score: 1

      It's built on top of Virtual Box, which itself is the source of the kernel modules. Which is what hooks into the kernel. IIRC, to do the hypervisor-style virtualization, since Apple's hypervisor framework is relatively recent (2-3 years old at most), and not exactly what some of these folks are used to. Also things like USB device capture.

    2. Re:Why a kernel module? by SimonTheSoundMan · · Score: 1

      I wouldn't blame the emulator, blame Oracle. The emulator runs off a VirtualBox player VM. I have also found VirtualBox and VMWare to have kernel modules installed on my Mac as well.

  37. mac os classic like BS no system wide uninstall sy by Joe_Dragon · · Score: 1

    mac os classic like BS no system wide uninstall system.

    Back then windows had the windows installer + 3rd party ones. and the system wide uninstall list.

  38. Re:does apple need an installer / uninstaller syst by Darinbob · · Score: 1

    Most "apps" are just directories that are self contained; drag it out of the install media to the install location, and to uninstall you drag it to the trash or delete from the command line.

    The few apps that don't fit into that model are the ones that require a package method (ie, files go into both application and library folders). This is reasonably straight forward to install though, but the uninstall is difficult. I often find there's a readme file or a web support page describing how to uninstall and clean up. Otherwise you search the usual suspected directories for remnants to clean up (libraries, documents, application support).

    So this new problems seems to be some applications that have loaded kernel extensions which is difficult for the average user to know how to undo. And that's where having a good uninstall script will help, but there's no standard Apple way to do this.

  39. Re:does apple need an installer / uninstaller syst by Darinbob · · Score: 1

    There are the special cases though. Ie, an older version of Office kept the Windows model of having a "common" directory. Other apps have non trivial files that have to go into "/Library/Application Support". Apple's own products often have a really complicated web of stuff that happens (ie, xcode-select).

    Apple should have added some standard way to uninstall though, and I suspect they don't because it would mean acknowledging that not everything fits into the user-friendly application bundle model.

    I'm using some eclipse based tools from vendors that are application bundles that do have Java JRE underneath. It does mean a separate copy of JRE for each application which is bulky. It also means that they almost always have an older version of JRE so that the tools are dreadfully slow.

  40. Re: does apple need an installer / uninstaller sys by Darinbob · · Score: 1

    Do lots of users use the Apple Store for applications on a Mac? I know the iphone users do, but it seems somewhat rare on the Mac in my experience. So many tools I use are not on the store anyway, the store requires you to have an Apple ID, and it doesn't fit well into a corporate environment.

  41. Re:First post: It's Apple. Expecting something els by TheFakeTimCook · · Score: 1

    You can dream, but at the end of the day, lather, rinse repeat and it's still just Apple.

    Oh, like no other OS has had the occasional weird permissions issue?

    Gimme a break!

  42. Re:does apple need an installer / uninstaller syst by TheFakeTimCook · · Score: 1

    No, software needs to not rely on installers / uninstallers. I'm automatically suspicious of any bit of software that comes with an installer (on a Mac OS system), because most software doesn't need it: you copy the app to your applications folder (or, for that matter, anywhere you want) and that's it. That's all normal user applications should need. Anything that wants to "install" itself makes me wonder what kind of wonky shit it's doing to my system besides just putting an app into the applications folder.

    I'm with you on that feeling.

    The only exceptions to that rule are genuine Apple Applications. I trust them not to install a keylogger, etc.

  43. but the content censorship needs to go by Joe_Dragon · · Score: 1

    but the content censorship needs to go

  44. Disable SIP, Reboot, Delete App, Enable SIP, Reboo by Proudrooster · · Score: 2

    SIP is there for your protection and the protection of OSX.

    If you really want to get rid of the app, here is how to enable/disable SIP.

    Apple is trying to clean things up under the covers. They have a new modern filesystem (APFS) added SIP back in El Cap which was a solid security move. I realize things have been a bit shaky lately, but I blame on moving 12,000 people into the new spaceship campus . I am surprised all the developers haven't quit.

    As the space ship establishes a new workplace morphology, things will get better. Maybe the ex-NSA'ers will head to Apple and bolster security even more.

  45. Re:It's not your computer. It's Apple's by Bert64 · · Score: 1

    It is a malware target, same as the similar feature in windows... There is plenty of windows malware that uses the system protection features to make removal difficult.

    --
    http://spamdecoy.net - free throwaway anonymous email - avoid spam!
  46. Re:A WUH? by Demena · · Score: 1

    At which?

  47. Re:No Steve Jobs - no vision by Demena · · Score: 1

    Err.... No, OS X is a BSD.

  48. Why can a *third-party* app access SIP at al?! by JimWitte78 · · Score: 1

    I know, I'm late to the party, and I'm sure no-one will answer this.. But why can a third-party application access SIP *at all*? Is it just that it managed to installed a KEXT? If so, why didn't the user get a "do you really want to install this KEXT?" alert once or twice before it was allowed to do that in the first place?