Re: [PATCH 1/1] SMACK: Fix handling value==NULL in post setxattr

2014-04-11 Thread Casey Schaufler
On 4/3/2014 4:48 AM, José Bollo wrote: > The function `smack_inode_post_setxattr` is called each > time that a setxattr is done, for any value of name. > The kernel allow to put value==NULL when size==0 > to set an empty attribute value. The systematic > call to smk_import_entry was causing the

Re: [PATCH 1/1] SMACK: Fix handling value==NULL in post setxattr

2014-04-11 Thread Casey Schaufler
On 4/3/2014 4:48 AM, José Bollo wrote: The function `smack_inode_post_setxattr` is called each time that a setxattr is done, for any value of name. The kernel allow to put value==NULL when size==0 to set an empty attribute value. The systematic call to smk_import_entry was causing the

[PATCH 1/1] SMACK: Fix handling value==NULL in post setxattr

2014-04-03 Thread José Bollo
The function `smack_inode_post_setxattr` is called each time that a setxattr is done, for any value of name. The kernel allow to put value==NULL when size==0 to set an empty attribute value. The systematic call to smk_import_entry was causing the dereference of a NULL pointer hence a KERNEL PANIC!

[PATCH 1/1] SMACK: Fix handling value==NULL in post setxattr

2014-04-03 Thread José Bollo
The function `smack_inode_post_setxattr` is called each time that a setxattr is done, for any value of name. The kernel allow to put value==NULL when size==0 to set an empty attribute value. The systematic call to smk_import_entry was causing the dereference of a NULL pointer hence a KERNEL PANIC!