Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+5
+1
fs/cifs/cifsfs.c
··· 777 777 .kill_sb = cifs_kill_sb, 778 778 /* .fs_flags */ 779 779 }; 780 + MODULE_ALIAS_FS("cifs"); 780 781 const struct inode_operations cifs_dir_inode_ops = { 781 782 .create = cifs_create, 782 783 .atomic_open = cifs_atomic_open,
+1
fs/hostfs/hostfs_kern.c
··· 993 993 .kill_sb = hostfs_kill_sb, 994 994 .fs_flags = 0, 995 995 }; 996 + MODULE_ALIAS_FS("hostfs"); 996 997 997 998 static int __init init_hostfs(void) 998 999 {
+1
fs/hpfs/super.c
··· 688 688 .kill_sb = kill_block_super, 689 689 .fs_flags = FS_REQUIRES_DEV, 690 690 }; 691 + MODULE_ALIAS_FS("hpfs"); 691 692 692 693 static int __init init_hpfs_fs(void) 693 694 {
+1
fs/squashfs/super.c
··· 489 489 .kill_sb = kill_block_super, 490 490 .fs_flags = FS_REQUIRES_DEV 491 491 }; 492 + MODULE_ALIAS_FS("squashfs"); 492 493 493 494 static const struct super_operations squashfs_super_ops = { 494 495 .alloc_inode = squashfs_alloc_inode,
+1
fs/udf/super.c
··· 118 118 .kill_sb = kill_block_super, 119 119 .fs_flags = FS_REQUIRES_DEV, 120 120 }; 121 + MODULE_ALIAS_FS("udf"); 121 122 122 123 static struct kmem_cache *udf_inode_cachep; 123 124