diff --git a/macosjail/main.py b/macosjail/main.py index e281b44..bbfeff3 100644 --- a/macosjail/main.py +++ b/macosjail/main.py @@ -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 diff --git a/macosjail/mkjail.files b/macosjail/mkjail.files index 132bda3..5bafefe 100644 --- a/macosjail/mkjail.files +++ b/macosjail/mkjail.files @@ -5,7 +5,6 @@ /dev/urandom /dev/zero -/usr/lib/dyld # Big Sur+ dyld /System/Library/dyld/*x86_64 /System/Library/dyld/*x86_64.* @@ -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/