Skip to content
Snippets Groups Projects
  1. Dec 21, 2018
  2. Dec 20, 2018
  3. Dec 19, 2018
    • Nick Kralevich's avatar
      Ensure that hwservice_manager adds / finds make sense. · db43ee04
      Nick Kralevich authored
      Add a neverallow rule asserting that services registered or queried
      through hwservicemanager must have the attribute hwservice_manager_type.
      Attempting to add or query a service which does not have that
      attribute is malformed policy.
      
      Test: compiles
      Change-Id: Ib498508694f478c396f2d9273abaccbff06975e6
      db43ee04
    • Nick Kralevich's avatar
      Ensure that service_manager adds / finds make sense. · 5f154404
      Nick Kralevich authored
      Add a neverallow rule asserting that services registered or queried
      through servicemanager must have the attribute service_manager_type
      or vndservice_manager_type. Attempting to add or query a service which
      does not have one of those attributes is malformed policy.
      
      See
      https://android-review.googlesource.com/c/platform/system/sepolicy/+/826500/7/private/system_server.te#696
      as an example where this occurred.
      
      Test: compiles
      Change-Id: I339bde04b80819b07832d96797fd7f477a4b676a
      5f154404
    • Tri Vo's avatar
      sepolicy: fix mac build · ebf3eaca
      Tri Vo authored
      sed "-i" flag on Mac has different syntax than on Linux. Replace use of
      sed with grep.
      
      A simple fix like this should suffice for this case, but ideally, we
      should maintain our own utils instead of using tools on the host
      machine.
      
      Fixes: 121235932
      Test: m selinux_policy
      Change-Id: I46c3bdb90bf7de48d2c942b15a65ce82ae3041c5
      ebf3eaca
    • Nick Kralevich's avatar
      rs.te: Allow following /data/user/0 symlink · 5cbe41b1
      Nick Kralevich authored
      The bcc command line uses /data/user/0 paths, so renderscript needs to
      be able to follow those symlinks.
      
      Addresses the following denial:
      
        audit(1545249938.830:2274): avc: denied { read } for comm="bcc" name="0" dev="dm-6" ino=101 scontext=u:r:rs:s0:c184,c256,c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=lnk_file permissive=1 app=android.rscpp.cts
      
      Test: cts-tradefed run cts -m CtsRsCppTestCases
      Bug: 121266184
      Bug: 112357170
      Change-Id: I16210f9b95f386bdee0863cf0044c956af99586d
      5cbe41b1
    • Tri Vo's avatar
      Separate product_file_contexts out of system sepolicy. · 3361ec43
      Tri Vo authored
      Bug: 119305624
      Test: boot blueline
      Change-Id: I3ecdeab3bb33c3cb5e80dc10ba1079c9853048f8
      3361ec43
  4. Dec 18, 2018
    • Yao Chen's avatar
      Allow statsd to write stats log events to perfd(running as shell) via pipes. · e1d25089
      Yao Chen authored
      Bug: 120921905
      Test: locally tested
      Change-Id: I23fda0f83daff8765f7946814a61588dac00c85a
      e1d25089
    • Tri Vo's avatar
      Merge changes from topic "product_sepolicy.cil" · 9ee4e3ae
      Tri Vo authored
      * changes:
        Separate product_sepolicy.cil out of system sepolicy
        Replace "grep -f" with python util.
      9ee4e3ae
    • Tri Vo's avatar
      Separate product_sepolicy.cil out of system sepolicy · 75887dd5
      Tri Vo authored
      Product-specific sepolicy will be installed into /product/etc/selinux/*.
      This change separates out /product/etc/selinux/product_sepolicy.cil out
      of system sepolicy.
      
      This file is merged into precompiled_sepolicy at build-time. In case
      precompiled_sepolicy can't be used (e.g. system-only-ota), init wll
      merge this file with the rest of the sepolicy at runtime.
      
      I left TODOs to separate other product-specific SELinux artifacts out of
      system.
      
      Bug: 119305624
      Test: boot aosp_taimen with product_sepolicy.cil
      Test: build selinux_policy for aosp_arm64; no product_sepolicy.cil
      produced
      Change-Id: Idb84a1c8ceb2de78f1460d954497c53fed08935f
      75887dd5
    • Treehugger Robot's avatar
      490cbfdb
    • Tri Vo's avatar
      Replace "grep -f" with python util. · d57789fd
      Tri Vo authored
      grep can potentially run out of memory on Mac builds for large input
      files. So we add a python util to handle filtering out files.
      
      We will also need this util to filter plat_sepolicy.cil out of
      product_sepolicy.cil
      
      Bug: 119305624
      Test: boot aosp_taimen
      Change-Id: I61cd68f407ea5de43a06bf522a5fc149e5067e8c
      d57789fd
    • Winson Chung's avatar
      Adding policy for content suggestions. · ac1a0a7b
      Winson Chung authored
      Bug: 120865921
      Test: Manual verification
      Change-Id: Ic0b3f85fad24ccedc0a8e9935c198bc8503bb415
      ac1a0a7b
  5. Dec 17, 2018
  6. Dec 16, 2018
  7. Dec 15, 2018
    • Rafal Slawik's avatar
      SELinux policy for rss_hwm_reset · 4e1c5764
      Rafal Slawik authored
      rss_hwm_reset is binary that reset RSS high-water mark counters for all
      currently running processes. It runs in a separate process because it
      needs dac_override capability.
      
      Bug: 119603799
      Test: no errors in logcat
      Change-Id: I6221a5eca3427bf532830575d8fba98eb3e65c29
      4e1c5764
  8. Dec 14, 2018
Loading