Release 4.11 fs/reiserfs/xattr_trusted.c
#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
Person | Tokens | Prop | Commits | CommitProp |
Andrew Morton | 47 | 69.12% | 1 | 16.67% |
Al Viro | 13 | 19.12% | 2 | 33.33% |
Andreas Gruenbacher | 6 | 8.82% | 1 | 16.67% |
Jeff Mahoney | 1 | 1.47% | 1 | 16.67% |
Christoph Hellwig | 1 | 1.47% | 1 | 16.67% |
Total | 68 | 100.00% | 6 | 100.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
Person | Tokens | Prop | Commits | CommitProp |
Andrew Morton | 53 | 71.62% | 1 | 16.67% |
Al Viro | 13 | 17.57% | 2 | 33.33% |
Andreas Gruenbacher | 6 | 8.11% | 1 | 16.67% |
Christoph Hellwig | 1 | 1.35% | 1 | 16.67% |
Jeff Mahoney | 1 | 1.35% | 1 | 16.67% |
Total | 74 | 100.00% | 6 | 100.00% |
static bool trusted_list(struct dentry *dentry)
{
return capable(CAP_SYS_ADMIN) && !IS_PRIVATE(d_inode(dentry));
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Andrew Morton | 14 | 53.85% | 1 | 16.67% |
Andreas Gruenbacher | 4 | 15.38% | 1 | 16.67% |
Christoph Hellwig | 3 | 11.54% | 1 | 16.67% |
David Howells | 3 | 11.54% | 1 | 16.67% |
Jeff Mahoney | 2 | 7.69% | 2 | 33.33% |
Total | 26 | 100.00% | 6 | 100.00% |
const struct xattr_handler reiserfs_xattr_trusted_handler = {
.prefix = XATTR_TRUSTED_PREFIX,
.get = trusted_get,
.set = trusted_set,
.list = trusted_list,
};
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Andrew Morton | 148 | 67.58% | 1 | 6.25% |
Al Viro | 36 | 16.44% | 6 | 37.50% |
Andreas Gruenbacher | 16 | 7.31% | 2 | 12.50% |
Jeff Mahoney | 6 | 2.74% | 2 | 12.50% |
Christoph Hellwig | 5 | 2.28% | 1 | 6.25% |
David Howells | 3 | 1.37% | 1 | 6.25% |
Randy Dunlap | 3 | 1.37% | 1 | 6.25% |
Fabian Frederick | 1 | 0.46% | 1 | 6.25% |
Stephen Hemminger | 1 | 0.46% | 1 | 6.25% |
Total | 219 | 100.00% | 16 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.