summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-11-12 19:36:43 -0500
committerIan Moffett <ian@osmora.org>2024-11-12 19:36:43 -0500
commit0440e0255a107bcd77390c3f1959bd908c18cef7 (patch)
treeb2aec211b59940636679373f236618bb15a7c2cd
parentfcb9fd7c83420e6ddcd8f29af6f4e61b0601a529 (diff)
kernel: sysctl: Make kern.* entries readonly
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r--sys/kern/kern_sysctl.c4
1 files changed, 2 insertions, 2 deletions
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 },
};
/*