Re: [PATCH v2] libselinux: add ANDROID_HOST=y build option

2016-09-27 Thread Stephen Smalley
On 09/26/2016 04:53 PM, william.c.robe...@intel.com wrote: > From: William Roberts > > To build the selinux host configuration, specify > ANDROID_HOST=y on the Make command line. > > eg) > make ANDROID_HOST=y Seems oddly named, neither corresponding to the #define

Re: 答复: A question about booting process with SELinux.

2016-09-27 Thread Stephen Smalley
On 09/27/2016 03:00 AM, Weiyuan (David, Euler) wrote: > "The rootfs is typically just unpacked from initramfs and all files within it > are assigned a default label based on the genfscon statement" > > Do you mean Kernel lable rootfs with genfscon before init loading the > sepolicy into kernel?

Re: [PATCH v2] libselinux: add ANDROID_HOST=y build option

2016-09-27 Thread Stephen Smalley
On 09/26/2016 04:55 PM, William Roberts wrote: > On Mon, Sep 26, 2016 at 1:53 PM, wrote: >> From: William Roberts >> >> To build the selinux host configuration, specify >> ANDROID_HOST=y on the Make command line. >> >> eg) >> make

Re: [PATCH v2] libselinux: add ANDROID_HOST=y build option

2016-09-27 Thread William Roberts
On Tue, Sep 27, 2016 at 12:08 PM, Stephen Smalley wrote: > On 09/27/2016 03:03 PM, William Roberts wrote: >> On Tue, Sep 27, 2016 at 11:51 AM, Stephen Smalley wrote: >>> On 09/27/2016 02:43 PM, William Roberts wrote: On Sep 27, 2016 10:00, "Stephen

Re: [PATCH v2] libselinux: add ANDROID_HOST=y build option

2016-09-27 Thread Stephen Smalley
On 09/27/2016 03:09 PM, William Roberts wrote: > On Tue, Sep 27, 2016 at 12:08 PM, Stephen Smalley wrote: >> On 09/27/2016 03:03 PM, William Roberts wrote: >>> On Tue, Sep 27, 2016 at 11:51 AM, Stephen Smalley >>> wrote: On 09/27/2016 02:43 PM,

Re: [PATCH v2] libselinux: add ANDROID_HOST=y build option

2016-09-27 Thread William Roberts
>>> Don't you actually want to also pick up utils/sefcontext_compile? >>> That is built and used on the build host. And I'm not sure why we'd >>> drop the other SUBDIRS. >> >> You'll start running into linking issues if things that use >> libselinux, use something not >> in the build host IIRC.

Re: [PATCH v2] libselinux: add ANDROID_HOST=y build option

2016-09-27 Thread William Roberts
On Sep 27, 2016 09:50, "Stephen Smalley" wrote: > > On 09/27/2016 11:08 AM, William Roberts wrote: > > On Tue, Sep 27, 2016 at 7:11 AM, Stephen Smalley wrote: > >> On 09/26/2016 04:53 PM, william.c.robe...@intel.com wrote: > >>> From: William Roberts

Re: Android Fork

2016-09-27 Thread Jason Zaman
I just remembered that travis-ci has OSX stuff now. https://docs.travis-ci.com/user/osx-ci-environment/ Maybe we should setup a .travis.yml for selinux to build all these possible configurations going forward? On Mon, Sep 26, 2016 at 10:33:37AM -0700, william.c.robe...@intel.com wrote: > Below,

Re: [PATCH v2] libselinux: add ANDROID_HOST=y build option

2016-09-27 Thread Stephen Smalley
On 09/27/2016 11:08 AM, William Roberts wrote: > On Tue, Sep 27, 2016 at 7:11 AM, Stephen Smalley wrote: >> On 09/26/2016 04:53 PM, william.c.robe...@intel.com wrote: >>> From: William Roberts >>> >>> To build the selinux host configuration,

Re: [PATCH v2] libselinux: add ANDROID_HOST=y build option

2016-09-27 Thread William Roberts
On Tue, Sep 27, 2016 at 7:11 AM, Stephen Smalley wrote: > On 09/26/2016 04:53 PM, william.c.robe...@intel.com wrote: >> From: William Roberts >> >> To build the selinux host configuration, specify >> ANDROID_HOST=y on the Make command line. >> >>

Re: [PATCH v2] libselinux: add ANDROID_HOST=y build option

2016-09-27 Thread William Roberts
On Tue, Sep 27, 2016 at 7:03 AM, Stephen Smalley wrote: > On 09/26/2016 04:55 PM, William Roberts wrote: >> On Mon, Sep 26, 2016 at 1:53 PM, wrote: >>> From: William Roberts >>> >>> To build the selinux host

Re: Android Fork

2016-09-27 Thread William Roberts
On Sep 27, 2016 07:52, "Jason Zaman" wrote: > > I just remembered that travis-ci has OSX stuff now. > https://docs.travis-ci.com/user/osx-ci-environment/ > > Maybe we should setup a .travis.yml for selinux to build all these > possible configurations going forward? At least

Re: 答复: A question about booting process with SELinux.

2016-09-27 Thread William Roberts
On Sep 27, 2016 00:00, "Weiyuan (David, Euler)" wrote: > > "The rootfs is typically just unpacked from initramfs and all files within it are assigned a default label based on the genfscon statement" > > Do you mean Kernel lable rootfs with genfscon before init loading the

答复: A question about booting process with SELinux.

2016-09-27 Thread Weiyuan (David, Euler)
"The rootfs is typically just unpacked from initramfs and all files within it are assigned a default label based on the genfscon statement" Do you mean Kernel lable rootfs with genfscon before init loading the sepolicy into kernel? Could you please describe the details of the process that how

Re: [PATCH v2] libselinux: add ANDROID_HOST=y build option

2016-09-27 Thread William Roberts
On Sep 27, 2016 10:00, "Stephen Smalley" wrote: > > On 09/27/2016 11:08 AM, William Roberts wrote: > > On Tue, Sep 27, 2016 at 7:11 AM, Stephen Smalley wrote: > >> On 09/26/2016 04:53 PM, william.c.robe...@intel.com wrote: > >>> From: William Roberts

Re: [PATCH v2] libselinux: add ANDROID_HOST=y build option

2016-09-27 Thread Stephen Smalley
On 09/27/2016 02:43 PM, William Roberts wrote: > On Sep 27, 2016 10:00, "Stephen Smalley" > wrote: >> >> On 09/27/2016 11:08 AM, William Roberts wrote: >> > On Tue, Sep 27, 2016 at 7:11 AM, Stephen Smalley

Re: [PATCH v2] libselinux: add ANDROID_HOST=y build option

2016-09-27 Thread William Roberts
On Tue, Sep 27, 2016 at 11:51 AM, Stephen Smalley wrote: > On 09/27/2016 02:43 PM, William Roberts wrote: >> On Sep 27, 2016 10:00, "Stephen Smalley" > > wrote: >>> >>> On 09/27/2016 11:08 AM, William Roberts wrote: >>> > On Tue,