cregit-Linux how code gets into the kernel

Release 4.10 fs/jffs2/xattr_trusted.c

Directory: fs/jffs2
/*
 * 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

PersonTokensPropCommitsCommitProp
kaigai koheikaigai kohei3470.83%125.00%
al viroal viro714.58%125.00%
andreas gruenbacherandreas gruenbacher612.50%125.00%
christoph hellwigchristoph hellwig12.08%125.00%
Total48100.00%4100.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

PersonTokensPropCommitsCommitProp
kaigai koheikaigai kohei4074.07%125.00%
al viroal viro712.96%125.00%
andreas gruenbacherandreas gruenbacher611.11%125.00%
christoph hellwigchristoph hellwig11.85%125.00%
Total54100.00%4100.00%


static bool jffs2_trusted_listxattr(struct dentry *dentry) { return capable(CAP_SYS_ADMIN); }

Contributors

PersonTokensPropCommitsCommitProp
kaigai koheikaigai kohei952.94%125.00%
andreas gruenbacherandreas gruenbacher635.29%250.00%
christoph hellwigchristoph hellwig211.76%125.00%
Total17100.00%4100.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

PersonTokensPropCommitsCommitProp
kaigai koheikaigai kohei12776.97%111.11%
andreas gruenbacherandreas gruenbacher1810.91%333.33%
al viroal viro148.48%222.22%
christoph hellwigchristoph hellwig42.42%111.11%
stephen hemmingerstephen hemminger10.61%111.11%
david woodhousedavid woodhouse10.61%111.11%
Total165100.00%9100.00%
Directory: fs/jffs2
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.