public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Subject: Re: auditing ntpd
Date: Thu, 8 Sep 2011 09:24:29 -0400	[thread overview]
Message-ID: <201109080924.29313.sgrubb@redhat.com> (raw)
In-Reply-To: <CAN-7Vpnb3txa+UCZt26G6M1H2t6cqBH=eE0LHftb80y8vZHAvA@mail.gmail.com>

On Thursday, September 08, 2011 06:22:22 AM Vipin Rathor wrote:
> Hi (again),
> I've this rule in audit.rules file to keep a tab on system time change:
> -a always,exit -F arch=b64 -S adjtimex -S settimeofday -F auid!=-1 -k
> adjtimex_time-change
> 
> And i'm continuously getting these messages in external logging server:

What does continuously mean? If ntpd is doing this once a minute and you have a rule 
that does not exclude ntpd, then its doing the right thing.

What you might want to do is modify the rule to be:

-a always,exit -F arch=b64 -S adjtimex -S settimeofday -F auid!=-1 -F uid!=ntp -k
 adjtimex_time-change

This makes an exception for the ntp user account.


> node=<hostname> type=SYSCALL msg=audit(1315476783.281:537763):
> arch=c000003e syscall=159 success=yes exit=5 a0=7fff05a77db0 a1=861
> a2=0 a3=1 items=0 ppid=1 pid=2551623 auid=0 uid=38 gid=38 euid=38
> suid=38 fsuid=38 egid=38 sgid=38 fsgid=38 tty=(none) ses=61352
> comm="ntpd" exe="/usr/sbin/ntpd" key="adjtimex_time-change"

The reason you are getting audited is because the auid is root and they restarted 
ntpd. By making an exception for ntp uid, it should quieten down the logs. But this 
raises a secondary problem, you are allowing root logins which does mess up the audit 
trail. Who was being root?

-Steve

      reply	other threads:[~2011-09-08 13:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-08 10:22 auditing ntpd Vipin Rathor
2011-09-08 13:24 ` Steve Grubb [this message]

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=201109080924.29313.sgrubb@redhat.com \
    --to=sgrubb@redhat.com \
    --cc=linux-audit@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