| 86050866 | 20-Jan-2022 |
Ed Maste <[email protected]> |
ssh: pass 0 to procctl(2) to operate on self
As of f833ab9dd187 procctl(2) allows idtype P_PID with id = 0 as a shortcut for the calling process ID. The shortcut also bypasses the p_cansee / p_cand
ssh: pass 0 to procctl(2) to operate on self
As of f833ab9dd187 procctl(2) allows idtype P_PID with id = 0 as a shortcut for the calling process ID. The shortcut also bypasses the p_cansee / p_candebug test (since the process is able to act on itself.)
At present if the security.bsd.unprivileged_proc_debug sysctl is 0 then procctl(P_PID, getpid(), ... for a process to act on itself will fail, but procctl(P_PID, 0, ... will succeed. This should likely be addressed with a kernel change.
In any case the id = 0 shortcut is a tiny optimization for a process to act on itself and allows the self-procctl to succeed, so use it in ssh.
Reported by: Shawn Webb Reviewed by: kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D33970
(cherry picked from commit 0746301c4995d9e4a82b0e5034b62e310694d1ef) (cherry picked from commit e38610abcadbfeba5f7a32aa8a6bc8981be64908)
show more ...
|
| e3c87ef0 | 22-Feb-2021 |
Ed Maste <[email protected]> |
openssh: sync update document with main
(cherry picked from commit 519496a5985549d2935cf296a709b1e726b1b5e5) (cherry picked from commit 576b477ba41c9916fae3a83e6b4dd98c682a0c2f) (cherry picked from
openssh: sync update document with main
(cherry picked from commit 519496a5985549d2935cf296a709b1e726b1b5e5) (cherry picked from commit 576b477ba41c9916fae3a83e6b4dd98c682a0c2f) (cherry picked from commit 35a034250896584a63204f60fa57e6eddca049ac) (cherry picked from commit f3fd88507489f6b80402ab7a0fb195ca9c708334) (cherry picked from commit b645ee1815daf96ee9512633b55c423bc897b244) (cherry picked from commit 438fd19dc327400e5fbcebfcb9fe9361b317e791)
show more ...
|
| d4754d70 | 08-Sep-2021 |
Ed Maste <[email protected]> |
openssh: remove unnecessary $FreeBSD$ tags
Diff reduction against upstream: remove $FreeBSD$ tags from files where the tag itself is the only difference from upstream.
(cherry picked from commit 0e
openssh: remove unnecessary $FreeBSD$ tags
Diff reduction against upstream: remove $FreeBSD$ tags from files where the tag itself is the only difference from upstream.
(cherry picked from commit 0e642632e64a8b8ca740ce3307abe116c990e0b6)
show more ...
|
| 32f1062f | 02-Sep-2021 |
Ed Maste <[email protected]> |
openssh: restore local change to gssapi include logic
/usr/include/gssapi.h claims that it is deprecated, and gssapi/gssapi.h should be used instead. So, test HAVE_GSSAPI_GSSAPI_H first falling bac
openssh: restore local change to gssapi include logic
/usr/include/gssapi.h claims that it is deprecated, and gssapi/gssapi.h should be used instead. So, test HAVE_GSSAPI_GSSAPI_H first falling back to HAVE_GSSAPI_H.
This will be submitted upstream.
Fixes: 6eac665c8126 ("openssh: diff reduction against...") Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D31810
(cherry picked from commit 258f5f79bb36e3e6955e7fb149cd2f50265a9ea5)
show more ...
|
| 887bc9fc | 02-Sep-2021 |
Ed Maste <[email protected]> |
openssh: regenerate freebsd-namespace.h
For some reason poly64 was omitted when this file was last generated (perhaps it was inlined by the Clang version then in use).
MFC after: 1 week Sponsored b
openssh: regenerate freebsd-namespace.h
For some reason poly64 was omitted when this file was last generated (perhaps it was inlined by the Clang version then in use).
MFC after: 1 week Sponsored by: The FreeBSD Foundation
(cherry picked from commit c7b4c21ee4615e2e418ab520abf6c026d6dae398)
show more ...
|
| 1ceb4ca5 | 02-Sep-2021 |
Ed Maste <[email protected]> |
openssh: disable libwrap (TCP wrappers) at configure time
We define LIBWRAP at build time in secure/usr.sbin/sshd/Makefile if WITH_TCPWRAPPERS is in effect, so it should not be set in config.h.
MFC
openssh: disable libwrap (TCP wrappers) at configure time
We define LIBWRAP at build time in secure/usr.sbin/sshd/Makefile if WITH_TCPWRAPPERS is in effect, so it should not be set in config.h.
MFC after: 1 week Sponsored by: The FreeBSD Foundation
(cherry picked from commit 36cd1e5e8c216e0f67832d59d629f2910a02d4fc)
show more ...
|
| f63bf8a4 | 02-Sep-2021 |
Ed Maste <[email protected]> |
openssh: clarify krb5 use in freebsd-configure
freebsd-configure.sh runs configure twice, --with-kerberos5 and --without-kerberos5, in order to build a config.h that defaults to kerberos5 disabled,
openssh: clarify krb5 use in freebsd-configure
freebsd-configure.sh runs configure twice, --with-kerberos5 and --without-kerberos5, in order to build a config.h that defaults to kerberos5 disabled, and a small config file that represents the differences.
Rename config.h.orig to config.h.kerberos5 to clarify the intent of this script.
MFC after: 1 week Sponsored by: The FreeBSD Foundation
(cherry picked from commit 5e4dd21fd60958ceef4e4fd14b000844b957287e)
show more ...
|
| 7278d812 | 12-Feb-2021 |
Ed Maste <[email protected]> |
ssh: remove unused variable
This was introduced in 03f6c5cd93ec, which added use of sysctl net.inet.ip.portrange.reservedhigh instead of IPPORT_RESERVED, but it appears the rest of that change was l
ssh: remove unused variable
This was introduced in 03f6c5cd93ec, which added use of sysctl net.inet.ip.portrange.reservedhigh instead of IPPORT_RESERVED, but it appears the rest of that change was lost in some subsequent update.
The change should probably be restored, but until then there is no reason to leave an unused variable around.
MFC after: 3 days Sponsored by: The FreeBSD Foundation
(cherry picked from commit 9e14b918f956c532d0b81c945160bd9bc85c5604)
show more ...
|
| cc489905 | 12-Feb-2021 |
Ed Maste <[email protected]> |
ssh: remove ssh-hpn leftovers
This was introduced in 8998619212f3a, and left behind when the hpn-ssh patches were removed in 60c59fad8806. Although Being able to log SO_RCVBUF in debug mode might h
ssh: remove ssh-hpn leftovers
This was introduced in 8998619212f3a, and left behind when the hpn-ssh patches were removed in 60c59fad8806. Although Being able to log SO_RCVBUF in debug mode might have some small value on its own, it's not worth carrying an extra diff against upstream.
Reviewed by: kevans MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D28610
(cherry picked from commit a62dc346f6171ef1bd52bb8795eaf2d64394ac24)
show more ...
|