From 0440e0255a107bcd77390c3f1959bd908c18cef7 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 12 Nov 2024 19:36:43 -0500 Subject: kernel: sysctl: Make kern.* entries readonly Signed-off-by: Ian Moffett --- sys/kern/kern_sysctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/kern/kern_sysctl.c') diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c index 3d0b118..f3f436c 100644 --- a/sys/kern/kern_sysctl.c +++ b/sys/kern/kern_sysctl.c @@ -44,8 +44,8 @@ static const char *osrelease = HYRA_RELEASE; static struct sysctl_entry common_kerntab[] = { [KERN_OSTYPE] = { KERN_OSTYPE, SYSCTL_OPTYPE_STR_RO, &hyra }, - [KERN_OSRELEASE] = { KERN_OSRELEASE, SYSCTL_OPTYPE_STR, &osrelease }, - [KERN_VERSION] = { KERN_VERSION, SYSCTL_OPTYPE_STR, &hyra_version }, + [KERN_OSRELEASE] = { KERN_OSRELEASE, SYSCTL_OPTYPE_STR_RO, &osrelease }, + [KERN_VERSION] = { KERN_VERSION, SYSCTL_OPTYPE_STR_RO, &hyra_version }, }; /* -- cgit v1.2.3