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:
murray 2000-10-05 23:27:32 +00:00
parent 311fb612e1
commit af4a54d3b5
3 changed files with 6 additions and 0 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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"