From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from goalie.tycho.ncsc.mil (goalie [144.51.242.250]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id s5PJT4M2005350 for ; Wed, 25 Jun 2014 15:29:04 -0400 Received: by mail-qa0-f45.google.com with SMTP id v10so1905129qac.4 for ; Wed, 25 Jun 2014 12:29:07 -0700 (PDT) From: Paul Moore To: Stephen Smalley Subject: Re: Fwd: Booting time is increased after applying kernel 3.10 Date: Wed, 25 Jun 2014 15:29:01 -0400 Message-ID: <58493927.vocElXfMed@sifl> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: Jaejyn Shin , selinux List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: On Wednesday, June 25, 2014 03:14:56 PM Stephen Smalley wrote: > ---------- Forwarded message ---------- > From: Jaejyn Shin > Date: Wed, Jun 25, 2014 at 4:36 AM > Subject: Booting time is increased after applying kernel 3.10 > To: "seandroid-list@tycho.nsa.gov" > > > > Dear SEAndroid and SELinux developer > First of all, I always appreciate that I get lots of information in > this e-mailing list. > > After applying kernel 3.10, the booting time of my device has been increased > Especially, the selinux initializing time is increased (about 0.5s). > > I analized the reason, and I found that the synchronize_net function > has 0.1s delay. I would need to give it some more thought, but since the netport/netnode/netif caches all have their own locks it may be possible to skip the synchronize_net() call. Although, looking at this a bit closer, I wonder if it would be possible to just skip the avc_ss_reset() call for the initial policy load, or at least skip the callback processing. Am I missing something? > before) > selinux_initialize > -> selinux_android_load_policy > -> selinux_android_reload_policy > -> security_load_policy > -> avc_ss_reset > -> sel_netport_avc_callback -> synchronize_net > -> sel_netnode_avc_callback -> synchronize_net > -> sel_netif_avc_callback -> synchronize_net > -> security_setenforce > -> sel_write_enforce > -> avc_ss_reset > -> sel_netport_avc_callback -> synchronize_net > -> sel_netnode_avc_callback -> synchronize_net > -> sel_netif_avc_callback -> synchronize_net > To make fast the booting time, can I don't call the avc_ss_reset > function only during initializing selinux ? > > after) > selinux_initialize > -> selinux_android_load_policy > -> selinux_android_reload_policy > -> security_load_policy > X-> avc_ss_reset > -> security_setenforce > -> sel_write_enforce > X-> avc_ss_reset > > Is it possible? > > Thank you > Best regards > > _______________________________________________ > Seandroid-list mailing list > Seandroid-list@tycho.nsa.gov > To unsubscribe, send email to Seandroid-list-leave@tycho.nsa.gov. > To get help, send an email containing "help" to > Seandroid-list-request@tycho.nsa.gov. -- paul moore www.paul-moore.com