Permissions or sandbox issue in Catalina 10.15.6

About SheepShaver, a PPC Mac emulator for Windows, MacOS X, and Linux that can run System 7.5.3 to MacOS 9.0.4.

Moderators: Cat_7, Ronald P. Regensburg, ClockWise

Post Reply
awado
Student Driver
Posts: 10
Joined: Mon Jul 20, 2020 9:29 pm

Permissions or sandbox issue in Catalina 10.15.6

Post by awado »

After hours of searching and hacking around in terminal I am at loss. I downloaded the latest build of Sheepshaver, unzipped it, placed a valid ROM beside and no matter what I do, it hangs on double clicking. Obviously it seems to be an access problem, because when I start it from terminal with sudo, it works as expected. Log file says:

Code: Select all

Sandbox: SheepShaver(2636) System Policy: allow file-write-xattr /
Violation:       System Policy: allow file-write-xattr /
I also tested it on another Mac, also running Catalina. There it runs without sudo. I tried to figure out any differences, but had no success. Everything regarding permissions and ownership (including xattr) looks the same.

Any help appreciated. Maybe I overlooked something.
Elyus
Tinkerer
Posts: 94
Joined: Wed Mar 21, 2012 12:35 am

Re: Permissions or sandbox issue in Catalina 10.15.6

Post by Elyus »

Not sure if it'll help with your problem, but whenever I test on Catalina, I always have to be careful to add the SheepShaver executable to System Preferences -> Privacy -> Full Disk Access.

Permissions are getting increasingly locked down in macOS, and at some point, the Mac builds of Sheep may need to adopt Apple's sandboxing rules for storing preferences and other items.
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: Permissions or sandbox issue in Catalina 10.15.6

Post by Ronald P. Regensburg »

@ awado
Could there be a permissions issue with your Home folder? Do you (the user) have write permissions to the Home folder?

@ Elyus
It should not be needed to give SheepShaver Full Disk Access. Any specific properties of your builds that could make that necessary?
Elyus
Tinkerer
Posts: 94
Joined: Wed Mar 21, 2012 12:35 am

Re: Permissions or sandbox issue in Catalina 10.15.6

Post by Elyus »

Not that I'm aware of, but Mojave is still my daily driver. What I have done ever since testing with Catalina or Big Sur is set Full Disk Access and leave it that way after having any permission issues.
awado
Student Driver
Posts: 10
Joined: Mon Jul 20, 2020 9:29 pm

Re: Permissions or sandbox issue in Catalina 10.15.6

Post by awado »

Thanks for your answers. Home folder permissions are okay. I already tried Full Disk Access, but doesn't change anything. It was my first idea, too. On the second Mac access settings also where not set and it worked there. Must be something different. There's also no antivirus or application firewall software. I'm a Mac sysadmin, so I'm quite familiar with all this. What are the files Sheepshaver usually needs beside the ROM, .dsk and .iso files? Might it be something with SIP, which I have deactivated? So the elevation of permission runs differently? Is it the included etherhelpertoolm, which needs further permissions?
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: Permissions or sandbox issue in Catalina 10.15.6

Post by Ronald P. Regensburg »

SheepShaver can be launched with only the application itself and in the same folder a compatible ROM file that is (re)named "Mac OS ROM".

When you say that the app hangs on double clicking, exactly what do you see happening.? Is a window opened? Do get a beach ball?

Was a ~/.sheepshaver_prefs file created?

Note that you cannot launch SheepShaver from the location where the .zip archive is expanded. The app must first be moved or copied to the desired location. (A security feature that was introduced in macOS 10.12 Sierra.)
awado
Student Driver
Posts: 10
Joined: Mon Jul 20, 2020 9:29 pm

Re: Permissions or sandbox issue in Catalina 10.15.6

Post by awado »

I get a beach ball. I did it exactly as you wrote. Made a folder on the desktop, moved the application in there and also ROM, dsk, iso. The prefs file was not created. Running it via sudo from there shows the vm instantly. Double clicking shows the beach ball.
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: Permissions or sandbox issue in Catalina 10.15.6

Post by Ronald P. Regensburg »

Try:
- Make a copy of the app in a different location
- Delete the original
- Move the copy back to where the original was
awado
Student Driver
Posts: 10
Joined: Mon Jul 20, 2020 9:29 pm

Re: Permissions or sandbox issue in Catalina 10.15.6

