Re: [PATCH v11 2/4] smack: Set the SMACK64TRANSMUTE xattr in smack_inode_init_security()

From: Roberto Sassu
Date: Sat Jun 10 2023 - 03:02:29 EST


On 6/9/2023 9:26 AM, Jarkko Sakkinen wrote:
On Mon Jun 5, 2023 at 11:38 AM EEST, Roberto Sassu wrote:
On Sat, 2023-06-03 at 21:15 +0200, Roberto Sassu wrote:
From: Roberto Sassu <roberto.sassu@xxxxxxxxxx>

With the newly added ability of LSMs to supply multiple xattrs, set
SMACK64TRASMUTE in smack_inode_init_security(), instead of d_instantiate().

nit: TRANSMUTE

Sorry, just hit into my eye. I skimmed it because I implemented original
feature :-)

Cool!

Currently the transmute xattr is defined as:

#define XATTR_SMACK_TRANSMUTE "SMACK64TRANSMUTE"

so, should be good to say the full xattr name, right?

Thanks

Roberto