Re: [PATCH] Smack: ignore private inode for file functions

2016-12-15 Thread Casey Schaufler
On 12/12/2016 12:35 AM, Seung-Woo Kim wrote: > 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, >

[PATCH] Smack: ignore private inode for file functions

2016-12-12 Thread Seung-Woo Kim
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. R