xfs
[Top] [All Lists]

Re: Checking FS type

To: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Subject: Re: Checking FS type
From: Diyab <diyab@xxxxxxxxxxxx>
Date: Sun, 11 Jan 2004 13:29:04 -0500
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <20040111095350.A19788@xxxxxxxxxxxxx>
References: <40007A49.4060907@xxxxxxxxxxxx> <20040111095350.A19788@xxxxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007
Christoph Hellwig wrote:
On Sat, Jan 10, 2004 at 05:18:49PM -0500, Diyab wrote:

on. With ext2/3 the EA attribute name is different from what it will be on an XFS file system


This sounds like an incredibly bad idea.  We have a common xattr API and
common namespaces to avoid exactly that kind of mess.  Would you mind to
elborate why you are doign this?

Ext2/3 does not seem to have root/non-root namespace like XFS does. I have not been able to find any specific information about the design of Ext2/3 in this manner but the SELinux attribute name on this file system is security.selinux. Operating on security.selinux is fine but when you try to operate on user.security.selinux the operations fail with EOPNOTSUPP. On XFS it is just the opposite, but I can see how stripping the namespace prefix from the attribute can make it fail. Basically what I am doing is putting a check in the SELinux API to look and see what the attribute name it should be using is. If it's on XFS it operates on user.security.selinux, otherwise it operates on security.selinux.

Timothy,


<Prev in Thread] Current Thread [Next in Thread>