linux/fs/fs_struct.c

// SPDX-License-Identifier: GPL-2.0-only
#include <linux/export.h>
#include <linux/sched/signal.h>
#include <linux/sched/task.h>
#include <linux/fs.h>
#include <linux/path.h>
#include <linux/slab.h>
#include <linux/fs_struct.h>
#include "internal.h"

/*
 * Replace the fs->{rootmnt,root} with {mnt,dentry}. Put the old values.
 * It can block.
 */
void set_fs_root(struct fs_struct *fs, const struct path *path)
{}

/*
 * Replace the fs->{pwdmnt,pwd} with {mnt,dentry}. Put the old values.
 * It can block.
 */
void set_fs_pwd(struct fs_struct *fs, const struct path *path)
{}

static inline int replace_path(struct path *p, const struct path *old, const struct path *new)
{}

void chroot_fs_refs(const struct path *old_root, const struct path *new_root)
{}

void free_fs_struct(struct fs_struct *fs)
{}

void exit_fs(struct task_struct *tsk)
{}

struct fs_struct *copy_fs_struct(struct fs_struct *old)
{}

int unshare_fs_struct(void)
{}
EXPORT_SYMBOL_GPL();

int current_umask(void)
{}
EXPORT_SYMBOL();

/* to be mentioned only in INIT_TASK */
struct fs_struct init_fs =;