Skip to contentSkip to conversation

+ sys_sysfs-add-config_sysfs_syscall.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Feb 13, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Subject: + sys_sysfs-add-config_sysfs_syscall.patch added to -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Thu, 13 Feb 2014 14:22:12 -0800

The patch titled
Subject: sys_sysfs: Add CONFIG_SYSFS_SYSCALL
has been added to the -mm tree. Its filename is
sys_sysfs-add-config_sysfs_syscall.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/sys_sysfs-add-config_sysfs_syscall.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/sys_sysfs-add-config_sysfs_syscall.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Fabian Frederick <[email protected]>
Subject: sys_sysfs: Add CONFIG_SYSFS_SYSCALL

sys_sysfs is an obsolete system call no longer supported by libc.

- This patch adds a default CONFIG_SYSFS_SYSCALL=y

- Option can be turned off in expert mode.

- cond_syscall added to kernel/sys_ni.c

---

 fs/filesystems.c |    2 ++
 init/Kconfig     |   10 ++++++++++
 kernel/sys_ni.c  |    1 +
 3 files changed, 13 insertions(+)
fs/filesystems.c renamed from fs/filesystems.c~sys_sysfs-add-config_sysfs_syscall +2 -0
diff -puN fs/filesystems.c~sys_sysfs-add-config_sysfs_syscall fs/filesystems.c
@@ -121,6 +121,7 @@ int unregister_filesystem(struct file_sy
 
 EXPORT_SYMBOL(unregister_filesystem);
 
+#ifdef CONFIG_SYSFS_SYSCALL
 static int fs_index(const char __user * __name)
 {
 	struct file_system_type * tmp;
@@ -199,6 +200,7 @@ SYSCALL_DEFINE3(sysfs, int, option, unsi
 	}
 	return retval;
 }
+#endif
 
 int __init get_filesystem_list(char *buf)
 {
init/Kconfig renamed from init/Kconfig~sys_sysfs-add-config_sysfs_syscall +10 -0
diff -puN init/Kconfig~sys_sysfs-add-config_sysfs_syscall init/Kconfig
@@ -1290,6 +1290,16 @@ config UID16
 	help
 	  This enables the legacy 16-bit UID syscall wrappers.
 
+config SYSFS_SYSCALL
+	bool "Sysfs syscall support" if EXPERT
+	default y
+	---help---
+	  sys_sysfs is an obsolete system call no longer supported in
+	  libc.Note that disabling this option while being more secure breaks
+	  compatibility with other systems.
+
+	  If unsure say Y here.
+
 config SYSCTL_SYSCALL
 	bool "Sysctl syscall support" if EXPERT
 	depends on PROC_SYSCTL
kernel/sys_ni.c renamed from kernel/sys_ni.c~sys_sysfs-add-config_sysfs_syscall +1 -0
diff -puN kernel/sys_ni.c~sys_sysfs-add-config_sysfs_syscall kernel/sys_ni.c
@@ -146,6 +146,7 @@ cond_syscall(sys_io_destroy);
 cond_syscall(sys_io_submit);
 cond_syscall(sys_io_cancel);
 cond_syscall(sys_io_getevents);
+cond_syscall(sys_sysfs);
 cond_syscall(sys_syslog);
 cond_syscall(sys_process_vm_readv);
 cond_syscall(sys_process_vm_writev);

_

Patches currently in -mm which might be from [email protected] are

fs-cifs-cifsfsc-add-__init-to-cifs_init_inodecache.patch fs-udf-superc-add-__init-to-init_inodecache.patch sys_sysfs-add-config_sysfs_syscall.patch sys_sysfs-add-config_sysfs_syscall-fix.patch fs-efs-superc-add-__init-to-init_inodecache.patch fs-minix-inodec-add-__init-to-init_inodecache.patch fs-ufs-superc-add-__init-to-init_inodecache.patch ufs-sb-mutex-merge-mutex_destroy.patch fs-adfs-superc-add-__init-to-init_inodecache.patch kernel-panicc-display-reason-at-end-pr_emerg.patch kernel-panicc-display-reason-at-end-pr_emerg-fix.patch linux-next.patch