/* * linux/fs/ext2/xattr_trusted.c * Handler for trusted extended attributes. * * Copyright (C) 2003 by Andreas Gruenbacher, */ #include "ext2.h" #include "xattr.h" static bool ext2_xattr_trusted_list(struct dentry *dentry) { return capable(CAP_SYS_ADMIN); } 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); } 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); } 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, }; >master net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/include/xen/page.h
lude/dt-bindings/pinctrl/pinctrl-tegra.h?id=f3de082c12e5e9ff43c58a7561f6ec3272d03a48'>pinctrl-tegra.h
diff options
AgeCommit message (Expand)AuthorFilesLines
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-12-30 09:29:50 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2016-12-30 09:29:50 -0800
commitf3de082c12e5e9ff43c58a7561f6ec3272d03a48 (patch)
tree8aa8afa56af93cb9f72997a57ee4db6330431f14 /include/dt-bindings/pinctrl/pinctrl-tegra.h
parent98473f9f3f9bd404873cd1178c8be7d6d619f0d1 (diff)
parent02608e02fbec04fccf2eb0cc8d8082f65c0a4286 (diff)
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Pull crypto fix from Herbert Xu: "This fixes a boot failure on some platforms when crypto self test is enabled along with the new acomp interface" * 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: crypto: testmgr - Use heap buffer for acomp test input
Diffstat (limited to 'include/dt-bindings/pinctrl/pinctrl-tegra.h')