| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
PR: 196110
Submitted by: Joerg Pernfuss <code.jpe@gmail.com>
Approved by: bapt (mentor)
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D3576
|
|
|
|
| |
Approved by: bapt (mentor)
|
|
|
|
|
|
|
|
| |
Reviewed by: rodrigc, bapt
Approved by: marcel (mentor)
Relnotes: yes
Sponsored by: ScaleEngine Inc.
Differential Revision: https://reviews.freebsd.org/D2446
|
|
|
|
|
| |
Approved by: bapt (mentor)
Differential Revision: D3555
|
|
|
|
|
| |
nl_symbols will eventually be organized into several modules depending
on MK_* variables.
|
|
|
|
|
|
| |
in human-readable form.
PR: 183598
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
routepr() (-r flag). It is too narrow to show an IPv6 prefix
in most cases.
- Accept "local" as a synonym of "unix" in protocol family name.
- Show a prefix length in CIDR notation when name resolution failed in
netname().
- Make routename() and netname() AF-independent and remove
unnecessary typecasting from struct sockaddr.
- Use getnameinfo(3) to format L2 addr in intpr().
- Fix a bug which showed "Address" when -A flag is specfied in pr_rthdr().
- Replace cryptic GETSA() macro with SA_SIZE().
- Fix declarations shadowing local variables with the same names.
- Add more static, remove unused header files and variables.
MFC after: 1 week
|
|
|
|
|
|
|
|
|
| |
would not drop privileges as expected.
While there also add checks for the drop and bail out immediately if we
failed.
MFC after: 3 days
|
|
|
|
|
|
|
| |
when setgid() fails.
Reported by: clang static analyzer
MFC after: 2 weeks
|
|
|
|
| |
Sponsored by: The FreeBSD Foundation
|
|
|
|
| |
Sponsored by: The FreeBSD Foundation
|
| |
|
|
|
|
|
|
|
|
| |
This was broken by r286024.
PR: 202741
Submitted by: fk@fabiankeil.de
Obtained from: ElectroBSD
|
|
|
|
|
|
|
| |
so use strlcpy instead of strncpy.
- unroll the other two cases of strncpy+\0 to strlcpy.
MFC after: 2 weeks
|
|
|
|
|
|
|
| |
memory leaks.
Reported by: clang static analyzer
MFC after: 2 weeks
|
| |
|
|
|
|
|
|
|
| |
netstat and the way TCP is handled.
PR: 201585
MFC after: 3 weeks
|
|
|
|
| |
ago...
|
|
|
|
|
|
|
|
|
|
|
|
| |
To make it easier to understand how Capsicum interacts with linkat() and
renameat(), rename the rights to CAP_{LINK,RENAME}AT_{SOURCE,TARGET}.
This also addresses a shortcoming in Capsicum, where it isn't possible
to disable linking to files stored in a directory. Creating hardlinks
essentially makes it possible to access files with additional rights.
Reviewed by: rwatson, wblock
Differential Revision: https://reviews.freebsd.org/D3411
|
|
|
|
|
|
|
| |
Feeding any file encoded in 8 bit locales such as KOI8-RU
to sort utility running under UTF-8 locale produces astonishing
result of recoding the output to UTF-8. To counter that, just
run sort under 'C' locale for now.
|
|
|
|
|
| |
PR: 201585
MFC after: 3 weeks
|
|
|
|
|
| |
PR: 201585
MFC after: 3 weeks
|
|
|
|
|
|
|
|
| |
the last one. This doesn't matter for TCP, but it does for the upcoming
SCTP support.
PR: 201585
MFC after: 3 weeks
|
|
|
|
|
|
| |
The history mechanism applies to csh.
Sponsored by: Nginx, Inc.
|
|
|
|
|
|
|
|
|
| |
Update the BSD LICENSE and remove the 3rd clause.
Reviewed by: rodrigc, kib, bapt
Approved by: bapt (mentor)
Obtained from: OpenBSD
Differential Revision: D3249
|
|
|
|
|
|
| |
PR: bin/202308
Submitted by: John Hein <z7dr6ut7gs snkmail com>
MFC after: 2 weeks
|
|
|
|
|
|
|
| |
Local changes incorporated by 0.4.5: r284340
Local changes retained: r276260, r282117
Obtained from: https://github.com/Juniper/libxo
|
|
|
|
|
|
|
|
|
| |
be the only accepted character that is close enough to US-ASCII (and
this is also done on OpenBSD; the alternative would be to use UTF-8).
[1] http://www.denic.de/en/domains/technik/denic_whois-server/index.html
MFC after: 2 weeks
|
|
|
|
|
|
|
|
| |
Sort the output obtained from xargs and the expected output
to ensure the end result versus the input file is stable
Differential Revision: D3432
Submitted by: Nikolai Lifanov <lifanov@mail.lifanov.com>
|
|
|
|
|
|
| |
It's unreliable (sometimes it passes, sometimes it fails)
Reported by: Jenkins (many times over the past few weeks)
|
|
|
|
|
|
|
|
|
| |
arrays generically rather than duplicating a hack in all of the backends.
- Add two new system call argument types and use them instead of StringArray
for the argument and environment arguments execve and linux_execve.
- Honor the -a/-e flags in the handling of these new types.
- Instead of printing "<missing argument>" when the decoding is disabled,
print the raw pointer value.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Before truss would fetch 100 string pointers and happily walk off the end
of the array if it never found a NULL. This also means for a short argv
list it could fail entirely if the 100 string pointers spanned into an
unmapped page.
Instead, fetch page-aligned blocks of string pointers in a loop fetching
each string until a NULL is found.
While here, make use of the open memstream file descriptor instead of
allocating a temporary array. This allows us to fetch each string once
instead of twice.
|
|
|
|
| |
Submitted by: bde (sort of)
|
|
|
|
|
|
| |
longer than long on 32-bit platforms with a 64-bit time_t.
Inspired by: mail from bde
|
| |
|
| |
|
|
|
|
|
|
|
| |
- Print the ident value as decimal instead of hexadecimal for filter types
that use "small" values such as file descriptors and PIDs.
- Decode NOTE_* flags in the fflags field of kevents for several system
filter types.
|
|
|
|
|
|
|
|
|
| |
with open_memstream() to build the string for each argument. This allows
for more complicated argument building without resorting to intermediate
malloc's, etc.
Related, the strsig*() functions no longer return allocated strings but
use a static global buffer instead.
|
|
|
|
|
| |
Thanks to: zec
X-MFC with: r286891
|
|
|
|
|
|
|
|
|
|
| |
The many christian denominations have different dates for their
celebrations and controversies are likely to be always.
These are well established and happen to be holidays in many
Catholic countries.
MFC after: 1 month
|
|
|
|
| |
You will be missed!
|
|
|
|
| |
sigprocmask operation type.
|
|
|
|
|
|
|
|
| |
- Don't exit if get_struct() fails, instead print the raw pointer value to
match all other argument decoding cases.
- Use an xlat table instead of a home-rolled switch for the operation name.
- Display the nested socketcall args structure as a structure instead of as
two inline arguments.
|
|
|
|
| |
socket type.
|
|
|
|
|
|
|
|
|
| |
sigqueue, sigreturn, sigsuspend, sigtimedwait, sigwait, sigwaitinfo, and
thr_kill.
- Print signal sets as a structure (with {}'s) and in particular use this to
differentiate empty sets from a NULL pointer.
- Decode arguments for some other system calls: issetugid, pipe2, sysarch
(operations are only decoded for amd64 and i386), and thr_self.
|
|
|
|
|
|
| |
Its idea was to be a simple initiator and execute several commands from
kernel level, but FreeBSD never had consumer for that functionality,
while its implementation polluted many unrelated places..
|
|
|
|
|
|
| |
Obtained from: DragonFly via OpenBSD
Relnotes: yes
MFC: never
|
|
|
|
|
|
|
| |
As the name indicates, these are flags to pass to nm(1). The newer
binutils have a plugin mechanism so, to build something with LLVM's
LTO, we need to pass flags to nm(1). This commit also extends
lorder(1) to pass NMFLAGS to nm(1).
|
|
|
|
|
|
|
|
|
|
|
| |
The option was added only to ease the transition from GNU Binutils to
ELF Tool Chain tools, and that process is now complete (for the viable
replacements). Noting the removal in UPDATING is sufficient as we have
not shipped a release with the option.
Reviewed by: brooks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3240
|
|
|
|
|
|
|
|
| |
Make the if statement more expressive.
Differential Revision: D3366
Reviewed by: ed
Approved by: bapt, rodrigc (mentor)
|