From shawn at redhat.com Thu Aug 20 11:35:49 2015 Content-Type: multipart/mixed; boundary="===============1732472330657087098==" MIME-Version: 1.0 From: Shawn Wells To: scap-security-guide at lists.fedorahosted.org Subject: Re: [PATCH] Loosening up some of the checks to allow for non standard ports and equivalent values as allowed by the man page Date: Tue, 19 Nov 2013 12:58:19 -0700 Message-ID: <528BC2DB.7040104@redhat.com> In-Reply-To: 1384885262-5602-2-git-send-email-maura@eclipse.ncsc.mil --===============1732472330657087098== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On 11/19/13, 11:21 AM, Maura Dailey wrote: > Signed-off-by: Maura Dailey > --- > RHEL6/input/checks/cups_disable_browsing.xml | 47 ++++++++++++----= ------- > RHEL6/input/checks/cups_disable_printserver.xml | 32 +++++----------- > 2 files changed, 35 insertions(+), 44 deletions(-) > > diff --git a/RHEL6/input/checks/cups_disable_browsing.xml b/RHEL6/input/c= hecks/cups_disable_browsing.xml > index 6b6d54e..cadd68a 100644 > --- a/RHEL6/input/checks/cups_disable_browsing.xml > +++ b/RHEL6/input/checks/cups_disable_browsing.xml > @@ -1,42 +1,45 @@ > > - - id=3D"cups_disable_browsing" version=3D"1"> > + > > Disable Printer Browsing Entirely if Possible > > Red Hat Enterprise Linux 6 > > - The CUPS print service can be configured to broadcast= a list of available printers to the network. Other machines on the network= , also running the CUPS print service, can be configured to listen to these= broadcasts and add and configure these printers for immediate use. By disa= bling this browsing capability, the machine will no longer generate or rece= ive such broadcasts. > + The CUPS print service can be configured to broadcast= a list > + of available printers to the network. Other machines on the networ= k, also > + running the CUPS print service, can be configured to listen to the= se > + broadcasts and add and configure these printers for immediate use.= By > + disabling this browsing capability, the machine will no longer gen= erate > + or receive such broadcasts. > + > > > - > - > + + test_ref=3D"test_cups_disable_browsing_browsing_off" /> > + + test_ref=3D"test_cups_disable_browsing_browseallow" negate=3D"true= " /> > > > - > - - comment=3D"Disable Browsing" > - id=3D"test_cups_disable_browsing_browsing_off" version=3D"1"> > + > + + comment=3D"Disable Browsing" id=3D"test_cups_disable_browsing_browsing= _off" > + version=3D"1"> > > > > - /etc/cups > - cupsd.conf > - Browsing Off > + /etc/cups/cupsd.conf > + Browsing[\s]+(?:Off|No) > 1 > > = > - - comment=3D"Do not allow for browsing" > - id=3D"test_cups_disable_browsing_browsingallow" version=3D"1"> > - > + + comment=3D"Do not allow incoming printer information packets" > + id=3D"test_cups_disable_browsing_browseallow" version=3D"1"> > + > > - > - /etc/cups > - cupsd.conf > - BrowseAllow none > + > + /etc/cups/cupsd.conf > + BrowseAllow[\s]+(?!none) > 1 > > - > - > > diff --git a/RHEL6/input/checks/cups_disable_printserver.xml b/RHEL6/inpu= t/checks/cups_disable_printserver.xml > index 399eafa..e305170 100644 > --- a/RHEL6/input/checks/cups_disable_printserver.xml > +++ b/RHEL6/input/checks/cups_disable_printserver.xml > @@ -1,46 +1,34 @@ > > - - id=3D"cups_disable_printserver" version=3D"1"> > + > > Disable Printer Server if Possible > > Red Hat Enterprise Linux 6 > > - By default, locally configured printers will not be s= hared over the network, but if this functionality has somehow > -been enabled, these recommendations will disable it again. Be sure to di= sable outgoing printer list broadcasts, or > -remote users will still be able to see the locally configured printers, = even if they cannot actually print to them. > -To limit print serving to a particular set of users, use the Policy dire= ctive. > - > + By default, locally configured printers will not be s= hared over the network, but if this functionality has somehow been enabled,= these recommendations will disable it again. Be sure to disable outgoing p= rinter list broadcasts, or remote users will still be able to see the local= ly configured printers, even if they cannot actually print to them. To limi= t print serving to a particular set of users, use the Policy directive. > + > > > - > + > > > > = > - - comment=3D"Disable the more general port directive" > - id=3D"test_cups_disable_printserver_disable_port" version=3D"1"> > + > > > > - /etc/cups > - cupsd.conf > - ^Port 631$ > + /etc/cups/cupsd.conf > + Port[\s]+(\d)+ > 1 > > = > - - comment=3D"Listen only at the localhost level" > - id=3D"test_cups_disable_printserver_use_listen" version=3D"1"> > + > > > > - /etc/cups > - cupsd.conf > - ^Listen localhost:631$ > + /etc/cups/cupsd.conf > + Listen[\s]+(?:localhost|127= \.0\.0\.1):(\d)+ > 1 > > - > - > ack --===============1732472330657087098==--