search for: old_fd

Displaying 2 results from an estimated 2 matches for "old_fd".

Did you mean: old_fb
2016 Jan 15
0
[klibc:master] Remove open_cloexec()
...sr/kinit/initrd.c index d2efc59..7eece2c 100644 --- a/usr/kinit/initrd.c +++ b/usr/kinit/initrd.c @@ -103,8 +103,8 @@ static int run_linuxrc(int argc, char *argv[], dev_t root_dev) fclose(fp); mkdir("/old", 0700); - root_fd = open_cloexec("/", O_RDONLY | O_DIRECTORY, 0); - old_fd = open_cloexec("/old", O_RDONLY | O_DIRECTORY, 0); + root_fd = open("/", O_RDONLY|O_DIRECTORY|O_CLOEXEC, 0); + old_fd = open("/old", O_RDONLY|O_DIRECTORY|O_CLOEXEC, 0); if (root_fd < 0 || old_fd < 0) return -errno; diff --git a/usr/klibc/Kbuild b/usr/klibc...
2023 May 30
1
O_PATH, FreeBSD & acl_xx_fd
Urgh? I modified the FreeBSD kernel to allow all_xx_fd() calls on O_PATH descriptors and that seems make vfs_zfsacl to work fine. Not 100% tested but I could atleast view and modify the ACL on some stuff from a Windows client via Samba that way. I?m not sure I?ll be able to get them to implement this ?officially? though. Reading ACLs via an O_PATH-opened descriptor seems to be on the way of