smack: introduce a special case for tmpfs in smack_d_instantiate() 17/32917/1
authorŁukasz Stelmach <l.stelmach@samsung.com>
Wed, 10 Dec 2014 06:29:46 +0000 (07:29 +0100)
committerMaciej Wereski <m.wereski@partner.samsung.com>
Mon, 29 Dec 2014 08:31:36 +0000 (09:31 +0100)
commit67638106847b138776748cb543cddabe277b64e8
treefa076854535c7cea3310cd11a7b25e81c5499f19
parent2fa6243f6ca2f223c632f6b6a5fa378a887f6aab
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.

Change-Id: If0e2e3ceddeff55d5121e76e85dbea60414b786a
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
security/smack/smack_lsm.c