tizen 2.4 release
[kernel/linux-3.0.git] / security / smack / smack_lsm.c
index 91bb7a8..53335e4 100644 (file)
@@ -1378,6 +1378,9 @@ static int smack_file_receive(struct file *file)
        int may = 0;
        struct smk_audit_info ad;
 
+       if (unlikely(IS_PRIVATE(file->f_path.dentry->d_inode)))
+               return 0;
+
        smk_ad_init(&ad, __func__, LSM_AUDIT_DATA_TASK);
        smk_ad_setfield_u_fs_path(&ad, file->f_path);
        /*