回退 'Pull Request !283 : 修改init 合法性检查失效'

This commit is contained in:
openharmony_ci 2024-03-12 10:32:14 +00:00 committed by Gitee
parent 9f381d55fb
commit 82a71fe45b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 6 additions and 6 deletions

View File

@ -62,7 +62,7 @@ def _startup_guard_module(out_path, args):
def deps_guard(out_path, args=None):
_deps_guard_module(out_path, args)
_startup_guard_module(out_path, args)
#_startup_guard_module(out_path, args)
if __name__ == '__main__':

View File

@ -432,10 +432,10 @@ class ConfigParser():
def scan_config(self):
config_paths = [
"system/etc/init",
"chip_prod/etc/init",
"sys_prod/etc/init",
"vendor/etc/init",
"/system/etc/init",
"/chip_prod/etc/init",
"/sys_prod/etc/init",
"/vendor/etc/init",
]
for file_name in config_paths:
self._scan_config_file(file_name)
@ -504,7 +504,7 @@ def startup_config_collect(base_path):
parser = ConfigParser(os.path.join(base_path, "packages/phone"))
parser.load_config("/system/etc/init.cfg")
parser.scan_config()
parser.load_selinux_config("system/etc/selinux/config")
parser.load_selinux_config("/system/etc/selinux/config")
return parser
if __name__ == '__main__':