Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File doesn't exist #1

Closed
jwwalker opened this issue Jan 18, 2023 · 6 comments
Closed

File doesn't exist #1

jwwalker opened this issue Jan 18, 2023 · 6 comments

Comments

@jwwalker
Copy link

When I tried running dumpBTM, it said

ERROR: failed to load /private/var/db/com.apple.backgroundtaskmanagement/BackgroundItems-v4.btm

So I looked in /private/var/db/com.apple.backgroundtaskmanagement/ and found files BackgroundItems-v3.btm and BackgroundItems-v7.btm. I'm running Ventura 13.2.

@hazcod
Copy link

hazcod commented Jan 18, 2023

Hmm, ventura 13.1, operation not permitted (because of SIP?).

% sudo su
Password:
sh-3.2# cd /private/var/db/com.apple.backgroundtaskmanagement/
sh-3.2# ls
ls: .: Operation not permitted

Command sfltool dumpbtm works tough!

@objective-see
Copy link
Owner

@jwwalker, thanks for the bug report and good catch.

I've confirmed yes, that is the case
...but good news, with just an update to use the pathBackgroundItems-v7.btm everything else works 😅

Working on some code to make the "find/use the correct BackgroundItems-v* file" more robust.

@hazcod, hrmm that's odd - is it maybe because Terminal doesn't have Full Disk Access? 🤔 As on my box with SIP enabled:

% csrutil status                                        
System Integrity Protection status: enabled.
% ls /private/var/db/com.apple.backgroundtaskmanagement/                      
BackgroundItems-v7.btm

You can enable Full Disk Access for Terminal via System Preferences.

objective-see added a commit that referenced this issue Jan 19, 2023
BTM file, now dynamically located (Issue: #1)
@evild3ad
Copy link

❯ csrutil status
System Integrity Protection status: enabled.
❯ ls /private/var/db/com.apple.backgroundtaskmanagement/
BackgroundItems-v7.btm

❯ sudo ./dumpBTM
Password:
dumpBTM v0.95
Dumps (unserializes) BackgroundItems-v4.btm
ERROR: failed to load /private/var/db/com.apple.backgroundtaskmanagement/BackgroundItems-v4.btm

Do you have Full Disk Access?

I have Ventura 13.1. sfltool dumpbtm works, but dumpBTM always ask for "Full Disk Access". BackgroundItems-v7 exists, BackgroundItems-v4 failed to load.

@objective-see
Copy link
Owner

Now fixed in release v0.96 ☺️

The .btm file is now dynamically located so it will pick up -v4.btm on macOS 13, and -v7.btm on macOS 13.1.

Release: https://github.com/objective-see/DumpBTM/releases/tag/v0.96

Binary: https://github.com/objective-see/DumpBTM/releases/download/v0.96/dumpBTM

@evild3ad
Copy link

Works! :-)

@objective-see
Copy link
Owner

Closing this out, as the latest fixes/version appear to sufficiently address this!

If you encounter any other issues, feel free to (re)open or submit a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants