cregit-Linux how code gets into the kernel

Release 4.10 fs/reiserfs/xattr_trusted.c

Directory: fs/reiserfs
#include "reiserfs.h"
#include <linux/capability.h>
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/pagemap.h>
#include <linux/xattr.h>
#include "xattr.h"
#include <linux/uaccess.h>


static int trusted_get(const struct xattr_handler *handler, struct dentry *unused, struct inode *inode, const char *name, void *buffer, size_t size) { if (!capable(CAP_SYS_ADMIN) || IS_PRIVATE(inode)) return -EPERM; return reiserfs_xattr_get(inode, xattr_full_name(handler, name), buffer, size); }

Contributors

PersonTokensPropCommitsCommitProp
andrew mortonandrew morton4769.12%116.67%
al viroal viro1319.12%233.33%
andreas gruenbacherandreas gruenbacher68.82%116.67%
christoph hellwigchristoph hellwig11.47%116.67%
jeff mahoneyjeff mahoney11.47%116.67%
Total68100.00%6100.00%


static int trusted_set(const struct xattr_handler *handler, struct dentry *unused, struct inode *inode, const char *name, const void *buffer, size_t size, int flags) { if (!capable(CAP_SYS_ADMIN) || IS_PRIVATE(inode)) return -EPERM; return reiserfs_xattr_set(inode, xattr_full_name(handler, name), buffer, size, flags); }

Contributors

PersonTokensPropCommitsCommitProp
andrew mortonandrew morton5371.62%116.67%
al viroal viro1317.57%233.33%
andreas gruenbacherandreas gruenbacher68.11%116.67%
christoph hellwigchristoph hellwig11.35%116.67%
jeff mahoneyjeff mahoney11.35%116.67%
Total74100.00%6100.00%


static bool trusted_list(struct dentry *dentry) { return capable(CAP_SYS_ADMIN) && !IS_PRIVATE(d_inode(dentry)); }

Contributors

PersonTokensPropCommitsCommitProp
andrew mortonandrew morton1453.85%116.67%
andreas gruenbacherandreas gruenbacher415.38%116.67%
christoph hellwigchristoph hellwig311.54%116.67%
david howellsdavid howells311.54%116.67%
jeff mahoneyjeff mahoney27.69%233.33%
Total26100.00%6100.00%

const struct xattr_handler reiserfs_xattr_trusted_handler = { .prefix = XATTR_TRUSTED_PREFIX, .get = trusted_get, .set = trusted_set, .list = trusted_list, };

Overall Contributors

PersonTokensPropCommitsCommitProp
andrew mortonandrew morton14867.58%16.25%
al viroal viro3616.44%637.50%
andreas gruenbacherandreas gruenbacher167.31%212.50%
jeff mahoneyjeff mahoney62.74%212.50%
christoph hellwigchristoph hellwig52.28%16.25%
randy dunlaprandy dunlap31.37%16.25%
david howellsdavid howells31.37%16.25%
fabian frederickfabian frederick10.46%16.25%
stephen hemmingerstephen hemminger10.46%16.25%
Total219100.00%16100.00%
Directory: fs/reiserfs
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.