<html><body>
<p><tt>linux-audit-bounces@redhat.com wrote on 04/05/2005 04:05:34 PM:<br>
<br>
> On Tuesday 05 April 2005 16:47, David Woodhouse wrote:<br>
> > 0x80000000 is a flag for '64-bit'<br>
> > 0x40000000 is a flag for 'little-endian'<br>
</tt><br>
<tt>> How would people want this to work? Like Debbie suggested?<br>
</tt><br>
<tt>I'm partial to:</tt><br>
<tt>auditctl -a entry,always -S chmod -F arch=64</tt><br>
<tt>auditctl -a entry,always -S chmod -F arch=32</tt><br>
<br>
<tt>or if you think it's more user friendly, this is okay too:</tt><br>
<tt>auditctl -a entry,always -S chmod -F arch=64BIT</tt><br>
<tt>auditctl -a entry,always -S chmod -F arch=32BIT</tt><br>
<br>
<tt>Something like 0x800000000 would be okay, if:</tt><br>
<tt>1. we document it in the man page what each value means</tt><br>
<tt>2. auditctl is smart enough to understand that 0x8000 is the same as 0x800000000.</tt><br>
<br>
<tt>The main thing is that whatever value means 64bit compiled or 32bit compiled, it is the same for all the platforms.</tt><br>
<tt>I'd like to be able to put statements such as this in my test cases:</tt><br>
<tt>#if defined(__MODE_32)</tt><br>
<tt>   auditctl -a entry,always -S chmod -F arch=32</tt><br>
<tt>#else</tt><br>
<tt>   auditctl -a entry,always -S chmod -F arch=64</tt><br>
<tt>#endif</tt><br>
<br>
<tt>And not have to complicate with platform specific statements like:</tt><br>
<tt>#if defined(__X86_64) && !defined(__MODE_32)</tt><br>
<br>
<br>
<tt>Also, we need to decide what the default behavior should be.</tt><br>
<tt>For our tests, there would be considerably less impact if:</tt><br>
<tt>"auditctl -a entry,always -S chmod"</tt><br>
<tt>would result in two rules being added:</tt><br>
<tt>      auditctl -a entry,always -S chmod -F arch=32</tt><br>
<tt>      auditctl -a entry,always -S chmod -F arch=64</tt><br>
<br>
<tt>Also from the user point of view, if they want to audit chmod syscalls, they more likely want to audit all of them, not just 32bit or 64bit versions of them.</tt><br>
<br>
<br>
<tt>For the case: "auditctl -a entry,always -S 15"</tt><br>
<tt>      My first thought is that only adding one rule would be okay.</tt><br>
<br>
<tt>-debbie</tt></body></html>