Skip to content
Snippets Groups Projects
  • 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