xfs
[Top] [All Lists]

Re: Extended Attributes Question

To: Stewart Smith <stewart@xxxxxxxxxxxxxxxx>
Subject: Re: Extended Attributes Question
From: Eric Sandeen <sandeen@xxxxxxx>
Date: Fri, 14 Oct 2005 12:47:54 -0500
Cc: "evilninja@xxxxxxx" <evilninja@xxxxxxx>, Matthew Whitehead <mrw@xxxxxxxxxxxxxxxxxx>, linux-xfs@xxxxxxxxxxx, "'Kent Kamischke'" <kent@xxxxxxx>, Pamela Kennedy <pkennedy@xxxxxxx>
In-reply-to: <1129256710.9794.53.camel@localhost.localdomain>
References: <434EA1D1.7010805@nccs.gsfc.nasa.gov> <434EA9DE.5070204@gmx.net> <1129256710.9794.53.camel@localhost.localdomain>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0 (X11/20041206)
Stewart Smith wrote:
On Thu, 2005-10-13 at 20:39 +0200, evilninja@xxxxxxx wrote:

Matthew Whitehead wrote:

Could you modify the code of sys_creat/sys_open in fs/open.c to check for the existence of environment variables and set the attribute/value pairs automatically? Say, an environment variable with the prefix FILE_XATTR_* ?

Um, can't this be done entirely in userspace? The kernel should not be influnced by environment variables, IMHO. But perhaps I did not understand what you really meant....


Yes - an LD_PRELOAD could do this.

Yep, I was going to suggest the same. The kernel really has no business interpreting environment variables, or setting any policies like this...


-Eric


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