move d_rcu from overlapping d_child to overlapping d_alias
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / security / commoncap.c
index c44b6fe6648e6945518db1a1be1c66b43131b875..c9219a66b7c6d99e557b4d8f36755842e2332e37 100644 (file)
@@ -421,6 +421,9 @@ int get_vfs_caps_from_disk(const struct dentry *dentry, struct cpu_vfs_cap_data
                cpu_caps->inheritable.cap[i] = le32_to_cpu(caps.data[i].inheritable);
        }
 
+       cpu_caps->permitted.cap[CAP_LAST_U32] &= CAP_LAST_U32_VALID_MASK;
+       cpu_caps->inheritable.cap[CAP_LAST_U32] &= CAP_LAST_U32_VALID_MASK;
+
        return 0;
 }