Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复因网络问题导致kunpeng下载失败导致so被删除,无法升级的问题 #217

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

newIDforLOL
Copy link

当kunpeng.xxx.zip下载失败时,因为未作判断,会导致在update_version执行过程中kunpeng.so被os.remove掉。
然而so被删除之后,后续无法再_load_kunpeng,进而导致后续的升级过程全部失败,系统会失去漏洞扫描功能...

代码主要是针对是否load成功增加了一些判断,在load不成功的情况下也能够update,从而使系统持续运行。

当kunpeng.xxx.zip下载失败时,因为未作判断,会导致kunpeng.so被os.remove掉,然而so被删除之后,后续无法再load,进而导致后续的升级过程全部失败,系统会失去漏洞扫描功能...
@ihacku ihacku requested a review from ywolf September 17, 2019 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant