All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dominick Grift <domg472@gmail.com>
To: selinux@tycho.nsa.gov
Subject: Re: XACE: tclass malformed
Date: Thu, 10 Sep 2009 22:36:03 +0200	[thread overview]
Message-ID: <20090910203602.GB6469@notebook3.grift.internal> (raw)
In-Reply-To: <4AA96193.7020905@tycho.nsa.gov>

[-- Attachment #1: Type: text/plain, Size: 1733 bytes --]

On Thu, Sep 10, 2009 at 04:29:07PM -0400, Eamon Walsh wrote:
> On 09/10/2009 12:03 PM, Dominick Grift wrote:
>> 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.
>>
>>    
>
> 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.`
>
>
>
> -- 
> Eamon Walsh<ewalsh@tycho.nsa.gov>
> National Security Agency
>

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2009-09-10 20:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-10 16:03 XACE: tclass malformed Dominick Grift
2009-09-10 20:29 ` Eamon Walsh
2009-09-10 20:36   ` Dominick Grift [this message]
2009-09-17 21:02     ` Eamon Walsh

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=20090910203602.GB6469@notebook3.grift.internal \
    --to=domg472@gmail.com \
    --cc=selinux@tycho.nsa.gov \
    /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.