fs: Limit sys_mount to only request filesystem modules. (Part 3)
Somehow I failed to add the MODULE_ALIAS_FS for cifs, hostfs, hpfs, squashfs, and udf despite what I thought were my careful checks :( Add them now. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
This commit is contained in:
parent
f6161aa153
commit
3e64fe5b21
5 changed files with 5 additions and 0 deletions
|
@ -777,6 +777,7 @@ struct file_system_type cifs_fs_type = {
|
||||||
.kill_sb = cifs_kill_sb,
|
.kill_sb = cifs_kill_sb,
|
||||||
/* .fs_flags */
|
/* .fs_flags */
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("cifs");
|
||||||
const struct inode_operations cifs_dir_inode_ops = {
|
const struct inode_operations cifs_dir_inode_ops = {
|
||||||
.create = cifs_create,
|
.create = cifs_create,
|
||||||
.atomic_open = cifs_atomic_open,
|
.atomic_open = cifs_atomic_open,
|
||||||
|
|
|
@ -993,6 +993,7 @@ static struct file_system_type hostfs_type = {
|
||||||
.kill_sb = hostfs_kill_sb,
|
.kill_sb = hostfs_kill_sb,
|
||||||
.fs_flags = 0,
|
.fs_flags = 0,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("hostfs");
|
||||||
|
|
||||||
static int __init init_hostfs(void)
|
static int __init init_hostfs(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -688,6 +688,7 @@ static struct file_system_type hpfs_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("hpfs");
|
||||||
|
|
||||||
static int __init init_hpfs_fs(void)
|
static int __init init_hpfs_fs(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -489,6 +489,7 @@ static struct file_system_type squashfs_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("squashfs");
|
||||||
|
|
||||||
static const struct super_operations squashfs_super_ops = {
|
static const struct super_operations squashfs_super_ops = {
|
||||||
.alloc_inode = squashfs_alloc_inode,
|
.alloc_inode = squashfs_alloc_inode,
|
||||||
|
|
|
@ -118,6 +118,7 @@ static struct file_system_type udf_fstype = {
|
||||||
.kill_sb = kill_block_super,
|
.kill_sb = kill_block_super,
|
||||||
.fs_flags = FS_REQUIRES_DEV,
|
.fs_flags = FS_REQUIRES_DEV,
|
||||||
};
|
};
|
||||||
|
MODULE_ALIAS_FS("udf");
|
||||||
|
|
||||||
static struct kmem_cache *udf_inode_cachep;
|
static struct kmem_cache *udf_inode_cachep;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue