# HG changeset patch # User Tomas Kuthan # Date 1458748670 25200 # Node ID ecaf580d5b6e1acbf72a661272e2bdb395df79a4 # Parent a69d6bde5fc1f3cc1c4e0b83a0a56a0d44fdfa21 22980565 sshd method must stop including ipf_include.sh diff -r a69d6bde5fc1 -r ecaf580d5b6e components/openssh/sources/ssh.xml --- a/components/openssh/sources/ssh.xml Tue Mar 22 18:37:14 2016 -0700 +++ b/components/openssh/sources/ssh.xml Wed Mar 23 08:57:50 2016 -0700 @@ -49,13 +49,6 @@ - - - - - - - - - - - - - - - - diff -r a69d6bde5fc1 -r ecaf580d5b6e components/openssh/sources/sshd.sh --- a/components/openssh/sources/sshd.sh Tue Mar 22 18:37:14 2016 -0700 +++ b/components/openssh/sources/sshd.sh Wed Mar 23 08:57:50 2016 -0700 @@ -4,7 +4,6 @@ # . /lib/svc/share/smf_include.sh -. /lib/svc/share/ipf_include.sh SSHDIR=/etc/ssh KEYGEN="/usr/bin/ssh-keygen -q" @@ -44,24 +43,6 @@ fi } -create_ipf_rules() -{ - FMRI=$1 - ipf_file=`fmri_to_file ${FMRI} $IPF_SUFFIX` - policy=`get_policy ${FMRI}` - - # - # Get port from /etc/ssh/sshd_config - # - tports=`grep "^Port" /etc/ssh/sshd_config 2>/dev/null | \ - awk '{print $2}'` - - echo "# $FMRI" >$ipf_file - for port in $tports; do - generate_rules $FMRI $policy "tcp" "any" $port $ipf_file - done -} - remove_key() { keypath=$1 @@ -166,10 +147,6 @@ # SMF arguments (start and restart [really "refresh"]) -'ipfilter') - create_ipf_rules $2 - ;; - 'start') # # If host keys don't exist when the service is started, create