This patch fixes to ignore socket and pipe inode for smack_file_receive as
workaround. It will be fixed on mainline smack and at that time this patch
should be reverted.
Change-Id: If5211b22b39c77e70597704fa06ae3f6276d0b8c
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
if (unlikely(IS_PRIVATE(inode)))
return 0;
+ if (unlikely(S_ISSOCK(inode->i_mode) || S_ISFIFO(inode->i_mode)))
+ return 0;
+
smk_ad_init(&ad, __func__, LSM_AUDIT_DATA_PATH);
smk_ad_setfield_u_fs_path(&ad, file->f_path);
/*