Commit graph

7 commits

Author SHA1 Message Date
Thiébaud Weksteen
4d132a10b0 Fix build after upstream merge
- Reference renamed file: COPYING -> LICENSE in Android.bp
- Fix constext_str calls now returning const char *
- Comment out cil_write_src_info_node which is not used on Android
- Include new selinux_internal.c source file

Bug: 253327909
Test: build and boot on bramble
Test: sediff between current and new policy; no change
Change-Id: I506479befb3c0b99136cd842b2a77a6a8bea18ed
2022-11-25 14:10:15 +11:00
Bob Badour
57866d006b [LSC] Add LOCAL_LICENSE_KINDS to external/selinux
Added SPDX-license-identifier-Apache-2.0 to:
  libselinux/fuzzers/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
    SPDX-license-identifier-GPL SPDX-license-identifier-GPL-2.0
    SPDX-license-identifier-LGPL SPDX-license-identifier-LGPL-2.1
    SPDX-license-identifier-LGPL-3.0 SPDX-license-identifier-Zlib
    legacy_unencumbered
to:
  Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-GPL-2.0
    legacy_unencumbered
to:
  libselinux/Android.bp

Added SPDX-license-identifier-BSD
to:
  secilc/Android.bp

Added SPDX-license-identifier-BSD SPDX-license-identifier-GPL
    SPDX-license-identifier-LGPL SPDX-license-identifier-LGPL-2.1
    SPDX-license-identifier-LGPL-3.0 SPDX-license-identifier-Zlib
    legacy_unencumbered
to:
  libsepol/Android.bp

Added SPDX-license-identifier-GPL SPDX-license-identifier-GPL-2.0
    SPDX-license-identifier-LGPL
to:
  checkpolicy/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I3859438c836077d59ed424d04659213c3018f5fe
2021-02-05 01:27:52 -08:00
Peter Collingbourne
e690b03a93 Stop adding the bootstrap directory to rpath.
This is no longer necessary now that the bootstrap linker does this
automatically. See:
https://android-review.googlesource.com/c/platform/bionic/+/954353

Change-Id: Ib4f280632ecdfd307c07c464d542726f69fa9cc0
2019-05-21 22:53:10 +00:00
Jiyong Park
e45a6d8a5b Fix mac build
ld in mac does not support --rpath.

Test: m
Change-Id: I4df20d295fac1e4dba7fdf48b7dd3943ae044df9
2019-01-31 19:06:02 +09:00
Jiyong Park
af852b9320 secilc is using bootstrap Bionic
secilc is a program that is executed very early by init. Mark it as
'bootstrap: true' so that DT_INTERP is set to point to the dynamic
linker for the bootstrap processes. Also RPATH is set to the bootstrap
Bionic path so that this executable can search Bionic libs even before
init makes them visible to the ordinary search path of /system/lib.

Bug: 120266448
Test: m secilc
Inspect DT_INTERP and RPATH with readelf
DT_INTERP: /system/bin/bootstrap/linker64
RPATH: /system/${LIB}/bootstrap

Change-Id: Icb6e2fd37dced18c4cac83fb38e8a28739b34cab
2019-01-30 13:54:13 +00:00
Tri Vo
b671442315 secilc: statically link libsepol to secilc.
We do this to package secilc in CTS without the need to handle its
dependencies.

Bug: 37999212
Test: cts-tradefed run commandAndExit cts --skip-all-system-status-check
--primary-abi-only --skip-preconditions -m CtsSecurityHostTestCases
-t android.cts.security.SELinuxNeverallowRulesTest
Change-Id: I0eed2aa37670f6604447e529de32265072e8435c
2018-04-12 19:33:40 -07:00
Jeff Vander Stoep
dfb7841f31 secilc: Migrate to soong
Bug: 37512442
Test: build and boot Marlin
Change-Id: Ie02b3dc3db0e597c9ac7e93c6684fcd7867c531e
2017-05-09 16:18:42 +00:00