History log of /freebsd-current/contrib/smbfs/lib/smb/ctx.c
Revision Date Author Comments
# ccbbd187 25-Jun-2018 Brooks Davis <brooks@FreeBSD.org>

Fix a stack overflow in mount_smbfs when hostname is too long.

The local hostname was blindly copied into the to the nn_name array.
When the hostname exceeded 16 bytes, it would overflow. Truncate the
hostname to 15 bytes plus a 0 terminator which is the "workstation name"
suffix.

Use defensive strlcpy() when filling nn_name in all cases.

PR: 228354
Reported by: donald.buchholz@intel.com
Reviewed by: jpaetzel, ian (prior version)
Discussed with: Security Officer (gtetlow)
MFC after: 3 days
Security: Stack overflow with the hostname.
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D15936


# 0dcfb96f 08-Sep-2014 Edward Tomasz Napierala <trasz@FreeBSD.org>

Make it possible to use empty user name ("-U ''") for mount_smbfs(8).
It's just like "-U guest", except that it actually works, at least
with Samba 4, which seems to return authentication failure for "-U guest".

MFC after: 1 month
Sponsored by: The FreeBSD Foundation


# 92a4d9bc 04-May-2013 Davide Italiano <davide@FreeBSD.org>

Completely rewrite the interface to smbdev switching from dev_clone
to cdevpriv(9). This commit changes the semantic of mount_smbfs
in userland as well, which now passes file descriptor in order to
to mount a specific filesystem istance.

Reviewed by: attilio, ed
Tested by: martymac


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# ef29b0f6 02-Oct-2005 Boris Popov <bp@FreeBSD.org>

Allow user to override default port numbers used by communication
protocols. This is very useful for tunneled SMB connections.

MFC after: 4 weeks


# 19434a77 07-Aug-2005 R. Imura <imura@FreeBSD.org>

Tell nls_setlocale() the very locale name from command line option,
rather than using optarg variable which would be allways NULL.


# f0a446ea 29-Jul-2005 R. Imura <imura@FreeBSD.org>

Correct argument order of kiconv_add_xlat16_cspairs().

Security:


# 4ebd3ea1 04-May-2005 Takanori Watanabe <takawata@FreeBSD.org>

Make smbfs capable to use 16bit char set in filenames.

PR:78110


# 5ec3441d 27-Jul-2003 Tim J. Robbins <tjr@FreeBSD.org>

Fix some off-by-one errors dealing with limits of server names,
usernames, workgroup names and passwords. We can now connect to
servers with 15-character NetBIOS names. (Some versions of Windows
use semi-random 15-char names by default.)

PR: 46902


# 81b431db 11-Apr-2003 Tim J. Robbins <tjr@FreeBSD.org>

Fix a typo in the -O parsing code that caused a crash when the -O option
is used without supplying "sowner:sgroup".

Obtained from: NetBSD (jdolecek)
PR: 37171


# 34ffbc80 22-Apr-2002 Sheldon Hearn <sheldonh@FreeBSD.org>

Import smbfs-1.4.4.


# 8d4076f0 26-Dec-2001 Sheldon Hearn <sheldonh@FreeBSD.org>

Import smbfs-1.4.3.


# f1b9d127 14-Dec-2001 Sheldon Hearn <sheldonh@FreeBSD.org>

Import smbfs-1.4.1.

This is Boris Popov's SMB/CIFS file system implementation for FreeBSD.

Obtained from: Boris Popov via ftp://ftp.butya.kz/pub/smbfs/