[PATCH net-next v3 00/10] Deliver TLS session tags to upper-layer consumers (NFSD)
Chuck Lever
cel at kernel.org
Tue Nov 24 07:27:45 PST 2026
On Mon, Nov 23, 2026, at 7:34 PM, Jakub Kicinski wrote:
> On Sun, 22 Nov 2026 16:27:08 -0800 Chuck Lever wrote:
>> On Sat, Nov 21, 2026, at 4:13 PM, Jakub Kicinski wrote:
>> > Naively I'd think it creates unnecessarily wide API on both ends
>> > (handshake and server). My knee jerk design would be to populate
>> > the full policy in the server, and only carry some "policy ID"
>> > thru the handshake. Number of policy IDs would equal to the number
>> > of tag combinations (which result in different behavior).
>>
>> How is a tag much different than a policy ID?
>>
>> It wouldn’t be impossible to impose another layer here that makes
>> a specific set of tags into a single policy, but I’m not seeing
>> that doing such adds a lot of value.
>
> My thinking was that we have two user space components (TLS handshake
> handler and the storage server stack) which are required to render
> their decision in the language of tags, and upload the result
> to the kernel via independent APIs. The policy ID limits the kernel
> to mechanical enforcement.
That is basically the structure I have planned.
- tlshd parses the x.509 certificate and assigns matching tags to
TLS sessions
- The exportfs command assigns tags to NFS exports and passes the
tags to the kernel as part of its usual downcall
- Kernel NFSD grants access to an NFS export only when there is a
non-empty intersection between the tags on the TLS session and
the tags on the export being accessed.
This might be more helpful than the scant series cover letter:
https://github.com/linux-nfs/ktls-utils/blob/main/man/man7/tls-session-tags.7
It describes the configuration of tlshd's tagging policies. The man
page actually describes how these things are stored in YAML; to
make it easier for humans, we could build a bespoke editing tool.
The exportfs command will get an "allow-tags=" option that specifies
the set of tags that are granted access. I have some prototype
patches in a private tree, so nothing publishable here yet.
> The components resolve all decisions in user
> space, and give the kernel full list of policy ID -> allowed resources.
Yes, exactly so.
> Could be purely a subjective preference, I won't insist.
I will do another survey of policy mechanisms, as you suggested, at
least for reviewer reference.
> Tho an ack
> from someone experienced with building kernel (security?) policies
> would be awesome.
Agreed, review welcome. I'm open to suggestion on modifying the Cc:
list.
> BTW someone marked the patches as changes requested, so repost will be
> needed.
Yes, I plan a re-roll to address the sashiko review findings you
referred me to.
--
Chuck Lever
More information about the Linux-nvme
mailing list