فهرست منبع

audit: __audit_syscall_entry: ignore arch arg and call syscall_get_arch() directly

Since every arch should have syscall_get_arch() defined, stop using the
function argument and just collect this ourselves.  We do not drop the
argument as fixing some code paths (in assembly) to not pass this first
argument is non-trivial.  The argument will be dropped when that is
fixed.

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
Richard Guy Briggs 11 سال پیش
والد
کامیت
4a99854c58
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      kernel/auditsc.c

+ 1 - 1
kernel/auditsc.c

@@ -1536,7 +1536,7 @@ void __audit_syscall_entry(int arch, int major,
 	if (!audit_enabled)
 	if (!audit_enabled)
 		return;
 		return;
 
 
-	context->arch	    = arch;
+	context->arch	    = syscall_get_arch();
 	context->major      = major;
 	context->major      = major;
 	context->argv[0]    = a1;
 	context->argv[0]    = a1;
 	context->argv[1]    = a2;
 	context->argv[1]    = a2;