Home | History | Annotate | Download | only in fs_config
      1 /*
      2  * Copyright (C) 2017 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 #include <private/android_filesystem_config.h>
     18 
     19 /* Test Data */
     20 
     21 #undef NO_ANDROID_FILESYSTEM_CONFIG_DEVICE_DIRS
     22 #undef NO_ANDROID_FILESYSTEM_CONFIG_DEVICE_FILES
     23 
     24 static const struct fs_path_config android_device_dirs[] = {
     25     {00555, AID_ROOT, AID_SYSTEM, 0, "system/etc"},
     26     {00555, AID_ROOT, AID_SYSTEM, 0, "vendor/etc"},
     27     {00555, AID_ROOT, AID_SYSTEM, 0, "oem/etc"},
     28     {00555, AID_ROOT, AID_SYSTEM, 0, "odm/etc"},
     29     {00755, AID_SYSTEM, AID_ROOT, 0, "system/oem/etc"},
     30     {00755, AID_SYSTEM, AID_ROOT, 0, "system/odm/etc"},
     31     {00755, AID_SYSTEM, AID_ROOT, 0, "system/vendor/etc"},
     32     {00755, AID_SYSTEM, AID_ROOT, 0, "data/misc"},
     33     {00755, AID_SYSTEM, AID_ROOT, 0, "oem/data/misc"},
     34     {00755, AID_SYSTEM, AID_ROOT, 0, "odm/data/misc"},
     35     {00755, AID_SYSTEM, AID_ROOT, 0, "vendor/data/misc"},
     36     {00555, AID_SYSTEM, AID_ROOT, 0, "etc"},
     37 };
     38 
     39 static const struct fs_path_config android_device_files[] = {
     40     {00444, AID_ROOT, AID_SYSTEM, 0, "system/etc/fs_config_dirs"},
     41     {00444, AID_ROOT, AID_SYSTEM, 0, "vendor/etc/fs_config_dirs"},
     42     {00444, AID_ROOT, AID_SYSTEM, 0, "oem/etc/fs_config_dirs"},
     43     {00444, AID_ROOT, AID_SYSTEM, 0, "odm/etc/fs_config_dirs"},
     44     {00444, AID_ROOT, AID_SYSTEM, 0, "system/etc/fs_config_files"},
     45     {00444, AID_ROOT, AID_SYSTEM, 0, "vendor/etc/fs_config_files"},
     46     {00444, AID_ROOT, AID_SYSTEM, 0, "oem/etc/fs_config_files"},
     47     {00444, AID_ROOT, AID_SYSTEM, 0, "odm/etc/fs_config_files"},
     48     {00644, AID_SYSTEM, AID_ROOT, 0, "system/vendor/etc/fs_config_dirs"},
     49     {00644, AID_SYSTEM, AID_ROOT, 0, "system/oem/etc/fs_config_dirs"},
     50     {00644, AID_SYSTEM, AID_ROOT, 0, "system/odm/etc/fs_config_dirs"},
     51     {00644, AID_SYSTEM, AID_ROOT, 0, "system/vendor/etc/fs_config_files"},
     52     {00644, AID_SYSTEM, AID_ROOT, 0, "system/oem/etc/fs_config_files"},
     53     {00644, AID_SYSTEM, AID_ROOT, 0, "system/odm/etc/fs_config_files"},
     54     {00644, AID_SYSTEM, AID_ROOT, 0, "etc/fs_config_files"},
     55     {00666, AID_ROOT, AID_SYSTEM, 0, "data/misc/oem"},
     56 };
     57