Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eaca6eae authored by Al Viro's avatar Al Viro
Browse files

sanitize rt_sigaction() situation a bit



	Switch from __ARCH_WANT_SYS_RT_SIGACTION to opposite
(!CONFIG_ODD_RT_SIGACTION); the only two architectures that
need it are alpha and sparc.  The reason for use of CONFIG_...
instead of __ARCH_... is that it's needed only kernel-side
and doing it that way avoids a mess with include order on many
architectures.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 37784074
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -373,4 +373,9 @@ config CLONE_BACKWARDS2
	help
	  Architecture has the first two arguments of clone(2) swapped.

config ODD_RT_SIGACTION
	bool
	help
	  Architecture has unusual rt_sigaction(2) arguments

source "kernel/gcov/Kconfig"
+1 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ config ALPHA
	select HAVE_MOD_ARCH_SPECIFIC
	select MODULES_USE_ELF_RELA
	select GENERIC_SIGALTSTACK
	select ODD_RT_SIGACTION
	help
	  The Alpha is a 64-bit general-purpose processor designed and
	  marketed by the Digital Equipment Corporation of blessed memory,
+0 −4
Original line number Diff line number Diff line
@@ -49,10 +49,6 @@ asmlinkage unsigned long sys_mmap2(
struct pt_regs;
struct sigaction;
asmlinkage long sys_ia64_pipe(void);
asmlinkage long sys_rt_sigaction(int sig,
				 const struct sigaction __user *act,
				 struct sigaction __user *oact,
				 size_t sigsetsize);

/*
 * "Conditional" syscalls
+0 −3
Original line number Diff line number Diff line
@@ -19,9 +19,6 @@ asmlinkage unsigned long sys_mmap2(unsigned long addr, size_t len,
		unsigned long fd, unsigned long pgoff);
asmlinkage long sys_pipe(int __user *fildes);
asmlinkage long sys_pipe2(int __user *fildes, int flags);
asmlinkage long sys_rt_sigaction(int sig,
		const struct sigaction __user *act,
		struct sigaction __user *oact, size_t sigsetsize);
asmlinkage long ppc64_personality(unsigned long personality);
asmlinkage int ppc_rtas(struct rtas_args __user *uargs);
asmlinkage time_t sys64_time(time_t __user * tloc);
+1 −0
Original line number Diff line number Diff line
@@ -41,6 +41,7 @@ config SPARC
	select GENERIC_STRNCPY_FROM_USER
	select GENERIC_STRNLEN_USER
	select MODULES_USE_ELF_RELA
	select ODD_RT_SIGACTION

config SPARC32
	def_bool !64BIT
Loading