this repo has no description
1
fork

Configure Feed

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

Handle `KAUTH_{U,G}ID_NONE` and mode -1 in fchmod_extended

These are actually accepted and allowed by Darwin.

+8
+8
src/kernel/emulation/linux/unistd/fchmod_extended.c
··· 3 3 #include "../errno.h" 4 4 #include <linux-syscalls/linux.h> 5 5 6 + #include <sys/types.h> 7 + #include <sys/kauth.h> 8 + 6 9 long sys_fchmod_extended(int fd, int uid, int gid, int mode, void* xsec) 7 10 { 8 11 int ret; 12 + 13 + // apparently, these are supposed to go through successfully 14 + if (uid == KAUTH_UID_NONE || gid == KAUTH_GID_NONE || mode == -1) { 15 + return 0; 16 + } 9 17 10 18 ret = LINUX_SYSCALL2(__NR_fchmod, fd, mode); 11 19 if (ret < 0)