Post by awado »

Still no success. :sad:
emendelson
Forum All-Star
Posts: 1706
Joined: Tue Oct 14, 2008 12:12 am

Re: Permissions or sandbox issue in Catalina 10.15.6

Post by emendelson »

Have you tried

Code: Select all

xattr -cr SheepShaver.app
??
awado
Student Driver
Posts: 10
Joined: Mon Jul 20, 2020 9:29 pm

Re: Permissions or sandbox issue in Catalina 10.15.6

Post by awado »

Yes. Tried "xattr -cr" and no success. But interesting observation:

I created another user "test" in Catalina and could successfully use Sheepshaver on its desktop. So I put this whole Sheepshaver folder from the desktop into the shared user folder. From the new test user I still can start it there successfully, which indicates that permissions should be okay. But this does not work from my current user, it also shows the beachball. So it must be some resource restriction of my current user?
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: Permissions or sandbox issue in Catalina 10.15.6

Post by Ronald P. Regensburg »

Can you save a file to root level of your Home folder?
awado
Student Driver
Posts: 10
Joined: Mon Jul 20, 2020 9:29 pm

Re: Permissions or sandbox issue in Catalina 10.15.6

Post by awado »

Yes. Just saved a TextEdit file in my home folder.
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: Permissions or sandbox issue in Catalina 10.15.6

Post by Ronald P. Regensburg »

I have no more ideas. What could possibly be special (probably unusual) about your user account?
awado
Student Driver
Posts: 10
Joined: Mon Jul 20, 2020 9:29 pm

Re: Permissions or sandbox issue in Catalina 10.15.6

Post by awado »

Anyway, thank you for your help so far, though. Much appreciated. I'm not aware of anything that makes my account unique. Would Sheepshaver run in safe boot mode (pressing SHIFT at boot)?
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: Permissions or sandbox issue in Catalina 10.15.6

Post by Ronald P. Regensburg »

Here SheepShaver runs after a safe boot in Catalina, useable but with some display issues.
awado
Student Driver
Posts: 10
Joined: Mon Jul 20, 2020 9:29 pm

Re: Permissions or sandbox issue in Catalina 10.15.6

Post by awado »

Got it!!! And it's an interesting point: In the accessibility settings I had enabled reduced transparency. As soon as I untick that, Sheepshaver runs. I can reproduce this on my test account. So it seems to be related to graphics driver stuff. (I have a MacBook Pro with a Radeon Pro 450.)
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: Permissions or sandbox issue in Catalina 10.15.6

Post by Ronald P. Regensburg »

Interesting. I have reduced transparency enabled and I do not have the issue with SheepShaver. There must be more involved. My Late 2013 iMac has a NVIDIA GeForce GT 750M 1 GB graphics card.
kanjitalk755
Apple Corer
Posts: 239
Joined: Thu Nov 09, 2017 12:06 pm

Re: Permissions or sandbox issue in Catalina 10.15.6

Post by kanjitalk755 »

This issue may be related to https://www.emaculation.com/forum/viewt ... 20&t=10392.
See the topic and try the new build.
awado
Student Driver
Posts: 10
Joined: Mon Jul 20, 2020 9:29 pm

Re: Permissions or sandbox issue in Catalina 10.15.6

Post by awado »

Thanks for this update. Tried the new version. Unfortunately no change here. But I could nail it down a bit further: Beach ball only occurs with an external retina display (28" Samsung). On the internal display everything works fine, no matter which GPU is used, with and without transparencies. So I still guess it may be something with the graphics driver for my AMD Radeon Pro 450.
kanjitalk755
Apple Corer
Posts: 239
Joined: Thu Nov 09, 2017 12:06 pm

Re: Permissions or sandbox issue in Catalina 10.15.6

Post by kanjitalk755 »

Then try adding the following line to ~/.sheepshaver_prefs:

Code: Select all

sdlrender software
This option is valid only the new build.
awado
Student Driver
Posts: 10
Joined: Mon Jul 20, 2020 9:29 pm

Re: Permissions or sandbox issue in Catalina 10.15.6

Post by awado »

Unfortunately no change. :-(

Well, I think I'm fine with transparency turned on now. So, if it's only me, who's having trouble here, don't worry. Don't want to arouse too many sheeps. But nevertheless, I'm happy to stay for testing, if you want to iron that out.
Post Reply