cregit-Linux how code gets into the kernel

Release 4.10 fs/ext2/xattr_trusted.c

Directory: fs/ext2
/*
 * linux/fs/ext2/xattr_trusted.c
 * Handler for trusted extended attributes.
 *
 * Copyright (C) 2003 by Andreas Gruenbacher, <a.gruenbacher@computer.org>
 */

#include "ext2.h"
#include "xattr.h"


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

Contributors

PersonTokensPropCommitsCommitProp
andrew mortonandrew morton1376.47%133.33%
christoph hellwigchristoph hellwig211.76%133.33%
andreas gruenbacherandreas gruenbacher211.76%133.33%
Total17100.00%3100.00%


static int ext2_xattr_trusted_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_TRUSTED, 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_trusted_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_TRUSTED, 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%

const struct xattr_handler ext2_xattr_trusted_handler = { .prefix = XATTR_TRUSTED_PREFIX, .list = ext2_xattr_trusted_list, .get = ext2_xattr_trusted_get, .set = ext2_xattr_trusted_set, };

Overall Contributors

PersonTokensPropCommitsCommitProp
andrew mortonandrew morton11877.12%111.11%
al viroal viro159.80%333.33%
andreas gruenbacherandreas gruenbacher149.15%222.22%
christoph hellwigchristoph hellwig42.61%111.11%
james morrisjames morris10.65%111.11%
stephen hemmingerstephen hemminger10.65%111.11%
Total153100.00%9100.00%
Directory: fs/ext2
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.