Attached is a patch that partially fixes the RootSquash option. Prelude was
using an old fsid variable that was no longer being used. I changed that to
the target_fs_id value in the s_op, and that made some progress. I can see
in the server logging that the squashing code is correctly replacing the uid
and gid fields in the request credentials. Most operations like changing
another user's file, removing, changing attributes, etc now result in a
permission denied message.

I am still having an issue when creating a file as root. The file is created
and owned by root.root, and no data is written to the file. In previous
incarnations of this option, the empty file would be created but owned by
AnonUID.AnonGID as defined in the fs.conf file. Any ideas as to why this
might not work the same way now?

Bart.




On Tue, Apr 6, 2010 at 9:16 AM, Bart Taylor <[email protected]> wrote:

>
> Has anyone tried using the RootSquash/RootSquashExceptions options
> recently? I cannot make them work with the 2.8.2 release.
>
> Bart.
>
>

Attachment: rootsquash-fsid.patch
Description: Binary data

_______________________________________________
Pvfs2-users mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users

Reply via email to