BACKPORT: Smack: ignore private inode for smack_file_receive
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 17 Apr 2015 06:25:04 +0000 (15:25 +0900)
committerRafal Krypa <r.krypa@samsung.com>
Mon, 21 Nov 2016 16:02:01 +0000 (17:02 +0100)
commitc796fe225f8eaebd4a37efaf8f72cd6254ac9b7b
treefa65b8a1243e140e77c505bf7623ad4d31ab4105
parent695abcd4cf0cb741fd4feaa6728f487e3693fa5b
BACKPORT: Smack: ignore private inode for smack_file_receive

The dmabuf fd can be shared between processes via unix domain
socket. The file of dmabuf fd is came from anon_inode. The inode
has no set and get xattr operations, so it can not be shared
between processes with smack. This patch fixes just to ignore
private inode including anon_inode for smack_file_receive.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
(cherry-picked from upstream 9777582e8d604f69ce3a93805065e451487e26b4)
security/smack/smack_lsm.c