Unbecome Root in VFS Module

Orion orion at et.byu.edu
Wed Jan 5 21:56:58 UTC 2022


While adding NFS RQUOTA V2 support to Samba, the request is being made 
as root and is thus root squashed by the server and fails.

The reason for the issue is source3/smbd/quotas.c executing 
become_root() before calling the VFS module.

I tried calling unbecome_root() within the module, but it did not work. 
Is there another way to change back to normal UID/GID from within the 
VFS module?



More information about the samba-technical mailing list