Smack: ignore private inode for file functions 80/104080/2 accepted/tizen/common/20161213.164744 accepted/tizen/ivi/20161214.014117 accepted/tizen/mobile/20161214.014022 accepted/tizen/tv/20161214.014040 accepted/tizen/wearable/20161214.014056 submit/tizen/20161213.001106
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>
Mon, 12 Dec 2016 08:40:23 +0000 (17:40 +0900)
commit7b0cc6610aaa548653da3fcdd69da70961f6c0dc
tree0f81b66d00988856c688575bc50a2794c34b502f
parenteed519ed3f25a2f54edc77a996e1a3a94a085582
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