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

tools

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Janis Danisevskis authored
    Ports check_seapp to pcre2.
    
    Change-Id: If3faac5b911765a66eab074f7da2511624c3fc97
    750d797b
    History
    This directory contains a number of tools related to policy, some of
    which are used in building and validating the policy and others are
    available for help in auditing and analyzing policy.  The tools are
    described further below.
    
    checkfc
       A utility for checking the validity of a file_contexts or a
       property_contexts configuration file.  Used as part of the policy
       build to validate both files.  Requires the sepolicy file as an
       argument in order to check the validity of the security contexts
       in the file_contexts or property_contexts file.
    
       Usage1:
       checkfc sepolicy file_contexts
       checkfc -p sepolicy property_contexts
    
       Also used to compare two file_contexts or file_contexts.bin files.
       Displays one of subset, equal, superset, or incomparable.
    
       Usage2:
       checkfc -c file_contexts1 file_contexts2
    
       Example:
       $ checkfc -c out/target/product/shamu/system/etc/general_file_contexts out/target/product/shamu/root/file_contexts.bin
       subset
    
    checkseapp
        A utility for merging together the main seapp_contexts
        configuration and the device-specific one, and simultaneously
        checking the validity of the configurations. Used as part of the
        policy build process to merge and validate the configuration.
    
        Usage:
        checkseapp -p sepolicy input_seapp_contexts0 [input_seapp_contexts1...] -o seapp_contexts
    
    insertkeys.py
        A helper script for mapping tags in the signature stanzas of
        mac_permissions.xml to public keys found in pem files.  This
        script is described further in the top-level sepolicy/README.
    
    post_process_mac_perms
        A tool to help modify an existing mac_permissions.xml with additional app
        certs not already found in that policy. This becomes useful when a directory
        containing apps is searched and the certs from those apps are added to the
        policy not already explicitly listed.
    
        Usage:
        post_process_mac_perms [-h] -s SEINFO -d DIR -f POLICY
    
          -s SEINFO, --seinfo SEINFO  seinfo tag for each generated stanza
          -d DIR, --dir DIR           Directory to search for apks
          -f POLICY, --file POLICY    mac_permissions.xml policy file
    
    sepolicy-check
        A tool for auditing a sepolicy file for any allow rule that grants
        a given permission.
    
        Usage:
        sepolicy-check -s <domain> -t <type> -c <class> -p <permission> -P out/target/product/<board>/root/sepolicy
    
    sepolicy-analyze
        A tool for performing various kinds of analysis on a sepolicy
        file.