News for hackers. Stuff that matters.
Re:macOS Containers v0.0.1 by smcleod on Tuesday September 26, 2023 @05:31AM (#37656685)
Oh wow… please do not do that folks!
Re:macOS Containers v0.0.1 by nyanpasu64 on Tuesday September 26, 2023 @06:08AM (#37657013)
I disable SIP because I don't want to use an OS where I cannot debug programs which did not consent to be debugged. macOS makes it impossible to inspect failure states I encounter in normal usage (like I can on Linux with debuginfod enabled, or Windows with .pdb files) without first rebuilding the program in debug mode.
Re:macOS Containers v0.0.1 by _joel on Tuesday September 26, 2023 @06:46AM (#37657332)
Surely you can do this with xattr?
Re:macOS Containers v0.0.1 by smcleod on Tuesday September 26, 2023 @06:50AM (#37657370)
I’ve never had problems debugging anything with SIP on.
Re:macOS Containers v0.0.1 by nyanpasu64 on Tuesday September 26, 2023 @07:15AM (#37657599)
My experience is that I was unable to debug Maestral (a Python program) crashing in native Cocoa bindings in LLDB, because the interpreter did not allow itself to be debugged. Mozilla says Firefox acts the same way at https://firefox-source-docs.mozilla.org/contributing/debuggi.... It's possible there's some workaround I'm not aware of, but I ended up disabling SIP just like every non-macOS computer I own.
Re:macOS Containers v0.0.1 by duped on Tuesday September 26, 2023 @11:30AM (#37660819)
Were you debugging a local install of python, or the default python installed as a part of the OS?

If the latter, it's definitely a footgun but you shouldn't be using it for applications. It's a legacy binary for scripts.

Re:macOS Containers v0.0.1 by saagarjha on Tuesday September 26, 2023 @12:41PM (#37661929)
You can't debug system processes or anything with the hardened runtime enabled.
Re:macOS Containers v0.0.1 by diogenes4 on Tuesday September 26, 2023 @07:10AM (#37657553)
Sincerely, why is this your recommendation? What does this protect against and why do you consider it a concern?
Re:macOS Containers v0.0.1 by cj on Tuesday September 26, 2023 @07:16AM (#37657610)
Help doc: https://support.apple.com/en-us/102149#:~:text=System%20Inte....

TLDR: it restricts even the root user from modifying system files. Like the ones that would otherwise be the target of malware.

Re:macOS Containers v0.0.1 by diogenes4 on Tuesday September 26, 2023 @07:31AM (#37657727)
I understand that of course, I'm much more curious why you think this is a concern for people, and/or why you consider this an effective protection.
Re:macOS Containers v0.0.1 by digitalsushi on Tuesday September 26, 2023 @07:46AM (#37657878)
I want that feature on cause I dont want stuff I dont know about looking and changing stuff I dont know about, whether it's running with escalated privileges or not
Re:macOS Containers v0.0.1 by diogenes4 on Tuesday September 26, 2023 @09:04AM (#37658677)
I doubt you (or any human) is capable of enumerating what you don't want looked at. Frankly, I doubt most of this unknown area is covered by SIP at all, and it would be extremely odd if it did. Perhaps you might consider arguing for actual permissions rather than arbitrarily walling off the OS in a way that tangentially benefits the monopoly Apple holds over their own computers.

Wouldn't it be far easier to enumerate what you want an app to access?

Re:macOS Containers v0.0.1 by jmbwell on Tuesday September 26, 2023 @09:57AM (#37659384)
SIP means not messing with the system files, enumerated thusly: /System.

Enumerating what I do want an app to access is handled by Gatekeeper.

Re:macOS Containers v0.0.1 by saagarjha on Tuesday September 26, 2023 @12:42PM (#37661952)
It's actually a larger list available in /System/Library/Sandbox/rootless.conf
Re:macOS Containers v0.0.1 by diogenes4 on Tuesday September 26, 2023 @12:44PM (#37661967)
> SIP means not messing with the system files, enumerated thusly: /System.

...and all its children, which is effectively the entire operating system

> Enumerating what I do want an app to access is handled by Gatekeeper.

Gatekeeper is not capable of this.

Re:macOS Containers v0.0.1 by jmbwell on Tuesday September 26, 2023 @06:18PM (#37666522)
It's among the things Gatekeeper does, isn't it? As configured with PPPC?
Re:macOS Containers v0.0.1 by rakoo on Tuesday September 26, 2023 @01:28PM (#37662769)
Why would it be running with escalated privileges if you don't know what it is ?
Re:macOS Containers v0.0.1 by dkonofalski on Tuesday September 26, 2023 @01:58PM (#37663271)
I feel like you're assuming that applications have to be honest about what they are when they request a user-prompted permission. SIP makes that irrelevant.
Re:macOS Containers v0.0.1 by rakoo on Tuesday September 26, 2023 @03:24PM (#37664560)
No, I'm assuming that you know what you install and that apps run with the same rights your user has. Your user can't touch /System, so shouldn't the app
Re:macOS Containers v0.0.1 by smcleod on Tuesday September 26, 2023 @08:05AM (#37658052)
https://eclecticlight.co/2019/06/19/what-is-sip-and-when-is-...

It’s a core part of how macOS is prevents unauthorised modifications to the operating system and file system by malicious software.