summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade/install.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>2000-09-22 19:12:41 +0000
committerjkh <jkh@FreeBSD.org>2000-09-22 19:12:41 +0000
commit1d5791834188f4872379d9f3af9934ae88455a9c (patch)
tree7d3037e28744bff5587f32726ae4a3a814c0e84c /usr.sbin/sade/install.c
parent067fa527a356f7771212aad77f42e4444d578a2a (diff)
downloadFreeBSD-src-1d5791834188f4872379d9f3af9934ae88455a9c.zip
FreeBSD-src-1d5791834188f4872379d9f3af9934ae88455a9c.tar.gz
One whack at the idea of having "security profiles" which select the
appropriate(?) defaults for "low", "medium" and "high" security environments. Medium is basically what we currently have with a little seat-belt tightening where it made sense. Low is the same as medium but without the tightening. High is positively fascist with nothing turned on by default and an automatic call to 911 if it can find a modem.
Diffstat (limited to 'usr.sbin/sade/install.c')
-rw-r--r--usr.sbin/sade/install.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c
index 67399ca..cc53f3e 100644
--- a/usr.sbin/sade/install.c
+++ b/usr.sbin/sade/install.c
@@ -472,6 +472,9 @@ installExpress(dialogMenuItem *self)
if (DITEM_STATUS((i = installCommit(self))) == DITEM_SUCCESS) {
i |= DITEM_LEAVE_MENU;
+ /* Set default security level */
+ configSecurityModerate(self);
+
/* Give user the option of one last configuration spree */
installConfigure();
}
@@ -560,10 +563,12 @@ nodisks:
"between interfaces)?"))
variable_set2("gateway_enable", "YES", 1);
+ dialog_clear_norefresh();
if (msgYesNo("Do you want to grant only normal users FTP access to this\n"
"host (e.g. no anonymous FTP connections)?"))
configAnonFTP(self);
+ dialog_clear_norefresh();
if (!msgYesNo("Do you want to configure this machine as an NFS server?"))
configNFSServer(self);
@@ -571,6 +576,13 @@ nodisks:
if (!msgYesNo("Do you want to configure this machine as an NFS client?"))
variable_set2("nfs_client_enable", "YES", 1);
+ if (msgYesNo("Do you want to select a default security profile for\n"
+ "this host (\"medium\" security being the default)?"))
+ configSecurityProfile(self);
+ else
+ configSecurityModerate(self);
+
+ dialog_clear_norefresh();
if (!msgYesNo("Would you like to customize your system console settings?"))
dmenuOpenSimple(&MenuSyscons, FALSE);
@@ -632,6 +644,9 @@ installCustomCommit(dialogMenuItem *self)
i = installCommit(self);
if (DITEM_STATUS(i) == DITEM_SUCCESS) {
+ /* Set default security level */
+ configSecurityModerate(self);
+
/* Give user the option of one last configuration spree */
installConfigure();
return i;
OpenPOWER on IntegriCloud