All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Grubb <sgrubb@redhat.com>
To: Linux Audit <linux-audit@redhat.com>
Cc: rgb@redhat.com
Subject: [PATCH 1/1] audit: Add new syscalls to the perm=w filter
Date: Thu, 12 Oct 2017 23:24:01 -0400	[thread overview]
Message-ID: <3684595.EFLXjLr4XY@x2> (raw)

The audit subsystem allows selecting audit events based on watches for
a particular behavior like writing to a file. A lot of syscalls have
been added without updating the list. This patch adds 2 syscalls to the
write filters: fallocate and renameat2.

Signed-off-by: sgrubb <sgrubb@redhat.com>
---
 include/asm-generic/audit_dir_write.h | 4 ++++
 include/asm-generic/audit_write.h     | 3 +++
 2 files changed, 7 insertions(+)

diff --git a/include/asm-generic/audit_dir_write.h b/include/asm-generic/audit_dir_write.h
index 7b61db4fe72b..d9a53eaeea35 100644
--- a/include/asm-generic/audit_dir_write.h
+++ b/include/asm-generic/audit_dir_write.h
@@ -30,3 +30,7 @@ __NR_renameat,
 __NR_linkat,
 __NR_symlinkat,
 #endif
+#ifdef __NR_renameat2
+__NR_renameat2,
+#endif
+
diff --git a/include/asm-generic/audit_write.h b/include/asm-generic/audit_write.h
index 274575d7129f..4fa65816acd3 100644
--- a/include/asm-generic/audit_write.h
+++ b/include/asm-generic/audit_write.h
@@ -19,3 +19,6 @@ __NR_ftruncate64,
 #ifdef __NR_bind
 __NR_bind,		/* bind can affect fs object only in one way... */
 #endif
+#ifdef __NR_fallocate
+__NR_fallocate,
+#endif
-- 
2.13.6

             reply	other threads:[~2017-10-13  3:24 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-13  3:24 Steve Grubb [this message]
2017-10-16 19:00 ` [PATCH 1/1] audit: Add new syscalls to the perm=w filter Richard Guy Briggs
2017-10-16 19:06   ` Richard Guy Briggs
2017-10-16 19:15     ` Paul Moore
2017-10-16 20:47       ` Steve Grubb
2017-10-17  1:20         ` Paul Moore
2017-10-16 19:10 ` Paul Moore
2017-10-16 19:18   ` Paul Moore
2017-10-16 19:35     ` Paul Moore
2017-10-16 20:31   ` Steve Grubb
2017-10-17  1:05     ` Paul Moore
2017-10-17 14:11       ` Paul Moore

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=3684595.EFLXjLr4XY@x2 \
    --to=sgrubb@redhat.com \
    --cc=linux-audit@redhat.com \
    --cc=rgb@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.