Smack: check for SMACK xattr validity in smack_inode_setxattr
authorEtienne Basset <etienne.basset@numericable.fr>
Thu, 16 Apr 2009 21:58:42 +0000 (23:58 +0200)
committerJames Morris <jmorris@namei.org>
Sat, 18 Apr 2009 02:58:25 +0000 (12:58 +1000)
commitdefc433ba3bc587826bb467ce0e63452deafa65d
treefb11744178f227598b1b26e1c6f24041261c3b98
parentaefe6475720bd5eb8aacbc881488f3aa65618562
Smack: check for SMACK xattr validity in smack_inode_setxattr

the following patch moves checks for SMACK xattr validity
from smack_inode_post_setxattr (which cannot return an error to the user)
to smack_inode_setxattr (which can return an error).

Signed-off-by: Etienne Basset <etienne.basset@numericable.fr>
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/smack/smack_lsm.c