From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Lieskovsky Subject: Does the order / position of audit rule's arguments matter? Date: Mon, 19 Jan 2015 12:57:11 -0500 (EST) Message-ID: <2022844409.13837392.1421690231611.JavaMail.zimbra@redhat.com> References: <638619010.13827110.1421689227230.JavaMail.zimbra@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <638619010.13827110.1421689227230.JavaMail.zimbra@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: linux-audit@redhat.com Cc: Shawn Wells List-Id: linux-audit@redhat.com Hello folks, wasn't able to find answer to the following question in the auditctl manual page, thus checking here - does the order / position in which the auditctl's | /etc/audit/audit.rules' audit rule arguments are listed in the rule matter or all permutations of the arguments are allowed? IOW suppose the following rule: -a always,exit -F path=/bin/ping -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged Is -a always,exit -F path=/bin/ping -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged the only allowed form or are all the other possible argument permutations [*] also valid / supported (under assumption there isn't some option missing or some new option added of course when compared to the original rule)? Thank you && Regards, Jan. -- Jan iankko Lieskovsky / Red Hat Security Technologies Team [*] For example suppose five different /etc/audit/audit.rules configurations would use the forms as follows below - do all of them represent equivalent requirement / setting? (regardless how much it's likely they would be expressed in that form of) -a always,exit -F path=/bin/ping -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged -F path=/bin/ping -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged -a always,exit -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged -a always, exit -F path/bin/ping -F auid>=500 -F auid!=4294967295 -k privileged -a always,exit -F path=/bin/ping -F perm=x -F auid!=4294967295 -k privileged -a always,exit -F path=/bin/ping -F perm=x -F auid>=500 ..