+ } else if (xh && xh->flags == XATTR_SECURITY_T &&
+ strcmp(xattr_name, "security.c") == 0) {
+ /* Listing xattrs should not expose encryption
+ * context. There is no handler defined for
+ * XATTR_ENCRYPTION_PREFIX, so this test is just
+ * needed for compatibility with 2.14, in which
+ * encryption context is stored in security.c xattr.
+ */
+ hide_xattr = true;