Release 4.15 fs/ext4/xattr_trusted.c
// SPDX-License-Identifier: GPL-2.0
/*
* 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 | 12 | 70.59% | 1 | 25.00% |
Christoph Hellwig | 2 | 11.76% | 1 | 25.00% |
Andreas Gruenbacher | 2 | 11.76% | 1 | 25.00% |
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 | 31 | 64.58% | 1 | 20.00% |
Al Viro | 7 | 14.58% | 1 | 20.00% |
Andreas Gruenbacher | 6 | 12.50% | 1 | 20.00% |
Mingming Cao | 3 | 6.25% | 1 | 20.00% |
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 | 37 | 68.52% | 1 | 20.00% |
Al Viro | 7 | 12.96% | 1 | 20.00% |
Andreas Gruenbacher | 6 | 11.11% | 1 | 20.00% |
Mingming Cao | 3 | 5.56% | 1 | 20.00% |
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 | 118 | 71.08% | 1 | 10.00% |
Andreas Gruenbacher | 14 | 8.43% | 2 | 20.00% |
Al Viro | 14 | 8.43% | 2 | 20.00% |
Mingming Cao | 12 | 7.23% | 1 | 10.00% |
Christoph Hellwig | 6 | 3.61% | 2 | 20.00% |
Stephen Hemminger | 1 | 0.60% | 1 | 10.00% |
Greg Kroah-Hartman | 1 | 0.60% | 1 | 10.00% |
Total | 166 | 100.00% | 10 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.