<div dir="ltr"><div><div>hi,<br></div>   Jiffin found an interesting problem in posix xlator where we have never been using setfsuid/gid (<a href="http://review.gluster.org/#/c/15545/">http://review.gluster.org/#/c/15545/</a>), what I am seeing regressions after this is, if the files are created using non-root user then the file creation fails because that user doesn&#39;t have permissions to create the gfid-link. So it seems like the correct way forward for this patch is to write wrappers around sys_&lt;syscall&gt; to do setfsuid/gid do the actual operation requested and then set it back to old uid/gid and then do the internal operations. I am planning to write posix_sys_&lt;syscall&gt;() to do the same, may be a macro?.<br></div>    I need inputs from you guys to let me know if I am on the right path and if you see any issues with this approach.<br clear="all"><div><div><div><br>-- <br><div class="gmail_signature"><div dir="ltr">Pranith<br></div></div>
</div></div></div></div>