From: "chuli" <chul@cn.fujitsu.com>
To: 'Steve Grubb' <sgrubb@redhat.com>
Cc: 'linux-audit' <linux-audit@redhat.com>
Subject: [PATCH]Fix the bug about checking the syscall number
Date: Mon, 4 Aug 2008 11:06:32 +0800 [thread overview]
Message-ID: <006401c8f5df$18b9c8c0$958da70a@truly> (raw)
In-Reply-To: <001401c8f2bc$1279e150$958da70a@truly>
Hi, Steve
> Is there any special reason to set the limitation as "2015"?
I think this is a bug. The syscall number is not actually limited according to
"syscall table" in different platform.
This is the patch for latest code in audit SVN project. How about your opinion?
Signed-off-by: Chu Li <chul@cn.fujitsu.com>
---
diff --git a/deprecated.c b/deprecated.c
index 4f0c14e..8be8d11 100755
--- a/deprecated.c
+++ b/deprecated.c
@@ -160,6 +160,8 @@ int audit_rule_syscallbyname(struct audit_rule *rule,
if (nr < 0) {
if (isdigit(scall[0]))
nr = strtol(scall, NULL, 0);
+ if (audit_syscall_to_name(nr,machine) == NULL)
+ return -1;
}
if (nr >= 0)
return audit_rule_syscall(rule, nr);
> -----Original Message-----
> From: linux-audit-bounces@redhat.com [mailto:linux-audit-bounces@redhat.com] On
> Behalf Of chuli
> Sent: Thursday, July 31, 2008 11:18 AM
> To: 'Steve Grubb'
> Cc: 'linux-audit'
> Subject: Question about max syscall number
>
> Hi,
>
> When I use "auditctl -a exit,always -S 2015" in x86 system, this rule can be
> added.
> But I thought it would report error since there is not such syscall number
> "1000"
> in x86, the max is 318. If I use "auditctl -a exit,always -S 2016" in x86
> system,
> it will report " Syscall name unknown: 2016". And it is the same with x86_64 and
> ia64.
> (syscalls in S390 and ppc syscall table is 1-318)
>
> Is there any special reason to set the limitation as "2015"?
>
> Regards
> Chu Li
>
>
>
>
> --
> Linux-audit mailing list
> Linux-audit@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-audit
next prev parent reply other threads:[~2008-08-04 3:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-31 3:18 Question about max syscall number chuli
2008-08-04 3:06 ` chuli [this message]
2008-08-04 19:46 ` Steve Grubb
2008-08-05 7:13 ` chuli
2008-08-05 13:58 ` Steve Grubb
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='006401c8f5df$18b9c8c0$958da70a@truly' \
--to=chul@cn.fujitsu.com \
--cc=linux-audit@redhat.com \
--cc=sgrubb@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox