PR: 21729
Approved by: jkh Write kern_securelevel_enable variable to rc.conf if user selects medium or low security in sysinstall. This overrides the case where a user selects fascist security and then tries to go back to a lower setting.
This commit is contained in:
parent
311fb612e1
commit
af4a54d3b5
@ -519,6 +519,7 @@ configSecurityModerate(dialogMenuItem *self)
|
||||
variable_set2("nfs_reserved_port_only", "YES", 1);
|
||||
variable_set2("sendmail_enable", "YES", 1);
|
||||
variable_set2("sshd_enable", "YES", 1);
|
||||
variable_set2("kern_securelevel_enable", "NO", 1);
|
||||
|
||||
if (self)
|
||||
msgConfirm("Moderate security settings have been selected.\n\n"
|
||||
@ -543,6 +544,7 @@ configSecurityLiberal(dialogMenuItem *self)
|
||||
variable_set2("portmap_enable", "YES", 1);
|
||||
variable_set2("sendmail_enable", "YES", 1);
|
||||
variable_set2("sshd_enable", "YES", 1);
|
||||
variable_set2("kern_securelevel_enable", "NO", 1);
|
||||
|
||||
if (self)
|
||||
msgConfirm("Liberal security settings have been selected.\n\n"
|
||||
|
@ -519,6 +519,7 @@ configSecurityModerate(dialogMenuItem *self)
|
||||
variable_set2("nfs_reserved_port_only", "YES", 1);
|
||||
variable_set2("sendmail_enable", "YES", 1);
|
||||
variable_set2("sshd_enable", "YES", 1);
|
||||
variable_set2("kern_securelevel_enable", "NO", 1);
|
||||
|
||||
if (self)
|
||||
msgConfirm("Moderate security settings have been selected.\n\n"
|
||||
@ -543,6 +544,7 @@ configSecurityLiberal(dialogMenuItem *self)
|
||||
variable_set2("portmap_enable", "YES", 1);
|
||||
variable_set2("sendmail_enable", "YES", 1);
|
||||
variable_set2("sshd_enable", "YES", 1);
|
||||
variable_set2("kern_securelevel_enable", "NO", 1);
|
||||
|
||||
if (self)
|
||||
msgConfirm("Liberal security settings have been selected.\n\n"
|
||||
|
@ -519,6 +519,7 @@ configSecurityModerate(dialogMenuItem *self)
|
||||
variable_set2("nfs_reserved_port_only", "YES", 1);
|
||||
variable_set2("sendmail_enable", "YES", 1);
|
||||
variable_set2("sshd_enable", "YES", 1);
|
||||
variable_set2("kern_securelevel_enable", "NO", 1);
|
||||
|
||||
if (self)
|
||||
msgConfirm("Moderate security settings have been selected.\n\n"
|
||||
@ -543,6 +544,7 @@ configSecurityLiberal(dialogMenuItem *self)
|
||||
variable_set2("portmap_enable", "YES", 1);
|
||||
variable_set2("sendmail_enable", "YES", 1);
|
||||
variable_set2("sshd_enable", "YES", 1);
|
||||
variable_set2("kern_securelevel_enable", "NO", 1);
|
||||
|
||||
if (self)
|
||||
msgConfirm("Liberal security settings have been selected.\n\n"
|
||||
|
Loading…
Reference in New Issue
Block a user