mirror of
https://github.com/torvalds/linux.git
synced 2024-11-08 05:01:48 +00:00
a88b5ba8bd
o Move all files from sparc64/kernel/ to sparc/kernel - rename as appropriate o Update sparc/Makefile to the changes o Update sparc/kernel/Makefile to include the sparc64 files NOTE: This commit changes link order on sparc64! Link order had to change for either of sparc32 and sparc64. And assuming sparc64 see more testing than sparc32 change link order on sparc64 where issues will be caught faster. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
44 lines
689 B
C
44 lines
689 B
C
#define __32bit_syscall_numbers__
|
|
#include <asm/unistd.h>
|
|
|
|
unsigned sparc32_dir_class[] = {
|
|
#include <asm-generic/audit_dir_write.h>
|
|
~0U
|
|
};
|
|
|
|
unsigned sparc32_chattr_class[] = {
|
|
#include <asm-generic/audit_change_attr.h>
|
|
~0U
|
|
};
|
|
|
|
unsigned sparc32_write_class[] = {
|
|
#include <asm-generic/audit_write.h>
|
|
~0U
|
|
};
|
|
|
|
unsigned sparc32_read_class[] = {
|
|
#include <asm-generic/audit_read.h>
|
|
~0U
|
|
};
|
|
|
|
unsigned sparc32_signal_class[] = {
|
|
#include <asm-generic/audit_signal.h>
|
|
~0U
|
|
};
|
|
|
|
int sparc32_classify_syscall(unsigned syscall)
|
|
{
|
|
switch(syscall) {
|
|
case __NR_open:
|
|
return 2;
|
|
case __NR_openat:
|
|
return 3;
|
|
case __NR_socketcall:
|
|
return 4;
|
|
case __NR_execve:
|
|
return 5;
|
|
default:
|
|
return 1;
|
|
}
|
|
}
|