Module Name: src Committed By: sborrill Date: Mon Feb 3 11:54:02 UTC 2014
Modified Files: src/lib/libc/gen [netbsd-6]: posix_spawn.3 posix_spawn_file_actions_addopen.3 posix_spawn_file_actions_init.3 posix_spawn_fileactions.c src/sys/compat/netbsd32 [netbsd-6]: netbsd32_execve.c src/sys/kern [netbsd-6]: kern_exec.c Log Message: Pull up the following revisions(s) (requested by martin in ticket #1023): lib/libc/gen/posix_spawn.3: revision 1.5 lib/libc/gen/posix_spawn_file_actions_addopen.3: revision 1.4 lib/libc/gen/posix_spawn_file_actions_init.3: revision 1.4 lib/libc/gen/posix_spawn_fileactions.c: revision 1.3 sys/compat/netbsd32/netbsd32_execve.c: revision 1.38 sys/kern/kern_exec.c: revision 1.373 Limit the amount of kernel memory a posix_spawn syscall can use (for handling the file action list) by limiting the maximum number of file actions to twice the current file descriptor limit. Fix a few bugs in the support functions and document the new limit. From Maxime Villard. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.2.2.1 src/lib/libc/gen/posix_spawn.3 cvs rdiff -u -r1.1 -r1.1.2.1 \ src/lib/libc/gen/posix_spawn_file_actions_addopen.3 \ src/lib/libc/gen/posix_spawn_file_actions_init.3 cvs rdiff -u -r1.1.2.1 -r1.1.2.2 src/lib/libc/gen/posix_spawn_fileactions.c cvs rdiff -u -r1.33.2.2 -r1.33.2.3 src/sys/compat/netbsd32/netbsd32_execve.c cvs rdiff -u -r1.339.2.6 -r1.339.2.7 src/sys/kern/kern_exec.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.