socket: Make the sopt_rights field a pointer to const

No functional change intended.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Sponsored by:	Stormshield
This commit is contained in:
Mark Johnston 2024-07-11 13:24:35 -04:00
parent 0a8e5aaa97
commit 07f2ed5ce8

View file

@ -51,7 +51,7 @@ struct sockopt {
int sopt_name; /* third arg of [gs]etsockopt */
void *sopt_val; /* fourth arg of [gs]etsockopt */
size_t sopt_valsize; /* (almost) fifth arg of [gs]etsockopt */
struct cap_rights *sopt_rights; /* Capsicum rights attached to the fd */
const struct cap_rights *sopt_rights; /* Capsicum rights for the fd */
struct thread *sopt_td; /* calling thread or null if kernel */
};