Release 4.7 fs/jffs2/xattr_trusted.c
/*
* JFFS2 -- Journalling Flash File System, Version 2.
*
* Copyright © 2006 NEC Corporation
*
* Created by KaiGai Kohei <kaigai@ak.jp.nec.com>
*
* For licensing information, see the file 'LICENCE' in this directory.
*
*/
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/jffs2.h>
#include <linux/xattr.h>
#include <linux/mtd/mtd.h>
#include "nodelist.h"
static int jffs2_trusted_getxattr(const struct xattr_handler *handler,
struct dentry *unused, struct inode *inode,
const char *name, void *buffer, size_t size)
{
return do_jffs2_getxattr(inode, JFFS2_XPREFIX_TRUSTED,
name, buffer, size);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
kaigai kohei | kaigai kohei | 34 | 70.83% | 1 | 25.00% |
al viro | al viro | 7 | 14.58% | 1 | 25.00% |
andreas gruenbacher | andreas gruenbacher | 6 | 12.50% | 1 | 25.00% |
christoph hellwig | christoph hellwig | 1 | 2.08% | 1 | 25.00% |
| Total | 48 | 100.00% | 4 | 100.00% |
static int jffs2_trusted_setxattr(const struct xattr_handler *handler,
struct dentry *unused, struct inode *inode,
const char *name, const void *buffer,
size_t size, int flags)
{
return do_jffs2_setxattr(inode, JFFS2_XPREFIX_TRUSTED,
name, buffer, size, flags);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
kaigai kohei | kaigai kohei | 40 | 74.07% | 1 | 25.00% |
al viro | al viro | 7 | 12.96% | 1 | 25.00% |
andreas gruenbacher | andreas gruenbacher | 6 | 11.11% | 1 | 25.00% |
christoph hellwig | christoph hellwig | 1 | 1.85% | 1 | 25.00% |
| Total | 54 | 100.00% | 4 | 100.00% |
static bool jffs2_trusted_listxattr(struct dentry *dentry)
{
return capable(CAP_SYS_ADMIN);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
kaigai kohei | kaigai kohei | 9 | 52.94% | 1 | 25.00% |
andreas gruenbacher | andreas gruenbacher | 6 | 35.29% | 2 | 50.00% |
christoph hellwig | christoph hellwig | 2 | 11.76% | 1 | 25.00% |
| Total | 17 | 100.00% | 4 | 100.00% |
const struct xattr_handler jffs2_trusted_xattr_handler = {
.prefix = XATTR_TRUSTED_PREFIX,
.list = jffs2_trusted_listxattr,
.set = jffs2_trusted_setxattr,
.get = jffs2_trusted_getxattr
};
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
kaigai kohei | kaigai kohei | 127 | 76.97% | 1 | 11.11% |
andreas gruenbacher | andreas gruenbacher | 18 | 10.91% | 3 | 33.33% |
al viro | al viro | 14 | 8.48% | 2 | 22.22% |
christoph hellwig | christoph hellwig | 4 | 2.42% | 1 | 11.11% |
stephen hemminger | stephen hemminger | 1 | 0.61% | 1 | 11.11% |
david woodhouse | david woodhouse | 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.