All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Smalley <sds@tycho.nsa.gov>
To: Subramani Venkatesh <selinuxv31@gmail.com>
Cc: selinux@tycho.nsa.gov
Subject: Re: CTS failure on SEAndroid Galaxy Nexus
Date: Wed, 07 Mar 2012 15:28:03 -0500	[thread overview]
Message-ID: <1331152083.16697.73.camel@moss-pluto> (raw)
In-Reply-To: <1331131202.16697.39.camel@moss-pluto>

On Wed, 2012-03-07 at 09:40 -0500, Stephen Smalley wrote:
> Just tried this myself, and I see that we'll need to make a few
> adjustments to policy for the current CTS.  Some of those will be made
> unconditionally outside of the android_cts boolean, while others are
> really only appropriate under test conditions and not production use.

I tracked down a subtle issue that was being hidden by a dontaudit rule
in the policy, and updated sepolicy for various denials that I saw in
getting the latest CTS started.  No guarantees that it will run all the
way through, but it certainly gets started now.  Prior to running the
CTS, I do the following:

adb shell su 0 setsebool android_cts=1
adb shell su 0 setenforce 1
adb shell su 0 cat /proc/kmsg > dmesg.txt &
adb logcat *:E > log.txt &

Later you can do something like the following to reduce dmesg.txt to
just the unique allow rules for easy review, although you would
typically evaluate each one to decide whether it should be generalized
(e.g. written in terms of a type attribute or using a macro), changed to
introduce a new domain or type, or replaced with a dontaudit rule.

audit2allow -p out/target/product/<device>/root/sepolicy.24 < dmesg.txt

-- 
Stephen Smalley
National Security Agency


--
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.

  reply	other threads:[~2012-03-07 20:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-07 13:18 CTS failure on SEAndroid Galaxy Nexus Subramani Venkatesh
2012-03-07 13:36 ` Stephen Smalley
2012-03-07 13:57   ` Subramani Venkatesh
2012-03-07 14:06     ` Stephen Smalley
2012-03-07 14:40       ` Stephen Smalley
2012-03-07 20:28         ` Stephen Smalley [this message]
2012-03-08 16:09           ` Subramani Venkatesh
2012-03-08 16:18             ` Stephen Smalley
2012-03-08 16:47               ` Subramani Venkatesh
2012-03-09 20:37         ` Fred Aguirre

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=1331152083.16697.73.camel@moss-pluto \
    --to=sds@tycho.nsa.gov \
    --cc=selinux@tycho.nsa.gov \
    --cc=selinuxv31@gmail.com \
    /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.