Skip to content
Snippets Groups Projects
  • Nick Kralevich's avatar
    e9d261ff
    Create a new SELinux type for /data/nativetest · e9d261ff
    Nick Kralevich authored
    1) Don't use the generic "system_data_file" for the files in /data/nativetest.
    Rather, ensure it has it's own special label. This allows us to distinguish
    these files from other files in SELinux policy.
    
    2) Allow the shell user to execute files from /data/nativetest, on
    userdebug or eng builds only.
    
    3) Add a neverallow rule (compile time assertion + CTS test) that nobody
    is allowed to execute these files on user builds, and only the shell user
    is allowed to execute these files on userdebug/eng builds.
    
    Bug: 25340994
    Change-Id: I3e292cdd1908f342699d6c52f8bbbe6065359413
    e9d261ff
    History
    Create a new SELinux type for /data/nativetest
    Nick Kralevich authored
    1) Don't use the generic "system_data_file" for the files in /data/nativetest.
    Rather, ensure it has it's own special label. This allows us to distinguish
    these files from other files in SELinux policy.
    
    2) Allow the shell user to execute files from /data/nativetest, on
    userdebug or eng builds only.
    
    3) Add a neverallow rule (compile time assertion + CTS test) that nobody
    is allowed to execute these files on user builds, and only the shell user
    is allowed to execute these files on userdebug/eng builds.
    
    Bug: 25340994
    Change-Id: I3e292cdd1908f342699d6c52f8bbbe6065359413