All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guido Trentalancia <guido@trentalancia.com>
To: Zaina AFOULKI <zaina.afoulki@ensi-bourges.fr>
Cc: selinux@tycho.nsa.gov
Subject: Re: Sample logs of alert types
Date: Thu, 10 Dec 2009 18:55:46 +0100	[thread overview]
Message-ID: <1260467746.2868.34.camel@tesla.lan> (raw)
In-Reply-To: <1f53dffb3e370e5bafc0c2ed98eed589.squirrel@webmail.ensi-bourges.fr>

As Daniel Walsh already explained to you, these are AUDIT_AVC messages.
The different types of messages are defined in the lib/msg_typetab.h
within the audit source (http://people.redhat.com/sgrubb/audit/).

If you grab that package and filter lib/msg_typetab.h through grep and
then awk, you get the following list (which I am quoting here for your
convenience since it's not very long):

"LIST"
"USER"
"LOGIN"
"LIST_RULES"
"TTY_GET"
"TTY_SET"
"USER_AUTH"
"USER_ACCT"
"USER_MGMT"
"CRED_ACQ"
"CRED_DISP"
"USER_START"
"USER_END"
"USER_AVC"
"USER_CHAUTHTOK"
"USER_ERR"
"CRED_REFR"
"USYS_CONFIG"
"USER_LOGIN"
"USER_LOGOUT"
"ADD_USER"
"DEL_USER"
"ADD_GROUP"
"DEL_GROUP"
"DAC_CHECK"
"CHGRP_ID"
"TEST"
"TRUSTED_APP"
"USER_SELINUX_ERR"
"USER_CMD"
"USER_TTY"
"CHUSER_ID"
"GRP_AUTH"
"SYSTEM_BOOT"
"SYSTEM_SHUTDOWN"
"SYSTEM_RUNLEVEL"
"DAEMON_START"
"DAEMON_END"
"DAEMON_ABORT"
"DAEMON_CONFIG"
"DAEMON_ROTATE"
"DAEMON_RESUME"
"DAEMON_ACCEPT"
"DAEMON_CLOSE"
"SYSCALL"
"PATH"
"IPC"
"SOCKETCALL"
"CONFIG_CHANGE"
"SOCKADDR"
"CWD"
"EXECVE"
"IPC_SET_PERM"
"MQ_OPEN"
"MQ_SENDRECV"
"MQ_NOTIFY"
"MQ_GETSETATTR"
"KERNEL_OTHER"
"FD_PAIR"
"OBJ_PID"
"TT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ALT"
"USER_ROLE_CHANGE"
"ROLE_ASSIGN"
"ROLE_REMOVE"
"LABEL_OVERRIDE"
"LABEL_LEVEL_CHANGE"
"USER_LABELED_EXPORT"
"USER_UNLABELED_EXPORT"
"DEV_ALLOC"
"DEV_DEALLOC"
"FS_RELABEL"
"USER_MAC_POLICY_LOAD"
"CRYPTO_TEST_USER"
"CRYPTO_PARAM_CHANGE_USER"
"CRYPTO_LOGIN"
"CRYPTO_LOGOUT"
"CRYPTO_KEY_USER"
"CRYPTO_FAILURE_USER"
"CRYPTO_REPLAY_USER"

So, the above are all possible AVC denial (or grant) messages that you
can get from audit version 1.7.16.

You might also want to look at the audit_log_user_avc_message.3 manual
page and at the definition of int audit_log_user_avc_message() (where
you will find how the message will actually look like in term of the
string which is dumped in your logfiles).

Hope it helps, but this is really out of the scope of this mailing list
I think.

On Tue, 2009-12-08 at 16:04 +0100, Zaina AFOULKI wrote:
> Hello,
> 
> We are trying to develop a graphical interface for SELinux alerts...
> We noticed that each log for a specific alert is different from the one of
> other types. For example:
> 
> type=AVC msg=audit(12/03/2007 12:44:48.301:140) : avc:  denied  { getattr
> } for  pid=2816 comm=vi path=/root/xorg.conf.new dev=sda1 ino=131104
> scontext=staff_u:staff_r:staff_sudo_t:s0
> tcontext=root:object_r:sysadm_home_t:s0 tclass=file
> 
> 
> type=SYSCALL msg=audit(12/03/2007 12:44:48.325:141) : arch=i386
> syscall=access success=yes exit=0 a0=88caaa8 a1=2 a2=1a4 a3=1 items=0
> ppid=2784 pid=2816 auid=gmarzot uid=root gid=root euid=root suid=root
> fsuid=root egid=root sgid=root fsgid=root tty=pts0 comm=vi exe=/bin/vi
> subj=staff_u:staff_r:staff_sudo_t:s0 key=(null)
> 
> Currently we know how the log looks like for the following types:
> DAEMON_START  ANOM_ABEND AVC CONFIG_CHANGE CRED_ACQ CRED_DISP DAEMON_END
> LOGIN MAC_STATUS SELINUX_ERR SYSCALL SYSTEM_RUNLEVEL SYSTEM_SHUTDOWN
> USER_ACCT USER_AUTH USER_AVC USER_CHAUTHTOK USER_CMD USER_END USER_ERR
> USER_LOGIN USER_ROLE_CHANGE USER_START
> 
> We really need to know the look of each alert in the log file.
> Is there a way we can get a sample of each log type?
> Your help will be greatly appreciated.
> 
> Thanks in advance,
> 
> 



--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

      parent reply	other threads:[~2009-12-10 17:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-08 15:04 Sample logs of alert types Zaina AFOULKI
2009-12-09 18:16 ` Daniel J Walsh
2009-12-10 17:55 ` Guido Trentalancia [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=1260467746.2868.34.camel@tesla.lan \
    --to=guido@trentalancia.com \
    --cc=selinux@tycho.nsa.gov \
    --cc=zaina.afoulki@ensi-bourges.fr \
    /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 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.