X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=Documentation%2Ffilesystems%2Fporting.rst;h=633610253f45d25e98a1c64a515ef3b2c80725d0;hb=7d6beb71da3cc033649d641e1e608713b8220290;hp=1f8cf8e10b340acc7e315c3c9e166896567f5d2c;hpb=aa8e3291729fd885351af0b077330721d4bf5db9;p=platform%2Fkernel%2Flinux-rpi.git diff --git a/Documentation/filesystems/porting.rst b/Documentation/filesystems/porting.rst index 1f8cf8e..6336102 100644 --- a/Documentation/filesystems/porting.rst +++ b/Documentation/filesystems/porting.rst @@ -717,6 +717,8 @@ be removed. Switch while you still can; the old one won't stay. **mandatory** ->setxattr() and xattr_handler.set() get dentry and inode passed separately. +The xattr_handler.set() gets passed the user namespace of the mount the inode +is seen from so filesystems can idmap the i_uid and i_gid accordingly. dentry might be yet to be attached to inode, so do _not_ use its ->d_inode in the instances. Rationale: !@#!@# security_d_instantiate() needs to be called before we attach dentry to inode and !@#!@##!@$!$#!@#$!@$!@$ smack