From 0ea5e3a571e3da934507bdd32924d11659c70704 Mon Sep 17 00:00:00 2001 From: jjj Date: Thu, 1 Jun 2006 17:01:11 -0700 Subject: PSARC 2004/368 Secure By Default 4875624 *syslogd* turn off UDP listener by default 5004374 Ship with remote services disabled by default 5016956 By default rpcbind should not listen for remote requests 5016975 By default snmpd/dx should not be enabled. 5016998 By default inetd should not listen for remote connections. 5017041 By default sendmail should not listen for remote connections 5046450 Create a greenline profile for Secure by Default installation 6267741 RFE: One-touch knob for outbound-only sendmail 6414308 syslogd could use some lint soap --- usr/src/cmd/svc/profile/Makefile | 2 - usr/src/cmd/svc/profile/generic_limited_net.xml | 153 +++++++----- usr/src/cmd/svc/profile/generic_open.xml | 70 ++++-- usr/src/cmd/svc/profile/inetd_generic.xml | 45 ++-- usr/src/cmd/svc/seed/Makefile | 24 +- usr/src/cmd/svc/shell/Makefile | 20 +- usr/src/cmd/svc/shell/netservices.sh | 312 ++++++++++++++++++++++++ 7 files changed, 510 insertions(+), 116 deletions(-) create mode 100644 usr/src/cmd/svc/shell/netservices.sh (limited to 'usr/src/cmd/svc') diff --git a/usr/src/cmd/svc/profile/Makefile b/usr/src/cmd/svc/profile/Makefile index 1c86ca7681..4ceafed84e 100644 --- a/usr/src/cmd/svc/profile/Makefile +++ b/usr/src/cmd/svc/profile/Makefile @@ -55,8 +55,6 @@ PROFILESRCS = \ PROFILES = $(PROFILESRCS:%=$(ROOTPROFILE)/%) install: $(PROFILES) - $(RM) $(ROOTPROFILE)/generic.xml - $(LN) -s generic_open.xml $(ROOTPROFILE)/generic.xml $(RM) $(ROOTPROFILE)/platform.xml # SUNW,Sun-Fire-V890 $(RM) $(ROOTPROFILE)/platform_SUNW,Sun-Fire-V890.xml diff --git a/usr/src/cmd/svc/profile/generic_limited_net.xml b/usr/src/cmd/svc/profile/generic_limited_net.xml index faa6b56d05..509d46b4c7 100644 --- a/usr/src/cmd/svc/profile/generic_limited_net.xml +++ b/usr/src/cmd/svc/profile/generic_limited_net.xml @@ -1,37 +1,35 @@ @@ -157,8 +159,27 @@ + + + + + + + + + + + + + + + + + + + @@ -167,26 +188,20 @@ - - - + + - - + @@ -223,6 +238,9 @@ + + + + + + + + + + + + + + + + + + diff --git a/usr/src/cmd/svc/profile/generic_open.xml b/usr/src/cmd/svc/profile/generic_open.xml index d2b826648b..cbd9df9c0f 100644 --- a/usr/src/cmd/svc/profile/generic_open.xml +++ b/usr/src/cmd/svc/profile/generic_open.xml @@ -1,28 +1,27 @@ @@ -133,6 +155,10 @@ + + + + diff --git a/usr/src/cmd/svc/profile/inetd_generic.xml b/usr/src/cmd/svc/profile/inetd_generic.xml index c667c3d3f5..b5ecbb85be 100644 --- a/usr/src/cmd/svc/profile/inetd_generic.xml +++ b/usr/src/cmd/svc/profile/inetd_generic.xml @@ -1,28 +1,27 @@