Hi Stephen/David,
2021-02-16, 17:50:58 +0100, Sabrina Dubroca wrote:
Security context names are not guaranteed to be NUL-terminated by the
kernel, so we can't just print them using %s directly. The length of
the string is capped by the size of the netlink attribute (u16), so it
will always fit within 65535 bytes.
While at it, factor that out to a separate function, since the exact
same code is used to print the security context for both policies and
states.
This patch ended up with "Changes Requested" in patchwork [1], even though
there has been no reply to it. Do I need to resend it?
[1] https://patchwork.kernel.org/project/netdevbpf/patch/11af39932b3896cf1a560059bcbd24194e7f33bd.1613473397.git.sd@queasysnail.net/
Thanks,
--
Sabrina