diff --git a/bin/aot.rs b/bin/aot.rs index 33fe3f0952be69b4e7aa27e51e544c227573450c..829d75ca6cce399093b992fe2c904cd3a98ffb3a 100644 --- a/bin/aot.rs +++ b/bin/aot.rs @@ -161,6 +161,13 @@ pub fn gen_app_rto(conf: &RtoConfig) -> i32 { if ret != 0 { return ret; } + let mut set_mod: Vec = Vec::new(); + set_mod.push("755".to_string()); + set_mod.push(format!("{}.rto", conf.elf_path)); + ret = run_child("/usr/bin/chmod", &set_mod); + if ret != 0 { + return ret; + } let mut set_bash: Vec = Vec::new(); set_bash.push("--set".to_string()); set_bash.push(format!("{}", conf.elf_path));