Smack: ignore private inode for file functions accepted/tizen/3.0/common/20161213.164230 accepted/tizen/3.0/ivi/20161213.025924 accepted/tizen/3.0/mobile/20161213.025854 accepted/tizen/3.0/tv/20161213.025900 accepted/tizen/3.0/wearable/20161213.025912 submit/tizen_3.0/20161213.001015
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 12 Dec 2016 08:21:40 +0000 (17:21 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 13 Dec 2016 00:09:34 +0000 (09:09 +0900)
commitd201844dbf7b8b243884be46990133644f71dd4f
tree7372e6d75e87f33d42b4c72c380030de565b67b9
parenta9ec90796325f878ea54e4c1a1faac92ef1a5cbd
Smack: ignore private inode for file functions

The access to fd from anon_inode is always failed because there is
no set xattr operations. So this patch fixes to ignore private
inode including anon_inode for file functions.

It was only ignored for smack_file_receive() to share dma-buf fd,
but dma-buf has other functions like ioctl and mmap.

Reference: https://lkml.org/lkml/2015/4/17/16

Change-Id: I1c6b93107c17e1ca3d96360c5cb8ec18a29ba45e
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
security/smack/smack_lsm.c