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 08:36:12 -0500	[thread overview]
Message-ID: <1331127372.16697.21.camel@moss-pluto> (raw)
In-Reply-To: <CAD8iFzxusoJpp=kAMjhT8-toA0N_ejDE=bFTjV7OvsJYyKeDtw@mail.gmail.com>

On Wed, 2012-03-07 at 08:18 -0500, Subramani Venkatesh wrote:
> Hi,
> Trying to execute CTS on SEAndroid with security enforce, but I am not
> successful getting it working, it crashes at the very beginning with
> an exeception, is anyone else seeing the same issue?

First, did you make sure that you had no avc messages before going into
enforcing mode and even trying to run the CTS?  adb shell dmesg | grep
avc should yield no output.

Second, make sure you can run the CTS in permissive mode without any
difficulties as your baseline.

Third, make sure you enable the android_cts policy boolean before
running the CTS.  If you have configured the CTS to not reboot the
device (set maxTestCount to -1 in repository/host_config.xml), then you
can just do this once via adb shell su 0 setsebool android_cts=1.
Otherwise, if you want to allow periodic reboots during the CTS, you
need to add setsebool android_cts=1 and setenforce 1 to your init.rc or
init.<board>.rc file so that it happens on each boot.

-- 
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 13:36 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 [this message]
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
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=1331127372.16697.21.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.