OpenAFS Master Repository branch, master, updated. openafs-devel-1_9_1-10-g70e5c4f

Gerrit Code Review gerrit@openafs.org
Fri, 9 Apr 2021 21:05:17 -0400


The following commit has been merged in the master branch:
commit 70e5c4f6a45854ae3a4241568769279747a8b76f
Author: Marcio Barbosa <mbarbosa@sinenomine.net>
Date:   Fri Apr 9 15:14:52 2021 +0000

    macos: delegate sock_* calls to bkg daemons
    
    As part of Apple's ongoing effort to modernize macOS, improve security
    and reliability, the deprecation of kernel extensions was officially
    announced at WWDC19. According to this announcement, Kernel programming
    interfaces will be deprecated as alternatives become available, and
    future OS releases will no longer load kernel extensions that use
    deprecated KPIs by default.
    
    Unfortunately, the following KPIs, extensively used by rx, are included
    in the list of deprecated KPIs as of macOS 10.15:
    
    - sock_receivembuf
    - sock_close
    - sock_send
    - sock_socket
    - sock_setsockopt
    - sock_bind
    
    To workaround this problem, delegate calls to the functions mentioned
    above to bkg daemons forked by afsd. Notice that the ifadd_* and ifnet_*
    functions are also deprecated. Fortunately, these calls can be avoided
    enabling AFS_USERSPACE_IP_ADDR.
    
    Thanks to Andrew Deason for his assistance (ideas, suggestions,
    documentation, etc).
    
    Change-Id: I916b66455bec73138c55e2764cc1146b998cb19f
    Reviewed-on: https://gerrit.openafs.org/14431
    Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
    Tested-by: BuildBot <buildbot@rampaginggeek.com>

 src/afs/afs_call.c                |  266 ++++++++++++++
 src/afsd/afsd.c                   |  466 +++++++++++++++++++++++++
 src/config/afs_args.h             |   31 ++-
 src/config/param.x86_darwin_190.h |    4 +-
 src/config/param.x86_darwin_200.h |    4 +-
 src/rx/DARWIN/rx_kmutex.c         |    7 +-
 src/rx/DARWIN/rx_knet.c           |  694 +++++++++++++++++++++++++++++++++++--
 src/rx/rx_kcommon.c               |    8 +-
 src/rx/rx_prototypes.h            |    8 +-
 9 files changed, 1455 insertions(+), 33 deletions(-)

-- 
OpenAFS Master Repository