this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Several fixes for fake sudo

+15 -1
+2 -1
src/dyld/darling
··· 57 57 ln -sf "../system-root/etc/resolv.conf" "$1/etc/resolv.conf" 58 58 ln -sf "../system-root/etc/passwd" "$1/etc/passwd" 59 59 ln -sf "../system-root/etc/group" "$1/etc/group" 60 + ln -sf "../system-root/etc/hosts" "$1/etc/hosts" 60 61 61 - mkdir -p "$1/Volumes" "$1/Applications" || true 62 + mkdir -p "$1/Volumes" "$1/Applications" "$1/var/root" || true 62 63 63 64 # Clean up old cruft (symlinks) 64 65 rm -f "$1/bin" "$1/usr/bin" "$1/etc" "$1/System/Library/Frameworks" 2>/dev/null || true
+10
src/kernel/emulation/linux/unistd/getgroups.c
··· 2 2 #include "../base.h" 3 3 #include "../errno.h" 4 4 #include <asm/unistd.h> 5 + #include <stddef.h> 5 6 6 7 long sys_getgroups(unsigned int size, int* gidset) 7 8 { 8 9 int ret; 10 + 11 + if (getenv("__FAKE_SETUID_ROOT") != NULL) 12 + { 13 + if (size >= 1) 14 + { 15 + gidset[0] = 0; 16 + return 1; 17 + } 18 + } 9 19 10 20 #ifdef __NR_getgroups32 11 21 ret = LINUX_SYSCALL(__NR_getgroups32, size, gidset);
+2
src/libinfo/CMakeLists.txt
··· 45 45 target_link_libraries(system_info system_c resolv-darwin) 46 46 47 47 install(TARGETS system_info DESTINATION ${CMAKE_INSTALL_LIBDIR}/darling) 48 + install(FILES master.passwd libexec/darling/etc) 49 +
+1
src/libinfo/master.passwd
··· 1 + root:*:0:0::0:0:System Administrator:/var/root:/bin/sh