linux/fs/reiserfs/xattr_security.c

// SPDX-License-Identifier: GPL-2.0
#include "reiserfs.h"
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/pagemap.h>
#include <linux/xattr.h>
#include <linux/slab.h>
#include "xattr.h"
#include <linux/security.h>
#include <linux/uaccess.h>

static int
security_get(const struct xattr_handler *handler, struct dentry *unused,
	     struct inode *inode, const char *name, void *buffer, size_t size)
{}

static int
security_set(const struct xattr_handler *handler,
	     struct mnt_idmap *idmap, struct dentry *unused,
	     struct inode *inode, const char *name, const void *buffer,
	     size_t size, int flags)
{}

static bool security_list(struct dentry *dentry)
{}

static int
reiserfs_initxattrs(struct inode *inode, const struct xattr *xattr_array,
		    void *fs_info)
{}

/* Initializes the security context for a new inode and returns the number
 * of blocks needed for the transaction. If successful, reiserfs_security
 * must be released using reiserfs_security_free when the caller is done. */
int reiserfs_security_init(struct inode *dir, struct inode *inode,
			   const struct qstr *qstr,
			   struct reiserfs_security_handle *sec)
{}

int reiserfs_security_write(struct reiserfs_transaction_handle *th,
			    struct inode *inode,
			    struct reiserfs_security_handle *sec)
{}

void reiserfs_security_free(struct reiserfs_security_handle *sec)
{}

const struct xattr_handler reiserfs_xattr_security_handler =;