BACKPORT: smack: introduce a special case for tmpfs in smack_d_instantiate()
authorŁukasz Stelmach <l.stelmach@samsung.com>
Tue, 16 Dec 2014 15:53:08 +0000 (16:53 +0100)
committerRafal Krypa <r.krypa@samsung.com>
Thu, 30 Jun 2016 12:57:43 +0000 (14:57 +0200)
commitc92d9bc62117e216d3665317c5a8bdb2d6d10cf3
tree6dada2a4da5debd6525952994e520f8c046ab62b
parentcef474df740bea92ad0cd16824c179ac14747a9d
BACKPORT: smack: introduce a special case for tmpfs in smack_d_instantiate()

Files created with __shmem_file_stup() appear to have somewhat fake
dentries which make them look like root directories and not get
the label the current process or ("*") star meant for tmpfs files.

Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
(cherry-picked from upstream 1d8c2326a4a2a4d942f9165b5702fe6f869ccf48)
security/smack/smack_lsm.c