cregit-Linux how code gets into the kernel

Release 4.10 fs/jffs2/security.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/slab.h>
#include <linux/fs.h>
#include <linux/time.h>
#include <linux/pagemap.h>
#include <linux/highmem.h>
#include <linux/crc32.h>
#include <linux/jffs2.h>
#include <linux/xattr.h>
#include <linux/mtd/mtd.h>
#include <linux/security.h>
#include "nodelist.h"

/* ---- Initial Security Label(s) Attachment callback --- */

static int jffs2_initxattrs(struct inode *inode, const struct xattr *xattr_array, void *fs_info) { const struct xattr *xattr; int err = 0; for (xattr = xattr_array; xattr->name != NULL; xattr++) { err = do_jffs2_setxattr(inode, JFFS2_XPREFIX_SECURITY, xattr->name, xattr->value, xattr->value_len, 0); if (err < 0) break; } return err; }

Contributors

PersonTokensPropCommitsCommitProp
mimi zoharmimi zohar4858.54%125.00%
kaigai koheikaigai kohei3036.59%125.00%
eric pariseric paris33.66%125.00%
nikola pajkovskynikola pajkovsky11.22%125.00%
Total82100.00%4100.00%

/* ---- Initial Security Label(s) Attachment ----------- */
int jffs2_init_security(struct inode *inode, struct inode *dir, const struct qstr *qstr) { return security_inode_init_security(inode, dir, qstr, &jffs2_initxattrs, NULL); }

Contributors

PersonTokensPropCommitsCommitProp
mimi zoharmimi zohar2775.00%150.00%
kaigai koheikaigai kohei925.00%150.00%
Total36100.00%2100.00%

/* ---- XATTR Handler for "security.*" ----------------- */
static int jffs2_security_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_SECURITY, 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_security_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_SECURITY, 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%

const struct xattr_handler jffs2_security_xattr_handler = { .prefix = XATTR_SECURITY_PREFIX, .set = jffs2_security_setxattr, .get = jffs2_security_getxattr };

Overall Contributors

PersonTokensPropCommitsCommitProp
kaigai koheikaigai kohei17160.64%110.00%
mimi zoharmimi zohar7727.30%110.00%
al viroal viro144.96%220.00%
andreas gruenbacherandreas gruenbacher124.26%110.00%
eric pariseric paris31.06%110.00%
christoph hellwigchristoph hellwig20.71%110.00%
stephen hemmingerstephen hemminger10.35%110.00%
nikola pajkovskynikola pajkovsky10.35%110.00%
david woodhousedavid woodhouse10.35%110.00%
Total282100.00%10100.00%
Directory: fs/jffs2
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.