Release 4.7 fs/jffs2/security.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/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
| Person | Tokens | Prop | Commits | CommitProp |
mimi zohar | mimi zohar | 48 | 58.54% | 1 | 25.00% |
kaigai kohei | kaigai kohei | 30 | 36.59% | 1 | 25.00% |
eric paris | eric paris | 3 | 3.66% | 1 | 25.00% |
nikola pajkovsky | nikola pajkovsky | 1 | 1.22% | 1 | 25.00% |
| Total | 82 | 100.00% | 4 | 100.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
| Person | Tokens | Prop | Commits | CommitProp |
mimi zohar | mimi zohar | 27 | 75.00% | 1 | 50.00% |
kaigai kohei | kaigai kohei | 9 | 25.00% | 1 | 50.00% |
| Total | 36 | 100.00% | 2 | 100.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
| 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_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
| 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% |
const struct xattr_handler jffs2_security_xattr_handler = {
.prefix = XATTR_SECURITY_PREFIX,
.set = jffs2_security_setxattr,
.get = jffs2_security_getxattr
};
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
kaigai kohei | kaigai kohei | 171 | 60.64% | 1 | 10.00% |
mimi zohar | mimi zohar | 77 | 27.30% | 1 | 10.00% |
al viro | al viro | 14 | 4.96% | 2 | 20.00% |
andreas gruenbacher | andreas gruenbacher | 12 | 4.26% | 1 | 10.00% |
eric paris | eric paris | 3 | 1.06% | 1 | 10.00% |
christoph hellwig | christoph hellwig | 2 | 0.71% | 1 | 10.00% |
stephen hemminger | stephen hemminger | 1 | 0.35% | 1 | 10.00% |
nikola pajkovsky | nikola pajkovsky | 1 | 0.35% | 1 | 10.00% |
david woodhouse | david woodhouse | 1 | 0.35% | 1 | 10.00% |
| Total | 282 | 100.00% | 10 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.