Re: Use of inode for storing security info

From: Valdis . Kletnieks
Date: Fri Sep 23 2011 - 19:47:10 EST


On Fri, 23 Sep 2011 23:48:36 +0530, Parag Amritkar said:
> Can we use any field of inode for storing information like storing
> encryption key of that file?

You probably want to look at how the various security LSMs use
the "security.*" extended attribute namespace to store labels and
similar information.

Protip: You don't want to store the encryption key of the file there.
That's basically leaving the key under the doormat - and a sign saying
"look under doormat for key".

Attachment: pgp00000.pgp
Description: PGP signature