Skip to content

Commit 226b4cc

Browse files
koct9itorvalds
authored andcommitted
mm/process_vm_access: move config option into init/Kconfig
CONFIG_CROSS_MEMORY_ATTACH adds couple syscalls: process_vm_readv and process_vm_writev, it's a kind of IPC for copying data between processes. Currently this option is placed inside "Processor type and features". This patch moves it into "General setup" (where all other arch-independed syscalls and ipc features are placed) and changes prompt string to less cryptic. Signed-off-by: Konstantin Khlebnikov <koct9i@gmail.com> Cc: Christopher Yeoh <cyeoh@au1.ibm.com> Cc: Davidlohr Bueso <davidlohr@hp.com> Cc: Hugh Dickins <hughd@google.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 1a50190 commit 226b4cc

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎init/Kconfig‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,16 @@ config POSIX_MQUEUE_SYSCTL
261261
depends on SYSCTL
262262
default y
263263

264+
config CROSS_MEMORY_ATTACH
265+
bool "Enable process_vm_readv/writev syscalls"
266+
depends on MMU
267+
default y
268+
help
269+
Enabling this option adds the system calls process_vm_readv and
270+
process_vm_writev which allow a process with the correct privileges
271+
to directly read from or write to to another process's address space.
272+
See the man page for more details.
273+
264274
config FHANDLE
265275
bool "open by fhandle syscalls"
266276
select EXPORTFS

‎mm/Kconfig‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -436,16 +436,6 @@ choice
436436
benefit.
437437
endchoice
438438

439-
config CROSS_MEMORY_ATTACH
440-
bool "Cross Memory Support"
441-
depends on MMU
442-
default y
443-
help
444-
Enabling this option adds the system calls process_vm_readv and
445-
process_vm_writev which allow a process with the correct privileges
446-
to directly read from or write to to another process's address space.
447-
See the man page for more details.
448-
449439
#
450440
# UP and nommu archs use km based percpu allocator
451441
#

0 commit comments

Comments
 (0)