Contributors: 9
Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
Vyacheslav Dubeyko |
107 |
74.31% |
1 |
8.33% |
Al Viro |
14 |
9.72% |
2 |
16.67% |
James Morris |
8 |
5.56% |
1 |
8.33% |
Christian Brauner |
5 |
3.47% |
2 |
16.67% |
Hin-Tak Leung |
3 |
2.08% |
1 |
8.33% |
Andreas Gruenbacher |
2 |
1.39% |
1 |
8.33% |
Stephen Hemminger |
2 |
1.39% |
1 |
8.33% |
Fabian Frederick |
2 |
1.39% |
2 |
16.67% |
Greg Kroah-Hartman |
1 |
0.69% |
1 |
8.33% |
Total |
144 |
|
12 |
|
// SPDX-License-Identifier: GPL-2.0
/*
* linux/fs/hfsplus/xattr_trusted.c
*
* Vyacheslav Dubeyko <slava@dubeyko.com>
*
* Handler for trusted extended attributes.
*/
#include <linux/nls.h>
#include "hfsplus_fs.h"
#include "xattr.h"
static int hfsplus_trusted_getxattr(const struct xattr_handler *handler,
struct dentry *unused, struct inode *inode,
const char *name, void *buffer, size_t size)
{
return hfsplus_getxattr(inode, name, buffer, size,
XATTR_TRUSTED_PREFIX,
XATTR_TRUSTED_PREFIX_LEN);
}
static int hfsplus_trusted_setxattr(const struct xattr_handler *handler,
struct mnt_idmap *idmap,
struct dentry *unused, struct inode *inode,
const char *name, const void *buffer,
size_t size, int flags)
{
return hfsplus_setxattr(inode, name, buffer, size, flags,
XATTR_TRUSTED_PREFIX, XATTR_TRUSTED_PREFIX_LEN);
}
const struct xattr_handler hfsplus_xattr_trusted_handler = {
.prefix = XATTR_TRUSTED_PREFIX,
.get = hfsplus_trusted_getxattr,
.set = hfsplus_trusted_setxattr,
};