[M] Change in ...nfs-ganesha[next]: os/darwin: add subr.c, and default GSH_CAN_HOST_LOCAL_FS to OFF
Bjorn Leffler has uploaded this change for review. ( https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1255643?usp=email ) Change subject: os/darwin: add subr.c, and default GSH_CAN_HOST_LOCAL_FS to OFF ...................................................................... os/darwin: add subr.c, and default GSH_CAN_HOST_LOCAL_FS to OFF Add the platform subr.c that Linux and FreeBSD have to the existing if(DARWIN) source list in os/CMakeLists.txt. The setuser/setgroup/set_threadgroups half of subr.c cannot be implemented on Darwin as separate operations: its per-thread credential primitive, pthread_setugid_np(2), sets uid and gid together. Those functions are only reached when GSH_CAN_HOST_LOCAL_FS is enabled, so default that option to OFF on Darwin, and make subr.c fail to compile if it is turned on, rather than ship stubs that would fail silently. Change-Id: I1b5dac4cfee9a584380540364a85c7ad36594dd7 Signed-off-by: Bjorn Leffler <github@leffler.org> --- M src/CMakeLists.txt M src/os/CMakeLists.txt A src/os/darwin/subr.c 3 files changed, 51 insertions(+), 2 deletions(-) git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/43/1255643/1 -- To view, visit https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1255643?usp=email To unsubscribe, or for help writing mail filters, visit https://review.gerrithub.io/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: ffilz/nfs-ganesha Gerrit-Branch: next Gerrit-Change-Id: I1b5dac4cfee9a584380540364a85c7ad36594dd7 Gerrit-Change-Number: 1255643 Gerrit-PatchSet: 1 Gerrit-Owner: Bjorn Leffler <github@leffler.org>
participants (1)
-
Bjorn Leffler (GerritHub)