1 // SPDX-License-Identifier: GPL-2.0 1 2 /* 3 * linux/fs/hfsplus/xattr_trusted.c 4 * 5 * Vyacheslav Dubeyko <slava@dubeyko.com> 6 * 7 * Handler for trusted extended attributes. 8 */ 9 10 #include <linux/nls.h> 11 12 #include "hfsplus_fs.h" 13 #include "xattr.h" 14 15 static int hfsplus_trusted_getxattr(const stru 16 struct den 17 const char 18 { 19 return hfsplus_getxattr(inode, name, b 20 XATTR_TRUSTED_ 21 XATTR_TRUSTED_ 22 } 23 24 static int hfsplus_trusted_setxattr(const stru 25 struct mnt 26 struct den 27 const char 28 size_t siz 29 { 30 return hfsplus_setxattr(inode, name, b 31 XATTR_TRUSTED_ 32 } 33 34 const struct xattr_handler hfsplus_xattr_trust 35 .prefix = XATTR_TRUSTED_PREFIX, 36 .get = hfsplus_trusted_getxattr, 37 .set = hfsplus_trusted_setxattr, 38 }; 39
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.