Page MenuHomeFreeBSD

add syscall for the nfs-over-tls daemons to use
ClosedPublic

Authored by rmacklem on May 21 2020, 11:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 3 2024, 3:59 AM
Unknown Object (File)
Feb 2 2024, 5:10 AM
Unknown Object (File)
Dec 20 2023, 6:57 AM
Unknown Object (File)
Nov 10 2023, 7:42 AM
Unknown Object (File)
Nov 8 2023, 5:21 PM
Unknown Object (File)
Nov 5 2023, 6:59 PM
Unknown Object (File)
Oct 7 2023, 3:58 PM
Unknown Object (File)
Oct 4 2023, 5:55 PM
Subscribers

Details

Summary

For nfs-over-tls, there are two daemons that handle the parts of
TLS not done by the ktls, such as the handshake.
(One daemon for the server and one for the client.)
These daemons need a system call to set up the upcall
socket so that the kernel rpc code can communicate
with them. The syscall is also used to associate a socket
with a file descriptor for the daemon.

This syscall is private to the krpc and rpctls daemons.

Putting this syscall in head now will allow testers to
install a recent current from a snapshot without having
to buildworld/installworld from sources.

I understand that the syscall.master updates get committed
first and then the generated files in a separate commit.
Is that correct?

Test Plan

The nfs-over-tls code has been tested using the gssd
syscall, but it needs its own syscall so that the gssd
daemon can run concurrently with the rpctls daemons.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

The key things I watch for in syscalls.master changes look fine.

sys/compat/freebsd32/syscalls.master
1168 ↗(On Diff #72099)

Given the signature there's no reason not to copy the definition here and it would keep the files closer in sync. It will work fine with compat shims even if the result isn't useful due to a general lack of 32-bit compat in NFS (this is not a complaint). I have an eventual plan to eliminate compat/freebsd32/syscalls.master so keeping differences to a minimum is helpful

sys/kern/syscalls.master
3237 ↗(On Diff #72099)

No blank line here.

Removed the blank line from syscalls.master and
added the definition to compat/freebsd32/syscalls.master,
as suggested by brooks@.

Oops, forgot to "make sysent" before testing the last one.
Since the entry on compat/freebsd32/syscalls.master is NOSTD,
I needed to prepend "freebsd_" to the prototype name to
avoid a conflict.

Oops, forgot to "make sysent" before testing the last one.
Since the entry on compat/freebsd32/syscalls.master is NOSTD,
I needed to prepend "freebsd_" to the prototype name to
avoid a conflict.

I think the correct fix is to mark it NOSTD|NOPROTO

Modified compat/freebsd32/syscalls.master entry
as suggested by brooks@.
It worked and did not create a proto entry.

This revision is now accepted and ready to land.May 28 2020, 6:16 PM