Skip to content

Commit

Permalink
Add more files, support symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
slonopotamus committed Nov 6, 2023
1 parent 35e63ea commit 36285da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion macosjail/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def main():
visited.add(source_path)

try:
st = os.stat(source_path)
st = os.lstat(source_path)
except FileNotFoundError:
if copy_opts.allow_absent:
# This happens due to dynamic linker cache on Big Sur and later
Expand Down
11 changes: 6 additions & 5 deletions macosjail/mkjail.files
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
/dev/urandom
/dev/zero

/usr/lib/dyld
# Big Sur+ dyld
/System/Library/dyld/*x86_64
/System/Library/dyld/*x86_64.*
Expand All @@ -16,13 +15,15 @@
/bin/
/sbin/
/usr/bin/
/usr/lib/
/usr/libexec/
/usr/sbin/
# TODO: Maybe we want the whole /usr/lib?
/usr/lib/libobjc-trampolines.dylib

# configs
/etc/pam.d/
/etc/ssl/
/etc/sudoers
/System/Library/CoreServices/SystemVersion.plist
/System/Library/CoreServices/SystemVersionCompat.plist
/usr/share/terminfo/
/usr/share/zoneinfo/
/usr/share/
/var/db/timezone/

0 comments on commit 36285da

Please sign in to comment.