Skip to content
Snippets Groups Projects
Select Git revision
  • android-7.1.2_r28_klist
  • master default protected
  • pie-cts-release
  • pie-vts-release
  • pie-cts-dev
  • oreo-mr1-iot-release
  • sdk-release
  • oreo-m6-s4-release
  • oreo-m4-s12-release
  • pie-release
  • pie-r2-release
  • pie-r2-s1-release
  • oreo-vts-release
  • oreo-cts-release
  • oreo-dev
  • oreo-mr1-dev
  • pie-gsi
  • pie-platform-release
  • pie-dev
  • oreo-cts-dev
  • android-o-mr1-iot-release-1.0.4
  • android-9.0.0_r8
  • android-9.0.0_r7
  • android-9.0.0_r6
  • android-9.0.0_r5
  • android-8.1.0_r46
  • android-8.1.0_r45
  • android-n-iot-release-smart-display-r2
  • android-vts-8.1_r5
  • android-cts-8.1_r8
  • android-cts-8.0_r12
  • android-cts-7.1_r20
  • android-cts-7.0_r24
  • android-o-mr1-iot-release-1.0.3
  • android-cts-9.0_r1
  • android-8.1.0_r43
  • android-8.1.0_r42
  • android-n-iot-release-smart-display
  • android-p-preview-5
  • android-9.0.0_r3
40 results

te_macros

  • Jeff Vander Stoep's avatar
    d28c0569
    te_macros: remove print macro · d28c0569
    Jeff Vander Stoep authored
    aosp/605217 adds the following lines:
    genfscon tracefs /options/print-tgid u:object_r:debugfs_tracing:s0
    genfscon debugfs /tracing/options/print-tgid u:object_r:debugfs_tracing:s0
    
    However, the m4 pre-processing step of selinux policy compilation outputs:
    genfscon tracefs /options/-tgid u:object_r:debugfs_tracing:s0
    genfscon debugfs /tracing/options/-tgid u:object_r:debugfs_tracing:s0
    
    And as a result of the "print" it prints:
    m4: system/sepolicy/private/genfs_contexts: 177:
    m4: system/sepolicy/private/genfs_contexts: 203:
    
    Due to the following macro:
    https://android.googlesource.com/platform/system/sepolicy/+/oreo-mr1-dev/public/te_macros#580
    
    This change removes the now-deprecated print macro to unblock
    aosp/605217.
    
    Bug: 72862003
    Test: verify that the m4 output for aosp/605217 is correct.
    Change-Id: Ia4ec96e16b98e8df241cceb64e3f3b7bea9a7f3d
    d28c0569
    History
    te_macros: remove print macro
    Jeff Vander Stoep authored
    aosp/605217 adds the following lines:
    genfscon tracefs /options/print-tgid u:object_r:debugfs_tracing:s0
    genfscon debugfs /tracing/options/print-tgid u:object_r:debugfs_tracing:s0
    
    However, the m4 pre-processing step of selinux policy compilation outputs:
    genfscon tracefs /options/-tgid u:object_r:debugfs_tracing:s0
    genfscon debugfs /tracing/options/-tgid u:object_r:debugfs_tracing:s0
    
    And as a result of the "print" it prints:
    m4: system/sepolicy/private/genfs_contexts: 177:
    m4: system/sepolicy/private/genfs_contexts: 203:
    
    Due to the following macro:
    https://android.googlesource.com/platform/system/sepolicy/+/oreo-mr1-dev/public/te_macros#580
    
    This change removes the now-deprecated print macro to unblock
    aosp/605217.
    
    Bug: 72862003
    Test: verify that the m4 output for aosp/605217 is correct.
    Change-Id: Ia4ec96e16b98e8df241cceb64e3f3b7bea9a7f3d