Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace
Pull namespace bugfixes from Eric Biederman: "This is three simple fixes against 3.9-rc1. I have tested each of these fixes and verified they work correctly. The userns oops in key_change_session_keyring and the BUG_ON triggered by proc_ns_follow_link were found by Dave Jones. I am including the enhancement for mount to only trigger requests of filesystem modules here instead of delaying this for the 3.10 merge window because it is both trivial and the kind of change that tends to bit-rot if left untouched for two months." * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace: proc: Use nd_jump_link in proc_ns_follow_link fs: Limit sys_mount to only request filesystem modules (Part 2). fs: Limit sys_mount to only request filesystem modules. userns: Stop oopsing in key_change_session_keyring
This commit is contained in:
Коммит
72932611b4
|
@ -619,6 +619,7 @@ static struct file_system_type pfm_fs_type = {
|
||||||
.mount = pfmfs_mount,
|
.mount = pfmfs_mount,
|
||||||
.kill_sb = kill_anon_super,
|
.kill_sb = kill_anon_super,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("pfmfs");
|
||||||
|
|
||||||
DEFINE_PER_CPU(unsigned long, pfm_syst_info);
|
DEFINE_PER_CPU(unsigned long, pfm_syst_info);
|
||||||
DEFINE_PER_CPU(struct task_struct *, pmu_owner);
|
DEFINE_PER_CPU(struct task_struct *, pmu_owner);
|
||||||
|
|
|
@ -749,6 +749,7 @@ static struct file_system_type spufs_type = {
|
||||||
.mount = spufs_mount,
|
.mount = spufs_mount,
|
||||||
.kill_sb = kill_litter_super,
|
.kill_sb = kill_litter_super,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("spufs");
|
||||||
|
|
||||||
static int __init spufs_init(void)
|
static int __init spufs_init(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -456,6 +456,7 @@ static struct file_system_type hypfs_type = {
|
||||||
.mount = hypfs_mount,
|
.mount = hypfs_mount,
|
||||||
.kill_sb = hypfs_kill_super
|
.kill_sb = hypfs_kill_super
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("s390_hypfs");
|
||||||
|
|
||||||
static const struct super_operations hypfs_s_ops = {
|
static const struct super_operations hypfs_s_ops = {
|
||||||
.statfs = simple_statfs,
|
.statfs = simple_statfs,
|
||||||
|
|
|
@ -1289,6 +1289,7 @@ static struct file_system_type efivarfs_type = {
|
||||||
.mount = efivarfs_mount,
|
.mount = efivarfs_mount,
|
||||||
.kill_sb = efivarfs_kill_sb,
|
.kill_sb = efivarfs_kill_sb,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("efivarfs");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Handle negative dentry.
|
* Handle negative dentry.
|
||||||
|
|
|
@ -410,6 +410,7 @@ static struct file_system_type ipathfs_fs_type = {
|
||||||
.mount = ipathfs_mount,
|
.mount = ipathfs_mount,
|
||||||
.kill_sb = ipathfs_kill_super,
|
.kill_sb = ipathfs_kill_super,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("ipathfs");
|
||||||
|
|
||||||
int __init ipath_init_ipathfs(void)
|
int __init ipath_init_ipathfs(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -604,6 +604,7 @@ static struct file_system_type qibfs_fs_type = {
|
||||||
.mount = qibfs_mount,
|
.mount = qibfs_mount,
|
||||||
.kill_sb = qibfs_kill_super,
|
.kill_sb = qibfs_kill_super,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("ipathfs");
|
||||||
|
|
||||||
int __init qib_init_qibfs(void)
|
int __init qib_init_qibfs(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -110,6 +110,7 @@ static struct file_system_type ibmasmfs_type = {
|
||||||
.mount = ibmasmfs_mount,
|
.mount = ibmasmfs_mount,
|
||||||
.kill_sb = kill_litter_super,
|
.kill_sb = kill_litter_super,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("ibmasmfs");
|
||||||
|
|
||||||
static int ibmasmfs_fill_super (struct super_block *sb, void *data, int silent)
|
static int ibmasmfs_fill_super (struct super_block *sb, void *data, int silent)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1238,6 +1238,7 @@ static struct file_system_type mtd_inodefs_type = {
|
||||||
.mount = mtd_inodefs_mount,
|
.mount = mtd_inodefs_mount,
|
||||||
.kill_sb = kill_anon_super,
|
.kill_sb = kill_anon_super,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("mtd_inodefs");
|
||||||
|
|
||||||
static int __init init_mtdchar(void)
|
static int __init init_mtdchar(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -276,6 +276,7 @@ static struct file_system_type oprofilefs_type = {
|
||||||
.mount = oprofilefs_mount,
|
.mount = oprofilefs_mount,
|
||||||
.kill_sb = kill_litter_super,
|
.kill_sb = kill_litter_super,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("oprofilefs");
|
||||||
|
|
||||||
|
|
||||||
int __init oprofilefs_register(void)
|
int __init oprofilefs_register(void)
|
||||||
|
|
|
@ -1223,6 +1223,7 @@ static struct file_system_type ffs_fs_type = {
|
||||||
.mount = ffs_fs_mount,
|
.mount = ffs_fs_mount,
|
||||||
.kill_sb = ffs_fs_kill_sb,
|
.kill_sb = ffs_fs_kill_sb,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("functionfs");
|
||||||
|
|
||||||
|
|
||||||
/* Driver's main init/cleanup functions *************************************/
|
/* Driver's main init/cleanup functions *************************************/
|
||||||
|
|
|
@ -1235,6 +1235,7 @@ static struct file_system_type ffs_fs_type = {
|
||||||
.mount = ffs_fs_mount,
|
.mount = ffs_fs_mount,
|
||||||
.kill_sb = ffs_fs_kill_sb,
|
.kill_sb = ffs_fs_kill_sb,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("functionfs");
|
||||||
|
|
||||||
|
|
||||||
/* Driver's main init/cleanup functions *************************************/
|
/* Driver's main init/cleanup functions *************************************/
|
||||||
|
|
|
@ -2105,6 +2105,7 @@ static struct file_system_type gadgetfs_type = {
|
||||||
.mount = gadgetfs_mount,
|
.mount = gadgetfs_mount,
|
||||||
.kill_sb = gadgetfs_kill_sb,
|
.kill_sb = gadgetfs_kill_sb,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("gadgetfs");
|
||||||
|
|
||||||
/*----------------------------------------------------------------------*/
|
/*----------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -75,6 +75,7 @@ static struct file_system_type xenfs_type = {
|
||||||
.mount = xenfs_mount,
|
.mount = xenfs_mount,
|
||||||
.kill_sb = kill_litter_super,
|
.kill_sb = kill_litter_super,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("xenfs");
|
||||||
|
|
||||||
static int __init xenfs_init(void)
|
static int __init xenfs_init(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -365,3 +365,4 @@ struct file_system_type v9fs_fs_type = {
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.fs_flags = FS_RENAME_DOES_D_MOVE,
|
.fs_flags = FS_RENAME_DOES_D_MOVE,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("9p");
|
||||||
|
|
|
@ -524,6 +524,7 @@ static struct file_system_type adfs_fs_type = {
|
||||||
.kill_sb = kill_block_super,
|
.kill_sb = kill_block_super,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("adfs");
|
||||||
|
|
||||||
static int __init init_adfs_fs(void)
|
static int __init init_adfs_fs(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -622,6 +622,7 @@ static struct file_system_type affs_fs_type = {
|
||||||
.kill_sb = kill_block_super,
|
.kill_sb = kill_block_super,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("affs");
|
||||||
|
|
||||||
static int __init init_affs_fs(void)
|
static int __init init_affs_fs(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -45,6 +45,7 @@ struct file_system_type afs_fs_type = {
|
||||||
.kill_sb = afs_kill_super,
|
.kill_sb = afs_kill_super,
|
||||||
.fs_flags = 0,
|
.fs_flags = 0,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("afs");
|
||||||
|
|
||||||
static const struct super_operations afs_super_ops = {
|
static const struct super_operations afs_super_ops = {
|
||||||
.statfs = afs_statfs,
|
.statfs = afs_statfs,
|
||||||
|
|
|
@ -26,6 +26,7 @@ static struct file_system_type autofs_fs_type = {
|
||||||
.mount = autofs_mount,
|
.mount = autofs_mount,
|
||||||
.kill_sb = autofs4_kill_sb,
|
.kill_sb = autofs4_kill_sb,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("autofs");
|
||||||
|
|
||||||
static int __init init_autofs4_fs(void)
|
static int __init init_autofs4_fs(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -951,6 +951,7 @@ static struct file_system_type befs_fs_type = {
|
||||||
.kill_sb = kill_block_super,
|
.kill_sb = kill_block_super,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("befs");
|
||||||
|
|
||||||
static int __init
|
static int __init
|
||||||
init_befs_fs(void)
|
init_befs_fs(void)
|
||||||
|
|
|
@ -473,6 +473,7 @@ static struct file_system_type bfs_fs_type = {
|
||||||
.kill_sb = kill_block_super,
|
.kill_sb = kill_block_super,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("bfs");
|
||||||
|
|
||||||
static int __init init_bfs_fs(void)
|
static int __init init_bfs_fs(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -720,6 +720,7 @@ static struct file_system_type bm_fs_type = {
|
||||||
.mount = bm_mount,
|
.mount = bm_mount,
|
||||||
.kill_sb = kill_litter_super,
|
.kill_sb = kill_litter_super,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("binfmt_misc");
|
||||||
|
|
||||||
static int __init init_misc_binfmt(void)
|
static int __init init_misc_binfmt(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1558,6 +1558,7 @@ static struct file_system_type btrfs_fs_type = {
|
||||||
.kill_sb = btrfs_kill_super,
|
.kill_sb = btrfs_kill_super,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("btrfs");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* used by btrfsctl to scan devices when no FS is mounted
|
* used by btrfsctl to scan devices when no FS is mounted
|
||||||
|
|
|
@ -952,6 +952,7 @@ static struct file_system_type ceph_fs_type = {
|
||||||
.kill_sb = ceph_kill_sb,
|
.kill_sb = ceph_kill_sb,
|
||||||
.fs_flags = FS_RENAME_DOES_D_MOVE,
|
.fs_flags = FS_RENAME_DOES_D_MOVE,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("ceph");
|
||||||
|
|
||||||
#define _STRINGIFY(x) #x
|
#define _STRINGIFY(x) #x
|
||||||
#define STRINGIFY(x) _STRINGIFY(x)
|
#define STRINGIFY(x) _STRINGIFY(x)
|
||||||
|
|
|
@ -329,4 +329,5 @@ struct file_system_type coda_fs_type = {
|
||||||
.kill_sb = kill_anon_super,
|
.kill_sb = kill_anon_super,
|
||||||
.fs_flags = FS_BINARY_MOUNTDATA,
|
.fs_flags = FS_BINARY_MOUNTDATA,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("coda");
|
||||||
|
|
||||||
|
|
|
@ -114,6 +114,7 @@ static struct file_system_type configfs_fs_type = {
|
||||||
.mount = configfs_do_mount,
|
.mount = configfs_do_mount,
|
||||||
.kill_sb = kill_litter_super,
|
.kill_sb = kill_litter_super,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("configfs");
|
||||||
|
|
||||||
struct dentry *configfs_pin_fs(void)
|
struct dentry *configfs_pin_fs(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -573,6 +573,7 @@ static struct file_system_type cramfs_fs_type = {
|
||||||
.kill_sb = kill_block_super,
|
.kill_sb = kill_block_super,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("cramfs");
|
||||||
|
|
||||||
static int __init init_cramfs_fs(void)
|
static int __init init_cramfs_fs(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -299,6 +299,7 @@ static struct file_system_type debug_fs_type = {
|
||||||
.mount = debug_mount,
|
.mount = debug_mount,
|
||||||
.kill_sb = kill_litter_super,
|
.kill_sb = kill_litter_super,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("debugfs");
|
||||||
|
|
||||||
static struct dentry *__create_file(const char *name, umode_t mode,
|
static struct dentry *__create_file(const char *name, umode_t mode,
|
||||||
struct dentry *parent, void *data,
|
struct dentry *parent, void *data,
|
||||||
|
|
|
@ -629,6 +629,7 @@ static struct file_system_type ecryptfs_fs_type = {
|
||||||
.kill_sb = ecryptfs_kill_block_super,
|
.kill_sb = ecryptfs_kill_block_super,
|
||||||
.fs_flags = 0
|
.fs_flags = 0
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("ecryptfs");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* inode_info_init_once
|
* inode_info_init_once
|
||||||
|
|
|
@ -33,6 +33,7 @@ static struct file_system_type efs_fs_type = {
|
||||||
.kill_sb = kill_block_super,
|
.kill_sb = kill_block_super,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("efs");
|
||||||
|
|
||||||
static struct pt_types sgi_pt_types[] = {
|
static struct pt_types sgi_pt_types[] = {
|
||||||
{0x00, "SGI vh"},
|
{0x00, "SGI vh"},
|
||||||
|
|
|
@ -1010,6 +1010,7 @@ static struct file_system_type exofs_type = {
|
||||||
.mount = exofs_mount,
|
.mount = exofs_mount,
|
||||||
.kill_sb = generic_shutdown_super,
|
.kill_sb = generic_shutdown_super,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("exofs");
|
||||||
|
|
||||||
static int __init init_exofs(void)
|
static int __init init_exofs(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1536,6 +1536,7 @@ static struct file_system_type ext2_fs_type = {
|
||||||
.kill_sb = kill_block_super,
|
.kill_sb = kill_block_super,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("ext2");
|
||||||
|
|
||||||
static int __init init_ext2_fs(void)
|
static int __init init_ext2_fs(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -3068,6 +3068,7 @@ static struct file_system_type ext3_fs_type = {
|
||||||
.kill_sb = kill_block_super,
|
.kill_sb = kill_block_super,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("ext3");
|
||||||
|
|
||||||
static int __init init_ext3_fs(void)
|
static int __init init_ext3_fs(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -90,6 +90,7 @@ static struct file_system_type ext2_fs_type = {
|
||||||
.kill_sb = kill_block_super,
|
.kill_sb = kill_block_super,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("ext2");
|
||||||
#define IS_EXT2_SB(sb) ((sb)->s_bdev->bd_holder == &ext2_fs_type)
|
#define IS_EXT2_SB(sb) ((sb)->s_bdev->bd_holder == &ext2_fs_type)
|
||||||
#else
|
#else
|
||||||
#define IS_EXT2_SB(sb) (0)
|
#define IS_EXT2_SB(sb) (0)
|
||||||
|
@ -104,6 +105,7 @@ static struct file_system_type ext3_fs_type = {
|
||||||
.kill_sb = kill_block_super,
|
.kill_sb = kill_block_super,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("ext3");
|
||||||
#define IS_EXT3_SB(sb) ((sb)->s_bdev->bd_holder == &ext3_fs_type)
|
#define IS_EXT3_SB(sb) ((sb)->s_bdev->bd_holder == &ext3_fs_type)
|
||||||
#else
|
#else
|
||||||
#define IS_EXT3_SB(sb) (0)
|
#define IS_EXT3_SB(sb) (0)
|
||||||
|
@ -5152,7 +5154,6 @@ static inline int ext2_feature_set_ok(struct super_block *sb)
|
||||||
return 0;
|
return 0;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
MODULE_ALIAS("ext2");
|
|
||||||
#else
|
#else
|
||||||
static inline void register_as_ext2(void) { }
|
static inline void register_as_ext2(void) { }
|
||||||
static inline void unregister_as_ext2(void) { }
|
static inline void unregister_as_ext2(void) { }
|
||||||
|
@ -5185,7 +5186,6 @@ static inline int ext3_feature_set_ok(struct super_block *sb)
|
||||||
return 0;
|
return 0;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
MODULE_ALIAS("ext3");
|
|
||||||
#else
|
#else
|
||||||
static inline void register_as_ext3(void) { }
|
static inline void register_as_ext3(void) { }
|
||||||
static inline void unregister_as_ext3(void) { }
|
static inline void unregister_as_ext3(void) { }
|
||||||
|
@ -5199,6 +5199,7 @@ static struct file_system_type ext4_fs_type = {
|
||||||
.kill_sb = kill_block_super,
|
.kill_sb = kill_block_super,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("ext4");
|
||||||
|
|
||||||
static int __init ext4_init_feat_adverts(void)
|
static int __init ext4_init_feat_adverts(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -687,6 +687,7 @@ static struct file_system_type f2fs_fs_type = {
|
||||||
.kill_sb = kill_block_super,
|
.kill_sb = kill_block_super,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("f2fs");
|
||||||
|
|
||||||
static int __init init_inodecache(void)
|
static int __init init_inodecache(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -668,6 +668,7 @@ static struct file_system_type msdos_fs_type = {
|
||||||
.kill_sb = kill_block_super,
|
.kill_sb = kill_block_super,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("msdos");
|
||||||
|
|
||||||
static int __init init_msdos_fs(void)
|
static int __init init_msdos_fs(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1073,6 +1073,7 @@ static struct file_system_type vfat_fs_type = {
|
||||||
.kill_sb = kill_block_super,
|
.kill_sb = kill_block_super,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("vfat");
|
||||||
|
|
||||||
static int __init init_vfat_fs(void)
|
static int __init init_vfat_fs(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -273,7 +273,7 @@ struct file_system_type *get_fs_type(const char *name)
|
||||||
int len = dot ? dot - name : strlen(name);
|
int len = dot ? dot - name : strlen(name);
|
||||||
|
|
||||||
fs = __get_fs_type(name, len);
|
fs = __get_fs_type(name, len);
|
||||||
if (!fs && (request_module("%.*s", len, name) == 0))
|
if (!fs && (request_module("fs-%.*s", len, name) == 0))
|
||||||
fs = __get_fs_type(name, len);
|
fs = __get_fs_type(name, len);
|
||||||
|
|
||||||
if (dot && fs && !(fs->fs_flags & FS_HAS_SUBTYPE)) {
|
if (dot && fs && !(fs->fs_flags & FS_HAS_SUBTYPE)) {
|
||||||
|
|
|
@ -52,7 +52,6 @@ MODULE_AUTHOR("Christoph Hellwig");
|
||||||
MODULE_DESCRIPTION("Veritas Filesystem (VxFS) driver");
|
MODULE_DESCRIPTION("Veritas Filesystem (VxFS) driver");
|
||||||
MODULE_LICENSE("Dual BSD/GPL");
|
MODULE_LICENSE("Dual BSD/GPL");
|
||||||
|
|
||||||
MODULE_ALIAS("vxfs"); /* makes mount -t vxfs autoload the module */
|
|
||||||
|
|
||||||
|
|
||||||
static void vxfs_put_super(struct super_block *);
|
static void vxfs_put_super(struct super_block *);
|
||||||
|
@ -258,6 +257,7 @@ static struct file_system_type vxfs_fs_type = {
|
||||||
.kill_sb = kill_block_super,
|
.kill_sb = kill_block_super,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("vxfs"); /* makes mount -t vxfs autoload the module */
|
||||||
|
|
||||||
static int __init
|
static int __init
|
||||||
vxfs_init(void)
|
vxfs_init(void)
|
||||||
|
|
|
@ -341,6 +341,7 @@ static struct file_system_type fuse_ctl_fs_type = {
|
||||||
.mount = fuse_ctl_mount,
|
.mount = fuse_ctl_mount,
|
||||||
.kill_sb = fuse_ctl_kill_sb,
|
.kill_sb = fuse_ctl_kill_sb,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("fusectl");
|
||||||
|
|
||||||
int __init fuse_ctl_init(void)
|
int __init fuse_ctl_init(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1117,6 +1117,7 @@ static struct file_system_type fuse_fs_type = {
|
||||||
.mount = fuse_mount,
|
.mount = fuse_mount,
|
||||||
.kill_sb = fuse_kill_sb_anon,
|
.kill_sb = fuse_kill_sb_anon,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("fuse");
|
||||||
|
|
||||||
#ifdef CONFIG_BLOCK
|
#ifdef CONFIG_BLOCK
|
||||||
static struct dentry *fuse_mount_blk(struct file_system_type *fs_type,
|
static struct dentry *fuse_mount_blk(struct file_system_type *fs_type,
|
||||||
|
@ -1146,6 +1147,7 @@ static struct file_system_type fuseblk_fs_type = {
|
||||||
.kill_sb = fuse_kill_sb_blk,
|
.kill_sb = fuse_kill_sb_blk,
|
||||||
.fs_flags = FS_REQUIRES_DEV | FS_HAS_SUBTYPE,
|
.fs_flags = FS_REQUIRES_DEV | FS_HAS_SUBTYPE,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("fuseblk");
|
||||||
|
|
||||||
static inline int register_fuseblk(void)
|
static inline int register_fuseblk(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
#include <linux/gfs2_ondisk.h>
|
#include <linux/gfs2_ondisk.h>
|
||||||
#include <linux/quotaops.h>
|
#include <linux/quotaops.h>
|
||||||
#include <linux/lockdep.h>
|
#include <linux/lockdep.h>
|
||||||
|
#include <linux/module.h>
|
||||||
|
|
||||||
#include "gfs2.h"
|
#include "gfs2.h"
|
||||||
#include "incore.h"
|
#include "incore.h"
|
||||||
|
@ -1425,6 +1426,7 @@ struct file_system_type gfs2_fs_type = {
|
||||||
.kill_sb = gfs2_kill_sb,
|
.kill_sb = gfs2_kill_sb,
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("gfs2");
|
||||||
|
|
||||||
struct file_system_type gfs2meta_fs_type = {
|
struct file_system_type gfs2meta_fs_type = {
|
||||||
.name = "gfs2meta",
|
.name = "gfs2meta",
|
||||||
|
@ -1432,4 +1434,4 @@ struct file_system_type gfs2meta_fs_type = {
|
||||||
.mount = gfs2_mount_meta,
|
.mount = gfs2_mount_meta,
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("gfs2meta");
|
||||||
|
|
|
@ -466,6 +466,7 @@ static struct file_system_type hfs_fs_type = {
|
||||||
.kill_sb = kill_block_super,
|
.kill_sb = kill_block_super,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("hfs");
|
||||||
|
|
||||||
static void hfs_init_once(void *p)
|
static void hfs_init_once(void *p)
|
||||||
{
|
{
|
||||||
|
|
|
@ -654,6 +654,7 @@ static struct file_system_type hfsplus_fs_type = {
|
||||||
.kill_sb = kill_block_super,
|
.kill_sb = kill_block_super,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("hfsplus");
|
||||||
|
|
||||||
static void hfsplus_init_once(void *p)
|
static void hfsplus_init_once(void *p)
|
||||||
{
|
{
|
||||||
|
|
|
@ -748,6 +748,7 @@ static struct file_system_type hppfs_type = {
|
||||||
.kill_sb = kill_anon_super,
|
.kill_sb = kill_anon_super,
|
||||||
.fs_flags = 0,
|
.fs_flags = 0,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("hppfs");
|
||||||
|
|
||||||
static int __init init_hppfs(void)
|
static int __init init_hppfs(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -896,6 +896,7 @@ static struct file_system_type hugetlbfs_fs_type = {
|
||||||
.mount = hugetlbfs_mount,
|
.mount = hugetlbfs_mount,
|
||||||
.kill_sb = kill_litter_super,
|
.kill_sb = kill_litter_super,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("hugetlbfs");
|
||||||
|
|
||||||
static struct vfsmount *hugetlbfs_vfsmount[HUGE_MAX_HSTATE];
|
static struct vfsmount *hugetlbfs_vfsmount[HUGE_MAX_HSTATE];
|
||||||
|
|
||||||
|
|
|
@ -1556,6 +1556,7 @@ static struct file_system_type iso9660_fs_type = {
|
||||||
.kill_sb = kill_block_super,
|
.kill_sb = kill_block_super,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("iso9660");
|
||||||
|
|
||||||
static int __init init_iso9660_fs(void)
|
static int __init init_iso9660_fs(void)
|
||||||
{
|
{
|
||||||
|
@ -1593,5 +1594,3 @@ static void __exit exit_iso9660_fs(void)
|
||||||
module_init(init_iso9660_fs)
|
module_init(init_iso9660_fs)
|
||||||
module_exit(exit_iso9660_fs)
|
module_exit(exit_iso9660_fs)
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
/* Actual filesystem name is iso9660, as requested in filesystems.c */
|
|
||||||
MODULE_ALIAS("iso9660");
|
|
||||||
|
|
|
@ -356,6 +356,7 @@ static struct file_system_type jffs2_fs_type = {
|
||||||
.mount = jffs2_mount,
|
.mount = jffs2_mount,
|
||||||
.kill_sb = jffs2_kill_sb,
|
.kill_sb = jffs2_kill_sb,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("jffs2");
|
||||||
|
|
||||||
static int __init init_jffs2_fs(void)
|
static int __init init_jffs2_fs(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -833,6 +833,7 @@ static struct file_system_type jfs_fs_type = {
|
||||||
.kill_sb = kill_block_super,
|
.kill_sb = kill_block_super,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("jfs");
|
||||||
|
|
||||||
static void init_once(void *foo)
|
static void init_once(void *foo)
|
||||||
{
|
{
|
||||||
|
|
|
@ -608,6 +608,7 @@ static struct file_system_type logfs_fs_type = {
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
|
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("logfs");
|
||||||
|
|
||||||
static int __init logfs_init(void)
|
static int __init logfs_init(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -660,6 +660,7 @@ static struct file_system_type minix_fs_type = {
|
||||||
.kill_sb = kill_block_super,
|
.kill_sb = kill_block_super,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("minix");
|
||||||
|
|
||||||
static int __init init_minix_fs(void)
|
static int __init init_minix_fs(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1051,6 +1051,7 @@ static struct file_system_type ncp_fs_type = {
|
||||||
.kill_sb = kill_anon_super,
|
.kill_sb = kill_anon_super,
|
||||||
.fs_flags = FS_BINARY_MOUNTDATA,
|
.fs_flags = FS_BINARY_MOUNTDATA,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("ncpfs");
|
||||||
|
|
||||||
static int __init init_ncp_fs(void)
|
static int __init init_ncp_fs(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -294,6 +294,7 @@ struct file_system_type nfs_fs_type = {
|
||||||
.kill_sb = nfs_kill_super,
|
.kill_sb = nfs_kill_super,
|
||||||
.fs_flags = FS_RENAME_DOES_D_MOVE|FS_BINARY_MOUNTDATA,
|
.fs_flags = FS_RENAME_DOES_D_MOVE|FS_BINARY_MOUNTDATA,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("nfs");
|
||||||
EXPORT_SYMBOL_GPL(nfs_fs_type);
|
EXPORT_SYMBOL_GPL(nfs_fs_type);
|
||||||
|
|
||||||
struct file_system_type nfs_xdev_fs_type = {
|
struct file_system_type nfs_xdev_fs_type = {
|
||||||
|
@ -333,6 +334,7 @@ struct file_system_type nfs4_fs_type = {
|
||||||
.kill_sb = nfs_kill_super,
|
.kill_sb = nfs_kill_super,
|
||||||
.fs_flags = FS_RENAME_DOES_D_MOVE|FS_BINARY_MOUNTDATA,
|
.fs_flags = FS_RENAME_DOES_D_MOVE|FS_BINARY_MOUNTDATA,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("nfs4");
|
||||||
EXPORT_SYMBOL_GPL(nfs4_fs_type);
|
EXPORT_SYMBOL_GPL(nfs4_fs_type);
|
||||||
|
|
||||||
static int __init register_nfs4_fs(void)
|
static int __init register_nfs4_fs(void)
|
||||||
|
@ -2717,6 +2719,5 @@ module_param(send_implementation_id, ushort, 0644);
|
||||||
MODULE_PARM_DESC(send_implementation_id,
|
MODULE_PARM_DESC(send_implementation_id,
|
||||||
"Send implementation ID with NFSv4.1 exchange_id");
|
"Send implementation ID with NFSv4.1 exchange_id");
|
||||||
MODULE_PARM_DESC(nfs4_unique_id, "nfs_client_id4 uniquifier string");
|
MODULE_PARM_DESC(nfs4_unique_id, "nfs_client_id4 uniquifier string");
|
||||||
MODULE_ALIAS("nfs4");
|
|
||||||
|
|
||||||
#endif /* CONFIG_NFS_V4 */
|
#endif /* CONFIG_NFS_V4 */
|
||||||
|
|
|
@ -1090,6 +1090,7 @@ static struct file_system_type nfsd_fs_type = {
|
||||||
.mount = nfsd_mount,
|
.mount = nfsd_mount,
|
||||||
.kill_sb = nfsd_umount,
|
.kill_sb = nfsd_umount,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("nfsd");
|
||||||
|
|
||||||
#ifdef CONFIG_PROC_FS
|
#ifdef CONFIG_PROC_FS
|
||||||
static int create_proc_exports_entry(void)
|
static int create_proc_exports_entry(void)
|
||||||
|
|
|
@ -1361,6 +1361,7 @@ struct file_system_type nilfs_fs_type = {
|
||||||
.kill_sb = kill_block_super,
|
.kill_sb = kill_block_super,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("nilfs2");
|
||||||
|
|
||||||
static void nilfs_inode_init_once(void *obj)
|
static void nilfs_inode_init_once(void *obj)
|
||||||
{
|
{
|
||||||
|
|
|
@ -3079,6 +3079,7 @@ static struct file_system_type ntfs_fs_type = {
|
||||||
.kill_sb = kill_block_super,
|
.kill_sb = kill_block_super,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("ntfs");
|
||||||
|
|
||||||
/* Stable names for the slab caches. */
|
/* Stable names for the slab caches. */
|
||||||
static const char ntfs_index_ctx_cache_name[] = "ntfs_index_ctx_cache";
|
static const char ntfs_index_ctx_cache_name[] = "ntfs_index_ctx_cache";
|
||||||
|
|
|
@ -640,6 +640,7 @@ static struct file_system_type dlmfs_fs_type = {
|
||||||
.mount = dlmfs_mount,
|
.mount = dlmfs_mount,
|
||||||
.kill_sb = kill_litter_super,
|
.kill_sb = kill_litter_super,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("ocfs2_dlmfs");
|
||||||
|
|
||||||
static int __init init_dlmfs_fs(void)
|
static int __init init_dlmfs_fs(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1266,6 +1266,7 @@ static struct file_system_type ocfs2_fs_type = {
|
||||||
.fs_flags = FS_REQUIRES_DEV|FS_RENAME_DOES_D_MOVE,
|
.fs_flags = FS_REQUIRES_DEV|FS_RENAME_DOES_D_MOVE,
|
||||||
.next = NULL
|
.next = NULL
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("ocfs2");
|
||||||
|
|
||||||
static int ocfs2_check_set_options(struct super_block *sb,
|
static int ocfs2_check_set_options(struct super_block *sb,
|
||||||
struct mount_options *options)
|
struct mount_options *options)
|
||||||
|
|
|
@ -572,6 +572,7 @@ static struct file_system_type omfs_fs_type = {
|
||||||
.kill_sb = kill_block_super,
|
.kill_sb = kill_block_super,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("omfs");
|
||||||
|
|
||||||
static int __init init_omfs_fs(void)
|
static int __init init_omfs_fs(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -432,6 +432,7 @@ static struct file_system_type openprom_fs_type = {
|
||||||
.mount = openprom_mount,
|
.mount = openprom_mount,
|
||||||
.kill_sb = kill_anon_super,
|
.kill_sb = kill_anon_super,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("openpromfs");
|
||||||
|
|
||||||
static void op_inode_init_once(void *data)
|
static void op_inode_init_once(void *data)
|
||||||
{
|
{
|
||||||
|
|
|
@ -118,7 +118,7 @@ static void *proc_ns_follow_link(struct dentry *dentry, struct nameidata *nd)
|
||||||
struct super_block *sb = inode->i_sb;
|
struct super_block *sb = inode->i_sb;
|
||||||
struct proc_inode *ei = PROC_I(inode);
|
struct proc_inode *ei = PROC_I(inode);
|
||||||
struct task_struct *task;
|
struct task_struct *task;
|
||||||
struct dentry *ns_dentry;
|
struct path ns_path;
|
||||||
void *error = ERR_PTR(-EACCES);
|
void *error = ERR_PTR(-EACCES);
|
||||||
|
|
||||||
task = get_proc_task(inode);
|
task = get_proc_task(inode);
|
||||||
|
@ -128,14 +128,14 @@ static void *proc_ns_follow_link(struct dentry *dentry, struct nameidata *nd)
|
||||||
if (!ptrace_may_access(task, PTRACE_MODE_READ))
|
if (!ptrace_may_access(task, PTRACE_MODE_READ))
|
||||||
goto out_put_task;
|
goto out_put_task;
|
||||||
|
|
||||||
ns_dentry = proc_ns_get_dentry(sb, task, ei->ns_ops);
|
ns_path.dentry = proc_ns_get_dentry(sb, task, ei->ns_ops);
|
||||||
if (IS_ERR(ns_dentry)) {
|
if (IS_ERR(ns_path.dentry)) {
|
||||||
error = ERR_CAST(ns_dentry);
|
error = ERR_CAST(ns_path.dentry);
|
||||||
goto out_put_task;
|
goto out_put_task;
|
||||||
}
|
}
|
||||||
|
|
||||||
dput(nd->path.dentry);
|
ns_path.mnt = mntget(nd->path.mnt);
|
||||||
nd->path.dentry = ns_dentry;
|
nd_jump_link(nd, &ns_path);
|
||||||
error = NULL;
|
error = NULL;
|
||||||
|
|
||||||
out_put_task:
|
out_put_task:
|
||||||
|
|
|
@ -412,6 +412,7 @@ static struct file_system_type qnx4_fs_type = {
|
||||||
.kill_sb = kill_block_super,
|
.kill_sb = kill_block_super,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("qnx4");
|
||||||
|
|
||||||
static int __init init_qnx4_fs(void)
|
static int __init init_qnx4_fs(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -672,6 +672,7 @@ static struct file_system_type qnx6_fs_type = {
|
||||||
.kill_sb = kill_block_super,
|
.kill_sb = kill_block_super,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("qnx6");
|
||||||
|
|
||||||
static int __init init_qnx6_fs(void)
|
static int __init init_qnx6_fs(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -2434,6 +2434,7 @@ struct file_system_type reiserfs_fs_type = {
|
||||||
.kill_sb = reiserfs_kill_sb,
|
.kill_sb = reiserfs_kill_sb,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("reiserfs");
|
||||||
|
|
||||||
MODULE_DESCRIPTION("ReiserFS journaled filesystem");
|
MODULE_DESCRIPTION("ReiserFS journaled filesystem");
|
||||||
MODULE_AUTHOR("Hans Reiser <reiser@namesys.com>");
|
MODULE_AUTHOR("Hans Reiser <reiser@namesys.com>");
|
||||||
|
|
|
@ -599,6 +599,7 @@ static struct file_system_type romfs_fs_type = {
|
||||||
.kill_sb = romfs_kill_sb,
|
.kill_sb = romfs_kill_sb,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("romfs");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* inode storage initialiser
|
* inode storage initialiser
|
||||||
|
|
|
@ -545,6 +545,7 @@ static struct file_system_type sysv_fs_type = {
|
||||||
.kill_sb = kill_block_super,
|
.kill_sb = kill_block_super,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("sysv");
|
||||||
|
|
||||||
static struct file_system_type v7_fs_type = {
|
static struct file_system_type v7_fs_type = {
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
|
@ -553,6 +554,7 @@ static struct file_system_type v7_fs_type = {
|
||||||
.kill_sb = kill_block_super,
|
.kill_sb = kill_block_super,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("v7");
|
||||||
|
|
||||||
static int __init init_sysv_fs(void)
|
static int __init init_sysv_fs(void)
|
||||||
{
|
{
|
||||||
|
@ -586,5 +588,4 @@ static void __exit exit_sysv_fs(void)
|
||||||
|
|
||||||
module_init(init_sysv_fs)
|
module_init(init_sysv_fs)
|
||||||
module_exit(exit_sysv_fs)
|
module_exit(exit_sysv_fs)
|
||||||
MODULE_ALIAS("v7");
|
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
|
|
@ -2174,6 +2174,7 @@ static struct file_system_type ubifs_fs_type = {
|
||||||
.mount = ubifs_mount,
|
.mount = ubifs_mount,
|
||||||
.kill_sb = kill_ubifs_super,
|
.kill_sb = kill_ubifs_super,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("ubifs");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Inode slab cache constructor.
|
* Inode slab cache constructor.
|
||||||
|
|
|
@ -1500,6 +1500,7 @@ static struct file_system_type ufs_fs_type = {
|
||||||
.kill_sb = kill_block_super,
|
.kill_sb = kill_block_super,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("ufs");
|
||||||
|
|
||||||
static int __init init_ufs_fs(void)
|
static int __init init_ufs_fs(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1561,6 +1561,7 @@ static struct file_system_type xfs_fs_type = {
|
||||||
.kill_sb = kill_block_super,
|
.kill_sb = kill_block_super,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("xfs");
|
||||||
|
|
||||||
STATIC int __init
|
STATIC int __init
|
||||||
xfs_init_zones(void)
|
xfs_init_zones(void)
|
||||||
|
|
|
@ -1825,6 +1825,8 @@ struct file_system_type {
|
||||||
struct lock_class_key i_mutex_dir_key;
|
struct lock_class_key i_mutex_dir_key;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#define MODULE_ALIAS_FS(NAME) MODULE_ALIAS("fs-" NAME)
|
||||||
|
|
||||||
extern struct dentry *mount_ns(struct file_system_type *fs_type, int flags,
|
extern struct dentry *mount_ns(struct file_system_type *fs_type, int flags,
|
||||||
void *data, int (*fill_super)(struct super_block *, void *, int));
|
void *data, int (*fill_super)(struct super_block *, void *, int));
|
||||||
extern struct dentry *mount_bdev(struct file_system_type *fs_type,
|
extern struct dentry *mount_bdev(struct file_system_type *fs_type,
|
||||||
|
|
|
@ -1174,6 +1174,7 @@ static struct file_system_type rpc_pipe_fs_type = {
|
||||||
.mount = rpc_mount,
|
.mount = rpc_mount,
|
||||||
.kill_sb = rpc_kill_sb,
|
.kill_sb = rpc_kill_sb,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("rpc_pipefs");
|
||||||
|
|
||||||
static void
|
static void
|
||||||
init_once(void *foo)
|
init_once(void *foo)
|
||||||
|
@ -1218,6 +1219,3 @@ void unregister_rpc_pipefs(void)
|
||||||
kmem_cache_destroy(rpc_inode_cachep);
|
kmem_cache_destroy(rpc_inode_cachep);
|
||||||
unregister_filesystem(&rpc_pipe_fs_type);
|
unregister_filesystem(&rpc_pipe_fs_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Make 'mount -t rpc_pipefs ...' autoload this module. */
|
|
||||||
MODULE_ALIAS("rpc_pipefs");
|
|
||||||
|
|
|
@ -839,7 +839,7 @@ void key_change_session_keyring(struct callback_head *twork)
|
||||||
new-> sgid = old-> sgid;
|
new-> sgid = old-> sgid;
|
||||||
new->fsgid = old->fsgid;
|
new->fsgid = old->fsgid;
|
||||||
new->user = get_uid(old->user);
|
new->user = get_uid(old->user);
|
||||||
new->user_ns = get_user_ns(new->user_ns);
|
new->user_ns = get_user_ns(old->user_ns);
|
||||||
new->group_info = get_group_info(old->group_info);
|
new->group_info = get_group_info(old->group_info);
|
||||||
|
|
||||||
new->securebits = old->securebits;
|
new->securebits = old->securebits;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче