Commit graph

13 commits

Author SHA1 Message Date
Doug Barton
b3ab9ed23a The samba rc.d script uses some clever tricks to start (up to) 3 different
services using the same script. As a result it resets rcvar several times
in order to process the options for each service.

The changes I made on 2012/01/14 to facilitate the removal of set_rc_var()
from HEAD were effective in the case where the WINBIND option was off (the
case that I tested) because that causes the related portions of the rc.d
script to be removed completely on install. However, if installed from a
package, or installed using the the default OPTIONS, WINBIND is on, which
caused the last known rcvar to be winbind_enable.

Since the common case seems to be for users to use samba_enable (which
only enables smb_and nmb_ by default) the fact that rcvar=winbind_enable,
but that knob is off, caused the startup script to trip on a totally
unrelated portion of rc.subr.

So the fix is to move processing of the winbind_ stuff first, which leaves
the last known rcvar as smb_enable. Since running nmb without smb is a
very unlikely scenario, this should be safe for the common case, as well
as safe if the user enables winbind_.

Apologies all around for not catching this sooner, and thanks to the users
who reported the problem and stuck with me while I debugged it.

Bump PORTREVISION since this fix is needed for the common case, as
configured for the package.
2012-04-13 09:16:00 +00:00
Xin LI
a9deb78a73 Security update to address root credential remote code execution issue
(CVE-2012-1182):

 - Update samba36 to 3.6.4;
 - Update samba35 to 3.5.14;
 - Update samba34 to 3.4.16;

All samba users are advised to update.

Security:	baf37cd2-8351-11e1-894e-00215c6a37bb
With hat:	secteam@
2012-04-10 22:33:01 +00:00
Doug Barton
83eb2c3700 In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().

In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.
2012-01-14 08:57:23 +00:00
Timur I. Bakeyev
dfdf9a6052 Bump port version to 3.4.14, closing security issues CVE-2011-0719,
CVE-2011-2522 and CVE-2011-2694

Security:	CVE-2011-0719
Security:	CVE-2011-2522
Security:	CVE-2011-2694
2011-07-29 01:51:39 +00:00
Ulrich Spörlein
c9f2927883 Collect the return values of both smbd and nmbd and return with exit status of
either of them if one is failing.

PR:		ports/151173
Submitted by:	uqs
Approved by:	maintainer timeout (3 months)
Feature safe:	yes
2011-01-30 11:19:39 +00:00
Ade Lovett
5440e107ef Make samba* work with autoconf-2.67 on 6.x
I'm not entirely sure why it compiles on 7.x/8.x, but nevertheless, the
autoconf-specific parts to these patches absolutely need to go upstream.
2010-09-25 01:29:23 +00:00
Timur I. Bakeyev
7d4e37eacd Bump samba34 port to the 3.4.8 version.
Major enhancements in Samba 3.4.8 include:

   o Fix Winbind reconnection to it's own domain (bug #7295).
   o Fix an uninitialized variable read in smbd (bug #7254).
   o Fix smbd crash with CUPS printers and no [printers] share defined
     (bug #7297).
   o Fix NULL pointer dereference in smbd (bug #7229).
2010-06-12 04:24:16 +00:00
Doug Barton
1d6b4b3f91 Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
2010-03-27 00:15:24 +00:00
Timur I. Bakeyev
a37675c36e FreeBSD 6.x misses SIGRTMAX/SIGRTMIN, which breaks the build. Fixed. 2010-02-10 10:54:00 +00:00
Timur I. Bakeyev
d81fffe69d Added creation of the rundir for pid files - thanks to spil.oss@gmail.com
for pointing it out.
2010-02-07 03:02:36 +00:00
Timur I. Bakeyev
81e9ac80d0 Fix missing dependency from pkg-config and compilation problems with
installed samba3-libsmbclient.
2010-02-06 13:27:01 +00:00
Timur I. Bakeyev
0044f060cc Dirty fix against coredumps when gethostbyname(_r) is used with WINS. 2010-02-05 01:10:54 +00:00
Timur I. Bakeyev
28a3f34336 New 3.4.x branch of the Samba server. New features, new bugs :) 2010-02-05 01:08:29 +00:00