[zfs-discuss] Creating NFSv4/ZFS XATTR through dirfd through /proc not allowed?

2012-07-13 Thread ольга крыжановская
Can some one here explain why accessing a NFSv4/ZFS xattr directory through proc is forbidden? To explain the problem in shell code (cd -@ is a new option to enter the XATTR store, redirect {n}... opens a file or directory and assigns the fd number to variable 'n'): ksh -c 'touch x ; cd -@ x ;

Re: [zfs-discuss] Creating NFSv4/ZFS XATTR through dirfd through /proc not allowed?

2012-07-13 Thread Gordon Ross
On Fri, Jul 13, 2012 at 2:16 AM, ольга крыжановская olga.kryzhanov...@gmail.com wrote: Can some one here explain why accessing a NFSv4/ZFS xattr directory through proc is forbidden? [...] truss says the syscall fails with open(/proc/3988/fd/10/myxattr, O_WRONLY|O_CREAT|O_TRUNC, 0666) Err#13

Re: [zfs-discuss] Creating NFSv4/ZFS XATTR through dirfd through /proc not allowed?

2012-07-13 Thread ольга крыжановская
Yes, accessing the files through runat works. I think /proc (and /dev/fd, which has the same trouble but only works if the same process accesses the fds, for obvious reasons since /dev/fd is per process and can not be shared between processes unlike /proc/$pid/fd/) gets confused because the