LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* reading user. extended attributes from symlinks in 2.6 kernels
@ 2008-02-11 16:38 Rok Ruzic
  2008-02-14 16:43 ` Bill Davidsen
  0 siblings, 1 reply; 2+ messages in thread
From: Rok Ruzic @ 2008-02-11 16:38 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 652 bytes --]

Hello,

I have an XFS filesystem containing files and symlinks with application-specific EAs in the user namespace. The files, symlinks and their EAs were created while running a 2.4 kernel. 

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 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 XFS filesystem code?

I would appreciate it very much if somebody could point me towards a solution.

Rok

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: reading user. extended attributes from symlinks in 2.6 kernels
  2008-02-11 16:38 reading user. extended attributes from symlinks in 2.6 kernels Rok Ruzic
@ 2008-02-14 16:43 ` Bill Davidsen
  0 siblings, 0 replies; 2+ messages in thread
From: Bill Davidsen @ 2008-02-14 16:43 UTC (permalink / raw)
  To: rokr; +Cc: linux-kernel

Rok Ruzic wrote:
> Hello,
> 
> I have an XFS filesystem containing files and symlinks with application-specific EAs in the user namespace. The files, symlinks and their EAs were created while running a 2.4 kernel. 
> 
> 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 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
XFS filesystem code?
> 
> I would appreciate it very much if somebody could point me towards a solution.
> 
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-02-14 16:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-11 16:38 reading user. extended attributes from symlinks in 2.6 kernels Rok Ruzic
2008-02-14 16:43 ` Bill Davidsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).