All of lore.kernel.org
 help / color / mirror / Atom feed
* audit rule problem
@ 2017-11-15  0:38 LC Bruzenak
  2017-11-15 17:06 ` LC Bruzenak
  0 siblings, 1 reply; 7+ messages in thread
From: LC Bruzenak @ 2017-11-15  0:38 UTC (permalink / raw)
  To: linux-audit@redhat.com


[-- Attachment #1.1: Type: text/plain, Size: 1082 bytes --]

System:
Linux audit 2.6.32-696.3.2.el6.x86_64 #1 SMP Wed Jun 7 11:51:39 EDT 2017 
x86_64 x86_64 x86_64 GNU/Linux
userspace audit-2.4.5-3
Red Hat Enterprise Linux Client release 6.9 (Santiago)

I changed this line in /etc/audit/audit.rules from:
-a exit,always  -F arch=b64 -S mount -S umount2 -k mount
to this:
-a exit,always  -F arch=b64 -S mount -S umount2 -F subj_type!=nothing_t 
-k mount

Reloaded my rules, and now doing (as root):
# umount /boot; mount /boot

no longer produces audit events. I did this because on another system 
(mls policy, with lots of custom types) I lost the events once I 
included some custom types installed and operational on the system, so I 
was just trying to reduce this to a reproducible case. I can almost see 
that a non-existent type might fail, but it maybe should fail to load.?.

However, the bigger problem is that trying to add my other valid custom 
types into the exclusion on the mls policy machine is causing me to lose 
events. Any ideas?

Thx,
LCB

-- 
LC (Lenny) Bruzenak
lenny@magitekltd.com



[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 3805 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 7+ messages in thread
* Audit rule problem
@ 2007-07-17 14:05 Roger Holm
  2007-07-19 13:17 ` Steve Grubb
  2007-07-19 17:59 ` Valdis.Kletnieks
  0 siblings, 2 replies; 7+ messages in thread
From: Roger Holm @ 2007-07-17 14:05 UTC (permalink / raw)
  To: linux-audit


[-- Attachment #1.1: Type: text/plain, Size: 389 bytes --]

Hello.

 

I wonder if someone can help me with an audit rule issue? 

 

I want to log if someone uses the rpm command (to install/upgrade
packages), but not the rest of commands. Only the rpm command! 

Is it possible? If so, can anyone please tell me how to write the rule
string? I've searched the internet, without success.

 

 

Regards

 

Roger Holm

 


[-- Attachment #1.2: Type: text/html, Size: 2990 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-11-15 17:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-15  0:38 audit rule problem LC Bruzenak
2017-11-15 17:06 ` LC Bruzenak
2017-11-15 17:16   ` Steve Grubb
2017-11-15 17:20     ` LC Bruzenak
  -- strict thread matches above, loose matches on Subject: below --
2007-07-17 14:05 Audit " Roger Holm
2007-07-19 13:17 ` Steve Grubb
2007-07-19 17:59 ` Valdis.Kletnieks

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.