/* * linux/fs/ext4/xattr_trusted.c * Handler for trusted extended attributes. * * Copyright (C) 2003 by Andreas Gruenbacher, */ #include #include #include #include "ext4_jbd2.h" #include "ext4.h" #include "xattr.h" static bool ext4_xattr_trusted_list(struct dentry *dentry) { return capable(CAP_SYS_ADMIN); } static int ext4_xattr_trusted_get(const struct xattr_handler *handler, struct dentry *unused, struct inode *inode, const char *name, void *buffer, size_t size) { return ext4_xattr_get(inode, EXT4_XATTR_INDEX_TRUSTED, name, buffer, size); } static int ext4_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 ext4_xattr_set(inode, EXT4_XATTR_INDEX_TRUSTED, name, value, size, flags); } const struct xattr_handler ext4_xattr_trusted_handler = { .prefix = XATTR_TRUSTED_PREFIX, .list = ext4_xattr_trusted_list, .get = ext4_xattr_trusted_get, .set = ext4_xattr_trusted_set, }; elected'>nds-private-remove net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
tion>
AgeCommit message (Expand)AuthorFilesLines
space:
mode:
authorMark Brown <broonie@kernel.org>2016-11-15 15:01:09 +0000
committerMark Brown <broonie@kernel.org>2016-11-15 15:22:10 +0000
commit53a20465e6b674eb6ce594b0e9e8940495e95f33 (patch)
tree4d4c29c7c68ab2a1b69e4bd3903949356d2467e8 /net/sunrpc/rpcb_clnt.c
parent1001354ca34179f3db924eb66672442a173147dc (diff)
regulator: pwm: Add missing quotes to DT example
Reported-by: Peter Rosin <peda@axentia.se> Signed-off-by: Mark Brown <broonie@kernel.org> Acked-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'net/sunrpc/rpcb_clnt.c')