| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Sanity-check string lengths in order to stop OpenSSL crashing
when printing corrupt BMPString or UniversalString objects. [09:08]
Security: FreeBSD-SA-09:07.libc
Security: FreeBSD-SA-09:08.openssl
Security: CVE-2009-0590
Approved by: re (kensmith)
Approved by: so (cperciva)
Notes:
svn path=/releng/7.0/; revision=191381
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
v1.23
After issueing a ntpdate [1] I noticed it's already 2008, reflect that
in the last modified date.
Noticed by: brueffer [1]
v1.22
Fix typo (s/existance/existence/)
Noticed by: ceri
v1.21
Fix some style nits.
Prodded by: brueffer
MFC After: 3 days
v1.20
Make the warning a bit less 'broad' then it used to be. The access
is seems to be a problem for SUID applications, which we like to
prevent as much as possible.
PR: docs/39530
Submitted by: Soren Spies <sspies at apple dot com>
MFC After: 3 days
Approved by: re (bmah)
Notes:
svn path=/releng/7.0/; revision=176296
|
|
|
|
|
|
|
|
|
|
|
| |
Fix an off-by-one error in inet_network(3). [08:02]
Security: FreeBSD-SA-08:01.pty
Security: FreeBSD-SA-08:02.libc
Approved by: re (kensmith)
Notes:
svn path=/releng/7.0/; revision=175335
|
|
|
|
|
|
|
| |
Approved by: re (hrs)
Notes:
svn path=/releng/7.0/; revision=175145
|
|
|
|
|
|
|
| |
Approved by: re (gnn)
Notes:
svn path=/releng/7.0/; revision=175016
|
|
|
|
|
|
|
| |
Approved by: re (gnn)
Notes:
svn path=/stable/7/; revision=174730
|
|
|
|
|
|
|
|
|
|
|
| |
lib/libc/nameser/ns_parse.c: 1.1.1.3
lib/libc/resolv/res_data.c: 1.5
lib/libc/resolv/res_init.c: 1.7
Approved by: re (kensmith)
Notes:
svn path=/stable/7/; revision=174594
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
principle, the current devfs-based cloning facilit makes the current
user<->kernel protocol for allocating new pts nodes difficult or
impossible to do without leading to resource leaks or race conditions.
We tentatively plan to reintroduce ptmx/pts support in FreeBSD 7.1 once
a fixed version has settled out in HEAD. People who really want to run
with the current code can re-enable it but it will require tweaking
conf files and unifdef'ing it. By removing it now before the release,
we avoid having to support the current allocation protocol in future
releases in order to provide backwards compatibility with older libc's.
Discussed with: cognet, erwin
Approved by: re (kensmith)
Notes:
svn path=/stable/7/; revision=174352
|
|
|
|
|
|
|
|
|
| |
cause the build to fail by "replacing" it with bsd.dep.mk rules.
Approved by: re (kensmith)
Notes:
svn path=/stable/7/; revision=173664
|
|
|
|
|
|
|
| |
Approved by: re@
Notes:
svn path=/stable/7/; revision=172946
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR: 116363
Reported by: Petr Hroudny <petr.hroudny at gmail.com>
Patched by: ache
Reviewed by: i18n@
Approved by: re (kensmith)
OK-ed by: portmgr
Notes:
svn path=/stable/7/; revision=172929
|
|
|
|
|
|
|
|
|
| |
to nscd renaming.
Approved by: re (kensmith), brooks (mentor)
Notes:
svn path=/stable/7/; revision=172782
|
|
|
|
|
|
|
|
|
|
| |
support.
Reminded by: kris
Approved by: re (implicit)
Notes:
svn path=/stable/7/; revision=172538
|
|
|
|
| |
Notes:
svn path=/stable/7/; revision=172506
|
|
|
|
|
|
|
| |
Approved by: re (kensmith)
Notes:
svn path=/head/; revision=172401
|
|
|
|
|
|
|
|
|
|
|
| |
page links to fts(3).
Approved by: wes
Approved by: re (hrs)
MFC after: 5 days
Notes:
svn path=/head/; revision=172359
|
|
|
|
|
|
|
| |
Approved by: re (blanket)
Notes:
svn path=/head/; revision=172320
|
|
|
|
|
|
|
|
|
|
|
|
| |
to an int to remove the warning from using a size_t variable on 64-bit
platforms.
Submitted by: Xin LI <delphij@FreeBSD.org>
Approved by: wes
Approved by: re (kensmith)
Notes:
svn path=/head/; revision=172294
|
|
|
|
|
|
|
| |
Approved by: re(ken)
Notes:
svn path=/head/; revision=172277
|
|
|
|
|
|
|
|
|
|
| |
PR: bin/83344 , kern/81987
Reviewed by: alfred
Approved by: re (kensmith)
MFC after: 1 week
Notes:
svn path=/head/; revision=172259
|
|
|
|
|
|
|
|
|
| |
PR: docs/115466
Submitted by: Bruce Cran <bruce@cran.org.uk>
Approved by: re (bmah)
Notes:
svn path=/head/; revision=172253
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
inactive variables should cause a rebuild of environ, otherwise, exec()'d
processes will be missing a variable in environ that has been unset then
set.
Submitted by: Taku Yamamoto <taku@tackymt.homeip.net>
Reviewed by: ache
Approved by: wes (mentor)
Approved by: re (kensmith)
Notes:
svn path=/head/; revision=172191
|
|
|
|
|
|
|
|
|
|
| |
the netbsd versions, and tweaked by me with suggestions from phk.
Reviewed by: phk
Approved by: re@
Notes:
svn path=/head/; revision=172185
|
|
|
|
|
|
|
|
|
|
|
| |
file systems since 2005.
Submitted by: Igor Sysoev
Approved by: re (bmah)
MFC after: 3 days
Notes:
svn path=/head/; revision=172075
|
|
|
|
|
|
|
|
|
|
|
|
| |
compliant with RFC3493.
PR: standards/114910
Approved by: ume (mentor)
Approved by: re
MFC after: 1 week
Notes:
svn path=/head/; revision=172052
|
|
|
|
|
|
|
|
| |
Submitted by: Tijl Coosemans tijl at ulyssis dot org
Approved by: re (kensmith)
Notes:
svn path=/head/; revision=171913
|
|
|
|
|
|
|
|
|
| |
gethostbyname() and gethostbyaddr() accordingly
Approved by: re (kensmith), brooks (mentor)
Notes:
svn path=/head/; revision=171671
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Fix addrs's error checking of sctp_sendx(3) when addrcnt is less than
SCTP_SMALL_IOVEC_SIZE
- re-add back inpcb_bind local address check bypass capability
- Fix it so sctp_opt_info is independant of assoc_id postion.
- Fix cookie life set to use MSEC_TO_TICKS() macro.
- asconf changes
o More comment changes/clarifications related to the old local address
"not" list which is now an explicit restricted list.
o Rename some functions for clarity:
- sctp_add/del_local_addr_assoc to xxx_local_addr_restricted()
- asconf related iterator functions to sctp_asconf_iterator_xxx()
o Fix bug when the same address is deleted and added (and removed from
the asconf queue) where the ifa is "freed" twice refcount wise,
possibly freeing it completely.
o Fix bug in output where the first ASCONF would not go out after the
last address is changed (e.g. only goes out when retransmitted).
o Fix bug where multiple ASCONFs can be bundled in the same packet with
the and with the same serial numbers.
o Fix asconf stcb iterator to not send ASCONF until after all work
queue entries have been processed.
o Change behavior so that when the last address is deleted (auto asconf
on a bound all endpoint) no action is taken until an address is
added; at that time, an ASCONF add+delete is sent (if the assoc
is still up).
o Fix local address counting so that address scoping is taken into
account.
o #ifdef SCTP_TIMER_BASED_ASCONF the old timer triggered sending
of ASCONF (after an RTO). The default now is to send
ASCONF immediately (except for the case of changing/deleting the
last usable address).
Approved by: re(ken smith)@freebsd.org
Notes:
svn path=/head/; revision=171572
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
yp_next as revision 1.50 did. This should fix, or at least very much
reduce the risk of, NIS timing out due to UDP packet loss for NIS
functions.
See also revision 1.50 for more details about the general problem.
Tested by: nosedive, freefall, hub, mx1, brooks
MFC after: 1 week
Approved by: re (mux)
Notes:
svn path=/head/; revision=171563
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
or replace (i.e., zdump) the environment after a call to setenv(), putenv()
or unsetenv() has been made, a few changes were made.
- getenv() will return the value from the new environ array.
- setenv() was split into two functions: __setenv() which is most of the
previous setenv() without checks on the name and setenv() which
contains the checks before calling __setenv().
- setenv(), putenv() and unsetenv() will unset all previous values and
call __setenv() on all entries in the new environ array which in turn
adds them to the end of the envVars array. Calling __setenv() instead
of setenv() is done to avoid the temporary replacement of the '=' in a
string with a NUL byte. Some strings may be read-only data.
Added more regression checks for clearing the environment array.
Replaced gettimeofday() with getrusage() in timing regression check for
better accuracy.
Fixed an off-by-one bug in __remove_putenv() in the use of memmove(). This
went unnoticed due to the allocation of double the number of environ
entries when building envVars.
Fixed a few spelling mistakes in the comments.
Reviewed by: ache
Approved by: wes
Approved by: re (kensmith)
Notes:
svn path=/head/; revision=171525
|
|
|
|
|
|
|
|
| |
Approved by: re (blanket)
MFC after: 3 days
Notes:
svn path=/head/; revision=171447
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- CMT_PF states added (w/sysctl to turn the PF version on)
- sctp_input.c had a missing incr of cookie case when the
auth was bad. This meant a free was called without an
increment to refcnt, added increment like rest of code.
- There was a case, unlikely, when the scope of the destination
changed (this is a TSNH case). In that case, it would not free
the alloc'ed asoc (in sctp_input.c).
- When listed addresses found a colliding cookie/Init, then
the collided upon tcb was not unlocked in sctp_pcb.c
- Add error checking on arguments of sctp_sendx(3) to prevent it from
referencing a NULL pointer.
- Fix an error return of sctp_sendx(3), it was returing
ENOMEM not -1.
- Get assoc id was changed to use the sanctified socket api
method for getting a assoc id (PEER_ADDR_INFO instead of
PEER_ADDR_PARAMS).
- Fix it so a peeled off socket will get a proper error return
if it trys to send to a different address then it is connected to.
- Fix so that select_a_stream can avoid an endless loop that
could hang a caller.
- time_entered (state set time) was not being set in all cases
to the time we went established.
Approved by: re(ken smith)
Notes:
svn path=/head/; revision=171440
|
|
|
|
|
|
|
|
|
|
| |
(s/SYM_MAP/SYM_MAPS/).
Reported by: kan
Approved by: re@ (Ken Smith)
Notes:
svn path=/head/; revision=171278
|
|
|
|
|
|
|
|
| |
Submitted by: Björn König <bkoenig@cs.tu-berlin.de>
Approved by: re (kensmith, followup commits)
Notes:
svn path=/head/; revision=171261
|
|
|
|
|
|
|
|
| |
Submitted by: cognet
Approved by: re (kensmith)
Notes:
svn path=/head/; revision=171222
|
|
|
|
|
|
|
|
|
|
|
|
| |
call the pad-less versions of the corresponding syscalls if the running
kernel supports it. Check kern.osreldate once per program and cache the
result to select the appropriate syscall. This maintains userland
compatability with kernel.old's from quite a while back.
Approved by: re (kensmith)
Notes:
svn path=/head/; revision=171219
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
syscalls, unless WITHOUT_SYSCALL_COMPAT is defined. The default case
will have the .c wrappers still. If you define WITHOUT_SYSCALL_COMPAT,
the .c wrappers will go away and libc will make direct syscalls.
After 7-stable starts, the direct syscall method will be default.
Approved by: re (kensmith)
Notes:
svn path=/head/; revision=171218
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
particular:
SYSCALL() makes a syscall, with errno handling, and continues execution
directly after the macro in the non-error case.
RSYSCALL() is just like SYSCALL(), but returns after success.
Both SYSCALL(name) and RSYSCALL(name) export "__sys_name" as a strong
symbol, with "_name" and "name" as weak aliases.
PSEUDO() is just like RSYSCALL(), but skipping the "name" weak alias. It
still does "__sys_name" and "_name".
Change i386 to add errno handling to PSEUDO. The same for amd64 and
sparc64, with appear to have copied the behavior.
ia64 was correct (as was alpha). Just remove some apparently unused
variants of the macros. (untested!)
I believe powerpc is correct.
Fix arm to not export "name" from the PSEUDO case. Remove apparently
extra unused variants. (untested!)
The errno problem manifested on i386/amd64/sparc64 by having "PSEUDO"
classified syscalls return without setting errno. eg: "addr = mmap()"
could return with "addr" = 22 instead of setting errno to 22 and
returning -1.
Approved by: re (kensmith)
Notes:
svn path=/head/; revision=171217
|
|
|
|
|
|
|
|
|
|
| |
When using namespace.h/un-namespace.h, you use _ versions of syscalls.
Change getsockopt() to _getsockopt() and same for setsockopt().
Approved by: re
Notes:
svn path=/head/; revision=171197
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
setenv(3) by tracking the size of the memory allocated instead of using
strlen() on the current value.
Convert all calls to POSIX from historic BSD API:
- unsetenv returns an int.
- putenv takes a char * instead of const char *.
- putenv no longer makes a copy of the input string.
- errno is set appropriately for POSIX. Exceptions involve bad environ
variable and internal initialization code. These both set errno to
EFAULT.
Several patches to base utilities to handle the POSIX changes from
Andrey Chernov's previous commit. A few I re-wrote to use setenv()
instead of putenv().
New regression module for tools/regression/environ to test these
functions. It also can be used to test the performance.
Bump __FreeBSD_version to 700050 due to API change.
PR: kern/99826
Approved by: wes
Approved by: re (kensmith)
Notes:
svn path=/head/; revision=171195
|
|
|
|
|
|
|
|
|
|
|
| |
one of the functions)
- Fixes the error return of sctp_get_opt, it was returning the errno not
-1.
Approved by: re@freebsd.org (Robert Watson)
Obtained from: Weongyo Jeong (weongyo.jeong@gmail.com)
Notes:
svn path=/head/; revision=171152
|
|
|
|
|
|
|
|
|
|
| |
ago. sbrk.S should have gotten the same change then but was forgotten.
Approved by: re (bmah)
PR: kern/114049
Notes:
svn path=/head/; revision=171061
|
|
|
|
|
|
|
| |
Approved by: re (not really, but it's better to have things compile than not for right now. Sorry)
Notes:
svn path=/head/; revision=171039
|
|
|
|
|
|
|
|
|
|
|
|
| |
in errno) - Found by Weongyo Jeong
- Remove two extra un-needed memset() after calloc()'s - Found by
Weongyo Jeong
- Tightened up parameter requirement checking on input to
bindx/connectx per socket api spec.
Approved by: re@freebsd.org(Ken Smith)
Notes:
svn path=/head/; revision=171031
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Fix a memory leak when a non v4/v6 address was passed in.
- Take out strange line that copy's back to the src array
incorrectly (corrupting the input array).
Approved by: re(bmah@freebsd.org)
Obtained from: Weongyo Jeong(weongyo.jeong@gmail.com)
Notes:
svn path=/head/; revision=170993
|
|
|
|
|
|
|
|
|
| |
.Fa macro usage.
Approved by: re (blanket)
Notes:
svn path=/head/; revision=170956
|
|
|
|
|
|
|
|
| |
text about the last argument.
Approved by: re (bmah@freebsd.org)
Notes:
svn path=/head/; revision=170955
|
|
|
|
| |
Notes:
svn path=/head/; revision=170919
|
|
|
|
| |
Notes:
svn path=/head/; revision=170908
|
|
|
|
|
|
|
| |
Move overflow check for fseek as early as needed.
Notes:
svn path=/head/; revision=170907
|