XACE: tclass malformed
Some XACE avc denials end up in /var/log/messages as opposed to /var/log/audit/audit.log. These particular XACE avc denials appear with a malformed tclass field:
Example:
Sep 10 17:50:31 notebook3 Xephyr: Can't send to audit system: USER_AVC avc: denied { get_property } for request=X11:GetProperty comm=/usr/bin/xterm resid=102 restype=WINDOW scontext=dgrift_u:dgrift_r:sandbox_x_client_t:s0:c29,c36 tcontext=dgrift_u:object_r:sandbox_xserver_t:s0:c29,c36 tclass=x_drawable#012: exe="/usr/bin/Xephyr" sauid=0 hostname=? addr=? terminal=?note the: tclass=x_drawable#012:
I believe this may be the reason why these avc denials end up in /var/log/messages instead of /var/log/audit/audit.log , but i am not sure.
Quoted 11 lines · Dominick Grift
Some XACE avc denials end up in
/var/log/messagesas opposed to/var/log/audit/audit.log. These particular XACE avc denials appear with a malformed tclass field:Example:
Sep 10 17:50:31 notebook3 Xephyr: Can't send to audit system: USER_AVC avc: denied { get_property } for request=X11:GetProperty comm=/usr/bin/xterm resid=102 restype=WINDOW scontext=dgrift_u:dgrift_r:sandbox_x_client_t:s0:c29,c36 tcontext=dgrift_u:object_r:sandbox_xserver_t:s0:c29,c36 tclass=x_drawable#012: exe="/usr/bin/Xephyr" sauid=0 hostname=? addr=? terminal=?note the: tclass=x_drawable#012:
I believe this may be the reason why these avc denials end up in
/var/log/messagesinstead of/var/log/audit/audit.log, but i am not sure.
Can you take a look in /var/log/Xorg.0.log. The same avc's are printed there, please let me know if the message is malformed in the Xorg.0.log file as well.
Signature · 8 lines
Eamon Walsh<[email protected]> National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 9 lines · Eamon Walsh
Quoted 8 lines · Dominick Grift
Some XACE avc denials end up in
/var/log/messagesas opposed to/var/log/audit/audit.log. These particular XACE avc denials appear with a malformed tclass field:Example:
Sep 10 17:50:31 notebook3 Xephyr: Can't send to audit system: USER_AVC avc: denied { get_property } for request=X11:GetProperty comm=/usr/bin/xterm resid=102 restype=WINDOW scontext=dgrift_u:dgrift_r:sandbox_x_client_t:s0:c29,c36 tcontext=dgrift_u:object_r:sandbox_xserver_t:s0:c29,c36 tclass=x_drawable#012: exe="/usr/bin/Xephyr" sauid=0 hostname=? addr=? terminal=?note the: tclass=x_drawable#012:
Quoted 7 lines
Quoted 3 lines
I believe this may be the reason why these avc denials end up in
/var/log/messagesinstead of/var/log/audit/audit.log, but i am not sure.Can you take a look in
/var/log/Xorg.0.log. The same avc's are printed there, please let me know if the message is malformed in the Xorg.0.log file as well.
I cannot find that particular AVC denial in /var/log/Xorg.0.log at all. It does have the AVC denials that end up in /var/log/audit/audit.log though. These have correct tclasses. For example:
[root@notebook3 Desktop]# cat /var/log/Xorg.0.log | grep X11:GetProperty | less | tail -n1
(WW) avc: denied { read } for request=X11:GetProperty comm=/usr/bin/xdpyinfo property=RESOURCE_MANAGER scontext=dgrift_u:dgrift_r:sandbox_x_t:s0:c170,c220 tcontext=system_u:object_r:info_xproperty_t:s0 tclass=x_property
So It seems that the avc denials that have malformed tclasses are not in there at all.`
Quoted 7 lines
Signature · 3 lines
-- Eamon Walsh<[email protected]> National Security Agency
Quoted 8 lines · Dominick Grift
Quoted 6 lines · Eamon Walsh
Quoted 4 lines · Dominick Grift
Some XACE avc denials end up in
/var/log/messagesas opposed to/var/log/audit/audit.log. These particular XACE avc denials appear with a malformed tclass field:Example:
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Sep 10 17:50:31 notebook3 Xephyr: Can't send to audit system: USER_AVC avc: denied { get_property } for request=X11:GetProperty comm=/usr/bin/xterm resid=102 restype=WINDOW scontext=dgrift_u:dgrift_r:sandbox_x_client_t:s0:c29,c36 tcontext=dgrift_u:object_r:sandbox_xserver_t:s0:c29,c36 tclass=x_drawable#012: exe="/usr/bin/Xephyr" sauid=0 hostname=? addr=? terminal=?note the: tclass=x_drawable#012:
I believe this may be the reason why these avc denials end up in
/var/log/messagesinstead of/var/log/audit/audit.log, but i am not sure.
I'm seeing malformed messages in /var/log/messages (with the #012) that have nothing to do with XACE. So I think this is an audit bug.
Signature · 8 lines
Eamon Walsh<[email protected]> National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.