reading user. extended attributes from symlinks in 2.6 kernels

Previous thread: [git patches] net driver updates by Jeff Garzik on Monday, February 11, 2008 - 10:05 am. (7 messages)

Next thread: [-mm PATCH] register_memory/unregister_memory clean ups by Badari Pulavarty on Monday, February 11, 2008 - 10:23 am. (20 messages)
From: Rok Ruzic
Date: Monday, February 11, 2008 - 9:38 am

Hello,

I have an XFS filesystem containing files and symlinks with application-spe=
cific EAs in the user namespace. The files, symlinks and their EAs were cre=
ated while running a 2.4 kernel.=20

In 2.6 kernels access to user EAs was prevented for symlinks. My problem is=
 that i have to upgrade the kernel from 2.4 to 2.6 series and i have to hav=
e access to all the EAs after upgrade. Is there a way to read user EAs off =
of symlinks on an XFS filesystem on a 2.6 kernel either from userspace or f=
rom a filter driver sitting between VFS and XFS filesystem code?

I would appreciate it very much if somebody could point me towards a soluti=
on.

Rok
From: Bill Davidsen
Date: Thursday, February 14, 2008 - 9:43 am

problem is that i have to upgrade the kernel from 2.4 to 2.6 series and
i have to have access to all the EAs after upgrade. Is there a way to
read user EAs off of symlinks on an XFS filesystem on a 2.6 kernel
either from userspace or from a filter driver sitting between VFS and
If you want to do it at user code level, you could note the symlink, 
follow it to the "real" name, and read the EA there. I don't see any 
easy way to force the kernel to follow the symlink.


-- 
Bill Davidsen <davidsen@tmr.com>
   "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot
--

Previous thread: [git patches] net driver updates by Jeff Garzik on Monday, February 11, 2008 - 10:05 am. (7 messages)

Next thread: [-mm PATCH] register_memory/unregister_memory clean ups by Badari Pulavarty on Monday, February 11, 2008 - 10:23 am. (20 messages)