| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
| |
an invalid type pun.
Notes:
svn path=/head/; revision=144795
|
| |
|
|
| |
Notes:
svn path=/head/; revision=144764
|
| |
|
|
|
|
|
|
| |
Noticed by: tinderbox, stefanf
Pointy hat to: nectar
Notes:
svn path=/head/; revision=144754
|
| |
|
|
|
|
|
| |
gettyflags, gettynums and gettystrs are available.
Notes:
svn path=/head/; revision=144716
|
| |
|
|
|
|
|
| |
Noticed by: Steve Kargl <sgk@troutmask.apl.washington.edu>
Notes:
svn path=/head/; revision=144680
|
| |
|
|
|
|
|
|
|
| |
during authentication. Thus we need to call getpwnam *after* the user
has been authenticated. Colin mentioned that we should also move the
check for root in that case.
Notes:
svn path=/head/; revision=144668
|
| |
|
|
|
|
|
|
|
|
|
| |
are initialised to zero. When freeing TLS, don't attempt to free DTV
slots which were not used.
Pointed out by: Joerg Sonnenberger
X-MFC-After: After the branch, probably
Notes:
svn path=/head/; revision=144326
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
5.0-RELEASE), a visually elusive bug was introduced. A comparison
operator was changed to assignment. As a result, rexecd behaved
always as if the `-i' option had been specified. It would allow root
logins. This commit corrects the situation in the obvious way.
A separate bug was introduced at the same time. The PAM library
functions are called between the invocation of getpwnam(3) and the use
of the returned static object. Since many PAM library functions
result in additional getpwnam(3) calls, the contents of the returned
static object could be changed from under rexecd. With this commit,
getpwnam_r(3) is used instead.
Other PAM-using applications should be reviewed for similar errors in
getpw* usage.
Security: rexecd's documented default policy of disallowing root
logins was not enforced.
Reviewed by: cperciva
Notes:
svn path=/head/; revision=144180
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
LD_LIBMAP_DISABLE, LD_LIBRARY_PATH) are used, then make sure the
libraries being loaded aren't on a noexec-mounted filesystem.
This is a compromise position: I'm assuming that nobody will be silly
enough to set the noexec mount flag on part of the default library
path, in order to avoid adding extra overhead into the common case
(where those environment variables aren't used).
Discussed with: csjp, secteam
MFC after: 1 week
Notes:
svn path=/head/; revision=144062
|
| |
|
|
| |
Notes:
svn path=/head/; revision=143907
|
| |
|
|
| |
Notes:
svn path=/head/; revision=143893
|
| |
|
|
| |
Notes:
svn path=/head/; revision=143107
|
| |
|
|
|
|
|
|
|
| |
Change NO_RCMDNS to NO_RCMDS and do the switch in bsd.compat.mk.
Discussed with: ru, nectar
Notes:
svn path=/head/; revision=143026
|
| |
|
|
|
|
|
| |
use of struct sockaddr_strage * is thought as not good manner. :)
Notes:
svn path=/head/; revision=142900
|
| |
|
|
|
|
|
|
|
|
| |
is unloaded. This allows applications which load and unload libraries
like libGL.so.1 several times to work properly.
MFC after: 2 days
Notes:
svn path=/head/; revision=142645
|
| |
|
|
|
|
|
| |
ARM_HAS_ATOMIC_CMPSET_32 isn't defined.
Notes:
svn path=/head/; revision=142593
|
| |
|
|
|
|
|
|
| |
struct sockaddr_storage *, there's no point in casting it prematurely
to a struct sockaddr *. This unbreaks WARNS=6 on sparc64.
Notes:
svn path=/head/; revision=142329
|
| |
|
|
| |
Notes:
svn path=/head/; revision=142317
|
| |
|
|
|
|
|
| |
MFC: along with rev. 1.202
Notes:
svn path=/head/; revision=141967
|
| |
|
|
|
|
|
|
|
|
| |
the function will emit an annoying log message otherwise.
Reported by: kris
MFC: along with rev. 1.202
Notes:
svn path=/head/; revision=141966
|
| |
|
|
|
|
|
|
| |
- No need for 'fromlen' to have file scope.
- Remove an unused variable.
Notes:
svn path=/head/; revision=141922
|
| |
|
|
|
|
|
| |
socklen_t * argument.
Notes:
svn path=/head/; revision=141918
|
| |
|
|
| |
Notes:
svn path=/head/; revision=141851
|
| |
|
|
| |
Notes:
svn path=/head/; revision=141846
|
| |
|
|
| |
Notes:
svn path=/head/; revision=141589
|
| |
|
|
| |
Notes:
svn path=/head/; revision=141588
|
| |
|
|
| |
Notes:
svn path=/head/; revision=141585
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Another handy libmap patch. Lets you do stuff like this:
LD_LIBMAP="libpthread.so.1=libthr.so.1" mythreadedapp
If you already have a program-specific override in libmap.conf, note
that you must use a program-specific override in LD_LIBMAP:
LD_LIBMAP="[mythreadedapp],libpthread.so.1=libthr.so.1" mythreadedapp
PR: bin/74471
Submitted by: Dan Nelson <dnelson AT allantgroup.com>
MFC after: 2 weeks
Notes:
svn path=/head/; revision=141232
|
| |
|
|
| |
Notes:
svn path=/head/; revision=141230
|
| |
|
|
| |
Notes:
svn path=/head/; revision=140941
|
| |
|
|
|
|
|
|
| |
Pointed out by: Nick Leuta
MFC after: 3 days
Notes:
svn path=/head/; revision=140473
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The major change is to process STAT sent as an OOB command w/o
breaking the current data transfer. As a side effect, this gives
better error checking in the code performing data transfers.
A lesser, but in no way cosmetic, change is using the flag `recvurg'
in the only signal-safe way that has been blessed by SUSv3. The
other flag, `transflag,' becomes private to the SIGURG machinery,
serves debugging purposes only, and may be dropped in the future.
The `byte_count' global variable is now accounting bytes actually
transferred over the network. This can give status messages looking
strange, like "X of Y bytes transferred," where X > Y, but that has
more sense than trying to compensate for combinations of data formats
on the server and client when transferring ASCII type data. BTW,
getting the size of a file in advance is unreliable for a number of
reasons in the first place. See question 18.8 of the Infrequently
Asked Questions in comp.lang.c for details.
PR: bin/52072
Tested by: Nick Leuta (earlier versions), a stress-testing tool (final)
MFC after: 1 month
Notes:
svn path=/head/; revision=140472
|
| |
|
|
| |
Notes:
svn path=/head/; revision=140414
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Convert the (char *) cast+cast backs magic to
memcpy(3). Without this, the resulting code
is potentially risky with higher optimization
levels.
- Avoid same name when calling local variables,
as well as global symbols. This reduces
confusion for both human and compiler.
- Add necessary casts, consts
- Use new style function defination.
- Minor style.Makefile(5) tweak
- Bump WARNS?= from 0 to 6
** for the aout code: changes are intentionally limited
to ease maintaince.
Notes:
svn path=/head/; revision=140241
|
| |
|
|
| |
Notes:
svn path=/head/; revision=140072
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
build over two years ago by peter.
The binary a.out version of ld.so can be obtained from misc/compat22 or
src/lib/compat/compat22.
Discussed on: -arch
Voted yes: jhb, ru, linimon, delphij
Notes:
svn path=/head/; revision=140038
|
| |
|
|
|
|
|
|
|
|
| |
A daemon has no stderr to send its complains to.
Pointed out by: Nick Leuta
MFC after: 1 week
Notes:
svn path=/head/; revision=139981
|
| |
|
|
| |
Notes:
svn path=/head/; revision=139126
|
| |
|
|
| |
Notes:
svn path=/head/; revision=139115
|
| |
|
|
| |
Notes:
svn path=/head/; revision=139113
|
| |
|
|
|
|
|
|
|
|
|
| |
NOINFO -> NO_INFO
NOINFOCOMPRESS -> NO_INFOCOMPRESS
NOLINT -> NO_LINT
NOPIC -> NO_PIC
NOPROFILE -> NO_PROFILE
Notes:
svn path=/head/; revision=139106
|
| |
|
|
|
|
|
| |
OK'ed by: core
Notes:
svn path=/head/; revision=139103
|
| |
|
|
| |
Notes:
svn path=/head/; revision=138911
|
| |
|
|
| |
Notes:
svn path=/head/; revision=138910
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
When in inetd mode, this prevents bogus messages from
appearing on the control channel. When running as a
daemon, we shouldn't write to the terminal we used to
have at all.
PR: bin/74823
MFC after: 1 week
Notes:
svn path=/head/; revision=138747
|
| |
|
|
|
|
|
| |
the signals are masked anyway.
Notes:
svn path=/head/; revision=138023
|
| |
|
|
|
|
|
|
|
| |
stop the search on the first match for efficiency.
Submitted by: Nick Leuta
Notes:
svn path=/head/; revision=137987
|
| |
|
|
|
|
|
|
|
| |
an FTP user has no chance to change password anyway.
Submitted by: Nick Leuta
Notes:
svn path=/head/; revision=137986
|
| |
|
|
|
|
|
|
|
|
| |
Log it once at the beginning of the session instead. OTOH, log wd each
time for the sake of better auditing and consistent log format.
Proposed by: Nick Leuta <skynick -at- mail.sc.ru>
Notes:
svn path=/head/; revision=137985
|
| |
|
|
|
|
|
| |
PR: bin/59773
Notes:
svn path=/head/; revision=137984
|