| #
0b8224d1
|
| 24-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove copyright strings ifdef'd out
We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals.
Remove copyright strings ifdef'd out
We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals. These copyright strings are present in the comments and are largely from CSRG's attempt at adding their copyright to every binary file (which modern interpretations of the license doesn't require).
Sponsored by: Netflix
show more ...
|
| #
8a7b6120
|
| 23-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
usr.sbin: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a p
usr.sbin: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script.
Sponsored by: Netflix
show more ...
|
| #
1d386b48
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
| #
648b9ce8
|
| 06-Dec-2021 |
Mateusz Piotrowski <0mp@FreeBSD.org> |
inetd: Use the synopsis from the manual page
Also, document -s in the usage message.
MFC after: 7 days
|
| #
12538351
|
| 12-Feb-2021 |
Kyle Evans <kevans@FreeBSD.org> |
inetd: fix unix sockaddr's length assignment
unsz was always exactly '1' here due to an unfortunate mispositioning of closing parenthesis. While it's generally irrelevant because bind(2) is passed t
inetd: fix unix sockaddr's length assignment
unsz was always exactly '1' here due to an unfortunate mispositioning of closing parenthesis. While it's generally irrelevant because bind(2) is passed the (accurate) sep->se_ctrladdr_size instead, it's not very helpful for anything locally that wants to use it rather than assuming that sep->se_ctrladdr_size perfectly fits the end of sun_path.
Just drop unsz entirely and use the result of SUN_LEN() for it.
MFC-after: 3 days
show more ...
|
| #
525c896b
|
| 10-Jan-2020 |
Kyle Evans <kevans@FreeBSD.org> |
inetd: two more nits
Use __COPYRIGHT for copyright to simply either embed it via .ident or have it properly marked __unused
Move an ipsec reference to IPSEC
|
| #
36cac557
|
| 10-Jan-2020 |
Kyle Evans <kevans@FreeBSD.org> |
inetd: free WITHOUT_INET6_SUPPORT build of warnings
If inetd is compiled without inet6 support, we need to error out on rpc+inet6 services rather than attempting to call into rpc bits with an uninit
inetd: free WITHOUT_INET6_SUPPORT build of warnings
If inetd is compiled without inet6 support, we need to error out on rpc+inet6 services rather than attempting to call into rpc bits with an uninitialized netid.
v4bind is only used with INET6 support, so move it under the proper #ifdefs with v6bind.
Reported by: Pavel Timofeev <timp87 gmail com> MFC after: 3 days
show more ...
|
| #
9a3e2f58
|
| 03-Jan-2020 |
Ed Maste <emaste@FreeBSD.org> |
inetd: fix WITHOUT_TCP_WRAPPERS build after r356248
After increasing WARNS, building WITHOUT_TCP_WRAPPERS failed because of some unused variables.
Reported by: Cirrus-CI (against my WIP branch) MFC
inetd: fix WITHOUT_TCP_WRAPPERS build after r356248
After increasing WARNS, building WITHOUT_TCP_WRAPPERS failed because of some unused variables.
Reported by: Cirrus-CI (against my WIP branch) MFC with: r356248 Sponsored by: The FreeBSD Foundation
show more ...
|
| #
705d79b4
|
| 01-Jan-2020 |
Kyle Evans <kevans@FreeBSD.org> |
inetd: final round of trivial cleanup, NFC
Highlights: - Use MAX() for maxsock raising; small readability improvement IMO - malloc(3) + memset(3) -> calloc(3) where appropriate - stop casting the re
inetd: final round of trivial cleanup, NFC
Highlights: - Use MAX() for maxsock raising; small readability improvement IMO - malloc(3) + memset(3) -> calloc(3) where appropriate - stop casting the return value of malloc(3) - mallloc(3) -> reallocarray(3) where appropriate
A future change may enter capability mode when forking for some of the built-in handlers.
show more ...
|
| #
c8863d05
|
| 01-Jan-2020 |
Kyle Evans <kevans@FreeBSD.org> |
inetd: convert remaining bzero(3) to memset(3), NFC
This change is purely in the name of noise reduction from static analyzers that want to complain that bzero(3) is obsolete in favor of memset(3).
inetd: convert remaining bzero(3) to memset(3), NFC
This change is purely in the name of noise reduction from static analyzers that want to complain that bzero(3) is obsolete in favor of memset(3).
With this, clang-analyze at least is now noise free. WARNS= 6 also appears to have been OK for some time now, so drop the current setting and opt for the default.
show more ...
|
| #
c53b0f40
|
| 01-Jan-2020 |
Kyle Evans <kevans@FreeBSD.org> |
inetd: track all child pids, regardless of maxchild spec
Currently, child pids are only tracked if maxchildren is specified. As a consequence, without a maxchild limit we do not get a notice in sysl
inetd: track all child pids, regardless of maxchild spec
Currently, child pids are only tracked if maxchildren is specified. As a consequence, without a maxchild limit we do not get a notice in syslog on children aborting abnormally. This turns out to be a great debugging aide at times.
Children are now tracked in a LIST; the management interface is decidedly less painful when there's no upper bound on the number of entries we may have at the cost of one small allocation per connection.
PR: 70335
show more ...
|
| #
d6272fce
|
| 01-Jan-2020 |
Kyle Evans <kevans@FreeBSD.org> |
inetd: add some macros for checking child limits, NFC
The main point here is capturing the maxchild > 0 check. A future change to inetd will start tracking all of the child pids so that it can give
inetd: add some macros for checking child limits, NFC
The main point here is capturing the maxchild > 0 check. A future change to inetd will start tracking all of the child pids so that it can give proper and consistent notification of process exit/signalling.
show more ...
|
| #
a1cedb80
|
| 31-Dec-2019 |
Kyle Evans <kevans@FreeBSD.org> |
inetd: prefer strlcpy to strlen(3) check + strcpy(3), NFC
This is again functionally equivalent but more concise.
|
| #
f23df319
|
| 31-Dec-2019 |
Kyle Evans <kevans@FreeBSD.org> |
inetd: knock out some clang analyze warnings
chargen_dg: clang-analyze is convinced that endring could be non-NULL at entry, and thus wants to assume that rs == NULL. Just independently initialize r
inetd: knock out some clang analyze warnings
chargen_dg: clang-analyze is convinced that endring could be non-NULL at entry, and thus wants to assume that rs == NULL. Just independently initialize rs if it's NULL to appease the analyzer.
getconfigent: policy leaks on return
free_connlist: reorganize the loop to make it clear that we're not going to access `conn` after it's been freed.
cpmip/hashval: left-shifts performed will result in UB as we take signed 0xABC3D20F and left shift it by 5.
show more ...
|
| #
f930f30f
|
| 30-Dec-2019 |
Kyle Evans <kevans@FreeBSD.org> |
inetd: don't leak `policy` on return
sep->se_policy gets a strdup'd version of policy, so we don't need it to stick around afterwards.
While here, remove a couple of NULL checks prior to free(polic
inetd: don't leak `policy` on return
sep->se_policy gets a strdup'd version of policy, so we don't need it to stick around afterwards.
While here, remove a couple of NULL checks prior to free(policy).
CID: 1006865 MFC after: 3 days
show more ...
|
| #
0b8224d1
|
| 24-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove copyright strings ifdef'd out
We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals.
Remove copyright strings ifdef'd out
We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals. These copyright strings are present in the comments and are largely from CSRG's attempt at adding their copyright to every binary file (which modern interpretations of the license doesn't require).
Sponsored by: Netflix
show more ...
|
| #
8a7b6120
|
| 23-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
usr.sbin: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a p
usr.sbin: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script.
Sponsored by: Netflix
show more ...
|
| #
1d386b48
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
| #
648b9ce8
|
| 06-Dec-2021 |
Mateusz Piotrowski <0mp@FreeBSD.org> |
inetd: Use the synopsis from the manual page
Also, document -s in the usage message.
MFC after: 7 days
|
| #
12538351
|
| 12-Feb-2021 |
Kyle Evans <kevans@FreeBSD.org> |
inetd: fix unix sockaddr's length assignment
unsz was always exactly '1' here due to an unfortunate mispositioning of closing parenthesis. While it's generally irrelevant because bind(2) is passed t
inetd: fix unix sockaddr's length assignment
unsz was always exactly '1' here due to an unfortunate mispositioning of closing parenthesis. While it's generally irrelevant because bind(2) is passed the (accurate) sep->se_ctrladdr_size instead, it's not very helpful for anything locally that wants to use it rather than assuming that sep->se_ctrladdr_size perfectly fits the end of sun_path.
Just drop unsz entirely and use the result of SUN_LEN() for it.
MFC-after: 3 days
show more ...
|
| #
525c896b
|
| 10-Jan-2020 |
Kyle Evans <kevans@FreeBSD.org> |
inetd: two more nits
Use __COPYRIGHT for copyright to simply either embed it via .ident or have it properly marked __unused
Move an ipsec reference to IPSEC
|
| #
36cac557
|
| 10-Jan-2020 |
Kyle Evans <kevans@FreeBSD.org> |
inetd: free WITHOUT_INET6_SUPPORT build of warnings
If inetd is compiled without inet6 support, we need to error out on rpc+inet6 services rather than attempting to call into rpc bits with an uninit
inetd: free WITHOUT_INET6_SUPPORT build of warnings
If inetd is compiled without inet6 support, we need to error out on rpc+inet6 services rather than attempting to call into rpc bits with an uninitialized netid.
v4bind is only used with INET6 support, so move it under the proper #ifdefs with v6bind.
Reported by: Pavel Timofeev <timp87 gmail com> MFC after: 3 days
show more ...
|
| #
9a3e2f58
|
| 03-Jan-2020 |
Ed Maste <emaste@FreeBSD.org> |
inetd: fix WITHOUT_TCP_WRAPPERS build after r356248
After increasing WARNS, building WITHOUT_TCP_WRAPPERS failed because of some unused variables.
Reported by: Cirrus-CI (against my WIP branch) MFC
inetd: fix WITHOUT_TCP_WRAPPERS build after r356248
After increasing WARNS, building WITHOUT_TCP_WRAPPERS failed because of some unused variables.
Reported by: Cirrus-CI (against my WIP branch) MFC with: r356248 Sponsored by: The FreeBSD Foundation
show more ...
|
| #
705d79b4
|
| 01-Jan-2020 |
Kyle Evans <kevans@FreeBSD.org> |
inetd: final round of trivial cleanup, NFC
Highlights: - Use MAX() for maxsock raising; small readability improvement IMO - malloc(3) + memset(3) -> calloc(3) where appropriate - stop casting the re
inetd: final round of trivial cleanup, NFC
Highlights: - Use MAX() for maxsock raising; small readability improvement IMO - malloc(3) + memset(3) -> calloc(3) where appropriate - stop casting the return value of malloc(3) - mallloc(3) -> reallocarray(3) where appropriate
A future change may enter capability mode when forking for some of the built-in handlers.
show more ...
|
| #
c8863d05
|
| 01-Jan-2020 |
Kyle Evans <kevans@FreeBSD.org> |
inetd: convert remaining bzero(3) to memset(3), NFC
This change is purely in the name of noise reduction from static analyzers that want to complain that bzero(3) is obsolete in favor of memset(3).
inetd: convert remaining bzero(3) to memset(3), NFC
This change is purely in the name of noise reduction from static analyzers that want to complain that bzero(3) is obsolete in favor of memset(3).
With this, clang-analyze at least is now noise free. WARNS= 6 also appears to have been OK for some time now, so drop the current setting and opt for the default.
show more ...
|