cregit-Linux how code gets into the kernel

Release 4.10 fs/ext2/xattr_security.c

Directory: fs/ext2
/*
 * linux/fs/ext2/xattr_security.c
 * Handler for storing security labels as extended attributes.
 */

#include "ext2.h"
#include <linux/security.h>
#include "xattr.h"


static int ext2_xattr_security_get(const struct xattr_handler *handler, struct dentry *unused, struct inode *inode, const char *name, void *buffer, size_t size) { return ext2_xattr_get(inode, EXT2_XATTR_INDEX_SECURITY, name, buffer, size); }

Contributors

PersonTokensPropCommitsCommitProp
andrew mortonandrew morton3470.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 ext2_xattr_security_set(const struct xattr_handler *handler, struct dentry *unused, struct inode *inode, const char *name, const void *value, size_t size, int flags) { return ext2_xattr_set(inode, EXT2_XATTR_INDEX_SECURITY, name, value, size, flags); }

Contributors

PersonTokensPropCommitsCommitProp
andrew mortonandrew morton4074.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 int ext2_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 = ext2_xattr_set(inode, EXT2_XATTR_INDEX_SECURITY, xattr->name, xattr->value, xattr->value_len, 0); if (err < 0) break; } return err; }

Contributors

PersonTokensPropCommitsCommitProp
mimi zoharmimi zohar4453.66%125.00%
stephen d. smalleystephen d. smalley3441.46%125.00%
eric pariseric paris33.66%125.00%
rashika kheriarashika kheria11.22%125.00%
Total82100.00%4100.00%


int ext2_init_security(struct inode *inode, struct inode *dir, const struct qstr *qstr) { return security_inode_init_security(inode, dir, qstr, &ext2_initxattrs, NULL); }

Contributors

PersonTokensPropCommitsCommitProp
mimi zoharmimi zohar2775.00%150.00%
stephen d. smalleystephen d. smalley925.00%150.00%
Total36100.00%2100.00%

const struct xattr_handler ext2_xattr_security_handler = { .prefix = XATTR_SECURITY_PREFIX, .get = ext2_xattr_security_get, .set = ext2_xattr_security_set, };

Overall Contributors

PersonTokensPropCommitsCommitProp
andrew mortonandrew morton10039.68%18.33%
mimi zoharmimi zohar7128.17%18.33%
stephen d. smalleystephen d. smalley4618.25%18.33%
al viroal viro155.95%325.00%
andreas gruenbacherandreas gruenbacher124.76%18.33%
eric pariseric paris31.19%18.33%
christoph hellwigchristoph hellwig20.79%18.33%
rashika kheriarashika kheria10.40%18.33%
james morrisjames morris10.40%18.33%
stephen hemmingerstephen hemminger10.40%18.33%
Total252100.00%12100.00%
Directory: fs/ext2
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.