cregit-Linux how code gets into the kernel

Release 4.17 fs/ext2/xattr_trusted.c

Directory: fs/ext2
// SPDX-License-Identifier: GPL-2.0
/*
 * 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 Morton1376.47%133.33%
Andreas Gruenbacher211.76%133.33%
Christoph Hellwig211.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 Morton3470.83%125.00%
Al Viro714.58%125.00%
Andreas Gruenbacher612.50%125.00%
Christoph 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 Morton4074.07%125.00%
Al Viro712.96%125.00%
Andreas Gruenbacher611.11%125.00%
Christoph 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 Morton11876.62%110.00%
Al Viro159.74%330.00%
Andreas Gruenbacher149.09%220.00%
Christoph Hellwig42.60%110.00%
Stephen Hemminger10.65%110.00%
James Morris10.65%110.00%
Greg Kroah-Hartman10.65%110.00%
Total154100.00%10100.00%
Directory: fs/ext2
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.