Release 4.10 fs/ext4/xattr_trusted.c
/*
* linux/fs/ext4/xattr_trusted.c
* Handler for trusted extended attributes.
*
* Copyright (C) 2003 by Andreas Gruenbacher, <a.gruenbacher@computer.org>
*/
#include <linux/string.h>
#include <linux/capability.h>
#include <linux/fs.h>
#include "ext4_jbd2.h"
#include "ext4.h"
#include "xattr.h"
static bool
ext4_xattr_trusted_list(struct dentry *dentry)
{
return capable(CAP_SYS_ADMIN);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
dave kleikamp | dave kleikamp | 12 | 70.59% | 1 | 25.00% |
andreas gruenbacher | andreas gruenbacher | 2 | 11.76% | 1 | 25.00% |
christoph hellwig | christoph hellwig | 2 | 11.76% | 1 | 25.00% |
mingming cao | mingming cao | 1 | 5.88% | 1 | 25.00% |
| Total | 17 | 100.00% | 4 | 100.00% |
static int
ext4_xattr_trusted_get(const struct xattr_handler *handler,
struct dentry *unused, struct inode *inode,
const char *name, void *buffer, size_t size)
{
return ext4_xattr_get(inode, EXT4_XATTR_INDEX_TRUSTED,
name, buffer, size);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
dave kleikamp | dave kleikamp | 31 | 64.58% | 1 | 20.00% |
al viro | al viro | 7 | 14.58% | 1 | 20.00% |
andreas gruenbacher | andreas gruenbacher | 6 | 12.50% | 1 | 20.00% |
mingming cao | mingming cao | 3 | 6.25% | 1 | 20.00% |
christoph hellwig | christoph hellwig | 1 | 2.08% | 1 | 20.00% |
| Total | 48 | 100.00% | 5 | 100.00% |
static int
ext4_xattr_trusted_set(const struct xattr_handler *handler,
struct dentry *unused, struct inode *inode,
const char *name, const void *value,
size_t size, int flags)
{
return ext4_xattr_set(inode, EXT4_XATTR_INDEX_TRUSTED,
name, value, size, flags);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
dave kleikamp | dave kleikamp | 37 | 68.52% | 1 | 20.00% |
al viro | al viro | 7 | 12.96% | 1 | 20.00% |
andreas gruenbacher | andreas gruenbacher | 6 | 11.11% | 1 | 20.00% |
mingming cao | mingming cao | 3 | 5.56% | 1 | 20.00% |
christoph hellwig | christoph hellwig | 1 | 1.85% | 1 | 20.00% |
| Total | 54 | 100.00% | 5 | 100.00% |
const struct xattr_handler ext4_xattr_trusted_handler = {
.prefix = XATTR_TRUSTED_PREFIX,
.list = ext4_xattr_trusted_list,
.get = ext4_xattr_trusted_get,
.set = ext4_xattr_trusted_set,
};
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
dave kleikamp | dave kleikamp | 118 | 71.52% | 1 | 11.11% |
andreas gruenbacher | andreas gruenbacher | 14 | 8.48% | 2 | 22.22% |
al viro | al viro | 14 | 8.48% | 2 | 22.22% |
mingming cao | mingming cao | 12 | 7.27% | 1 | 11.11% |
christoph hellwig | christoph hellwig | 6 | 3.64% | 2 | 22.22% |
stephen hemminger | stephen hemminger | 1 | 0.61% | 1 | 11.11% |
| Total | 165 | 100.00% | 9 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.