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
|