* Sample logs of alert types
@ 2009-12-08 15:04 Zaina AFOULKI
2009-12-09 18:16 ` Daniel J Walsh
2009-12-10 17:55 ` Guido Trentalancia
0 siblings, 2 replies; 3+ messages in thread
From: Zaina AFOULKI @ 2009-12-08 15:04 UTC (permalink / raw)
To: selinux
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,
--
Zaina AFOULKI
Étudiante à l'Ecole Nationale Supérieure d'Ingénieurs de Bourges.
1ère année Sécurité et Technologies Informatiques
--
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Sample logs of alert types
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
1 sibling, 0 replies; 3+ messages in thread
From: Daniel J Walsh @ 2009-12-09 18:16 UTC (permalink / raw)
To: Zaina AFOULKI; +Cc: selinux
On 12/08/2009 10:04 AM, 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,
>
>
I think this is more of an audit question.
Are you asking to see what an AVC audit message looks like?
--
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Sample logs of alert types
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
1 sibling, 0 replies; 3+ messages in thread
From: Guido Trentalancia @ 2009-12-10 17:55 UTC (permalink / raw)
To: Zaina AFOULKI; +Cc: selinux
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"
"TTY"
"EOE"
"BPRM_FCAPS"
"CAPSET"
"AVC"
"SELINUX_ERR"
"AVC_PATH"
"MAC_POLICY_LOAD"
"MAC_STATUS"
"MAC_CONFIG_CHANGE"
"MAC_UNLBL_ALLOW"
"MAC_CIPSOV4_ADD"
"MAC_CIPSOV4_DEL"
"MAC_MAP_ADD"
"MAC_MAP_DEL"
"MAC_IPSEC_ADDSA"
"MAC_IPSEC_DELSA"
"MAC_IPSEC_ADDSPD"
"MAC_IPSEC_DELSPD"
"MAC_IPSEC_EVENT"
"MAC_UNLBL_STCADD"
"MAC_UNLBL_STCDEL"
"ANOM_PROMISCUOUS"
"ANOM_ABEND"
"INTEGRITY_DATA"
"INTEGRITY_METADATA"
"INTEGRITY_STATUS"
"INTEGRITY_HASH"
"INTEGRITY_PCR"
"INTEGRITY_RULE"
"APPARMOR"
"APPARMOR_AUDIT"
"APPARMOR_ALLOWED"
"APPARMOR_DENIED"
"APPARMOR_HINT"
"APPARMOR_STATUS"
"APPARMOR_ERROR"
"KERNEL"
"ANOM_LOGIN_FAILURES"
"ANOM_LOGIN_TIME"
"ANOM_LOGIN_SESSIONS"
"ANOM_LOGIN_ACCT"
"ANOM_LOGIN_LOCATION"
"ANOM_MAX_DAC"
"ANOM_MAX_MAC"
"ANOM_AMTU_FAIL"
"ANOM_RBAC_FAIL"
"ANOM_RBAC_INTEGRITY_FAIL"
"ANOM_CRYPTO_FAIL"
"ANOM_ACCESS_FS"
"ANOM_EXEC"
"ANOM_MK_EXEC"
"ANOM_ADD_ACCT"
"ANOM_DEL_ACCT"
"ANOM_MOD_ACCT"
"ANOM_ROOT_TRANS"
"RESP_ANOMALY"
"RESP_ALERT"
"RESP_KILL_PROC"
"RESP_TERM_ACCESS"
"RESP_ACCT_REMOTE"
"RESP_ACCT_LOCK_TIMED"
"RESP_ACCT_UNLOCK_TIMED"
"RESP_ACCT_LOCK"
"RESP_TERM_LOCK"
"RESP_SEBOOL"
"RESP_EXEC"
"RESP_SINGLE"
"RESP_HALT"
"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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-12-10 17:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.