Exploit databaseDownload repository ZIP
GH-a4473dcd9930d1ae4c0775adc06b1cfb
satheesh575555/linux-4.19.72_cve-2022-36946
Sources for CVE-2022-36946
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files26
satheesh575555/linux-4.19.72_cve-2022-36946Revision 34cc7d8183fd
- ↑..Parent directory
- Kconfig
- Makefile
- attributes.c
- bfind.c
- bitmap.c
- bnode.c
- brec.c
- btree.c
- catalog.c
- dir.c
- extents.c
- hfsplus_fs.h
- hfsplus_raw.h
- inode.c
- ioctl.c
- options.c
- part_tbl.c
- super.c
- tables.c
- unicode.c
- wrapper.c
- xattr.c
- xattr.h
- xattr_security.c
- xattr_trusted.c
- xattr_user.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
fs/hfsplus/xattr_user.c
C · 963 bytes// SPDX-License-Identifier: GPL-2.0
/*
* linux/fs/hfsplus/xattr_user.c
*
* Vyacheslav Dubeyko <[email protected]>
*
* Handler for user extended attributes.
*/
#include <linux/nls.h>
#include "hfsplus_fs.h"
#include "xattr.h"
static int hfsplus_user_getxattr(const struct xattr_handler *handler,
struct dentry *unused, struct inode *inode,
const char *name, void *buffer, size_t size)
{
return hfsplus_getxattr(inode, name, buffer, size,
XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN);
}
static int hfsplus_user_setxattr(const struct xattr_handler *handler,
struct dentry *unused, struct inode *inode,
const char *name, const void *buffer,
size_t size, int flags)
{
return hfsplus_setxattr(inode, name, buffer, size, flags,
XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN);
}
const struct xattr_handler hfsplus_xattr_user_handler = {
.prefix = XATTR_USER_PREFIX,
.get = hfsplus_user_getxattr,
.set = hfsplus_user_setxattr,
};