安全优化
This commit is contained in:
parent
7c3894a625
commit
bd5900ae5a
|
@ -500,8 +500,8 @@ void MyBackupManager::setKysecStatus(bool status)
|
||||||
// 安全保护已开启
|
// 安全保护已开启
|
||||||
m_bOpenKysec = true;
|
m_bOpenKysec = true;
|
||||||
Utils::setKysecStatus(false);
|
Utils::setKysecStatus(false);
|
||||||
// 停止安全防护
|
// 开启安全防护
|
||||||
QProcess::execute("systemctl stop kysec-init.service");
|
// QProcess::execute("systemctl start kysec-init.service");
|
||||||
} else {
|
} else {
|
||||||
m_bOpenKysec = false;
|
m_bOpenKysec = false;
|
||||||
}
|
}
|
||||||
|
@ -510,7 +510,7 @@ void MyBackupManager::setKysecStatus(bool status)
|
||||||
m_bStartKysecDeamon = true;
|
m_bStartKysecDeamon = true;
|
||||||
Utils::setKysecDaemon(false);
|
Utils::setKysecDaemon(false);
|
||||||
// 停止安全防护
|
// 停止安全防护
|
||||||
QProcess::execute("systemctl stop kysec-init.service");
|
// QProcess::execute("systemctl stop kysec-init.service");
|
||||||
} else {
|
} else {
|
||||||
m_bStartKysecDeamon = false;
|
m_bStartKysecDeamon = false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -319,8 +319,8 @@ QStringList SystemRestoreProxy::getRsyncArgs(SystemRestoreScene scene)
|
||||||
*/
|
*/
|
||||||
void SystemRestoreProxy::restoreSystem()
|
void SystemRestoreProxy::restoreSystem()
|
||||||
{
|
{
|
||||||
// 停止安全防护, 迁移到业务开始的锁定中去
|
// 停止安全防护
|
||||||
// QProcess::execute("systemctl stop kysec-init.service");
|
QProcess::execute("systemctl stop kysec-init.service");
|
||||||
|
|
||||||
// 本地系统备份没有img挂载,故下面两个路径相等
|
// 本地系统备份没有img挂载,故下面两个路径相等
|
||||||
m_srcPath = m_backupPath;
|
m_srcPath = m_backupPath;
|
||||||
|
|
|
@ -365,8 +365,8 @@ void UDiskSystemRestoreProxy::restoreSystem()
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 停止安全防护, 迁移到业务开始的锁定中去
|
// 停止安全防护
|
||||||
// QProcess::execute("systemctl stop kysec-init.service");
|
QProcess::execute("systemctl stop kysec-init.service");
|
||||||
|
|
||||||
QString destPath = Utils::getSysRootPath();
|
QString destPath = Utils::getSysRootPath();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue