fs: Limit sys_mount to only request filesystem modules (Part 2).
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 7 Mar 2013 09:08:55 +0000 (01:08 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Thu, 7 Mar 2013 09:08:55 +0000 (01:08 -0800)
Add missing MODULE_ALIAS_FS("ocfs2") how did I miss that?
Remove unnecessary MODULE_ALIAS_FS("devpts") devpts can not be modular.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
fs/devpts/inode.c
fs/ocfs2/super.c

index 79b662985efe521ddb60ad7960ec60c3b00a05b6..073d30b9d1acdc735eee53cdc26330df46294165 100644 (file)
@@ -510,7 +510,6 @@ static struct file_system_type devpts_fs_type = {
        .fs_flags       = FS_USERNS_MOUNT | FS_USERNS_DEV_MOUNT,
 #endif
 };
-MODULE_ALIAS_FS("devpts");
 
 /*
  * The normal naming convention is simply /dev/pts/<number>; this conforms
index 9b6910dec4ba79623027455e9833f4892ce3e0ea..01b85165552b75f1cf2e17893bea1054eb19ff81 100644 (file)
@@ -1266,6 +1266,7 @@ static struct file_system_type ocfs2_fs_type = {
        .fs_flags       = FS_REQUIRES_DEV|FS_RENAME_DOES_D_MOVE,
        .next           = NULL
 };
+MODULE_ALIAS_FS("ocfs2");
 
 static int ocfs2_check_set_options(struct super_block *sb,
                                   struct mount_options *options)