1
0

Use smep/smap settings from artifact config as default value

This commit is contained in:
2019-08-19 22:37:27 +00:00
parent d425f455bb
commit 08ed3461ad
2 changed files with 31 additions and 4 deletions

View File

@@ -402,6 +402,21 @@ func (q *System) SetSMAP(state bool) {
q.noSMAP = !state
}
// GetKASLR is retrieve KASLR settings
func (q *System) GetKASLR() bool {
return !q.noKASLR
}
// GetSMEP is retrieve SMEP settings
func (q *System) GetSMEP() bool {
return !q.noSMEP
}
// GetSMAP is retrieve SMAP settings
func (q *System) GetSMAP() bool {
return !q.noSMAP
}
// GetSSHCommand returns command for connect to qemu machine over ssh
func (q System) GetSSHCommand() (cmd string) {
addrPort := strings.Split(q.sshAddrPort, ":")