From: Steve Grubb <sgrubb@redhat.com>
To: Maria Tsiolakki <tmaria@cs.ucy.ac.cy>
Cc: linux-audit@redhat.com
Subject: Re: audit su - access
Date: Sun, 23 Apr 2017 10:48:20 +0200 [thread overview]
Message-ID: <20170423104820.69b5bdeb@ivy-bridge> (raw)
In-Reply-To: <136b31dc-2f2a-3ae0-cbac-552bbf69d406@cs.ucy.ac.cy>
Hello,
On Fri, 21 Apr 2017 16:00:54 +0300
Maria Tsiolakki <tmaria@cs.ucy.ac.cy> wrote:
> We have setup the audit log on a Redhat linux 7.3 machine
> We have setup various rules, so far successfully. Our last
> requirement is to have audit log, when a user execute the su - or su
> - root, or sudo su I write the following rule , but it does not work
> -a always,exit -S su
This ^^^ is the problem. The -S switch is for system calls. To see a
list of system calls you can run "ausyscall --dump". Su is a
program and not a syscall. So, you would place a watch on it like this:
-a always,exit -F path=/usr/bin/su -F perm=x -F auid>=200 -F
auid!=4294967295 -F key=su-execution
-Steve
> -F auid>=200 -F auid!=4294967295 -F
> key=su-execution How can I audit log the execution of the su command?
>
> Best regards
> Maria
>
next prev parent reply other threads:[~2017-04-23 8:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-21 13:00 audit su - access Maria Tsiolakki
2017-04-23 8:48 ` Steve Grubb [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-04-23 14:22 Maria Tsiolakki
2017-04-24 13:55 ` Ed Christiansen MS
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=20170423104820.69b5bdeb@ivy-bridge \
--to=sgrubb@redhat.com \
--cc=linux-audit@redhat.com \
--cc=tmaria@cs.ucy.ac.cy \
/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