diff options
author | jamie <jamie@FreeBSD.org> | 2013-07-06 00:10:52 +0000 |
---|---|---|
committer | jamie <jamie@FreeBSD.org> | 2013-07-06 00:10:52 +0000 |
commit | 7dc297170af5eabf1057a01c6c01381ea1d9c381 (patch) | |
tree | 84b0aac8fb769a82835e471ee446abf897933b7d /sys/kern/kern_priv.c | |
parent | c6a6dc71e90012e4be1c261a84301910796ee2d0 (diff) | |
download | FreeBSD-src-7dc297170af5eabf1057a01c6c01381ea1d9c381.zip FreeBSD-src-7dc297170af5eabf1057a01c6c01381ea1d9c381.tar.gz |
Make the comments a little more clear about PRIV_KMEM_*, explicitly
referring to /dev/[k]mem and noting it's about opening the files rather
than actually reading and writing.
Reviewed by: jmallett
Diffstat (limited to 'sys/kern/kern_priv.c')
-rw-r--r-- | sys/kern/kern_priv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_priv.c b/sys/kern/kern_priv.c index 204e00b..4d266ab 100644 --- a/sys/kern/kern_priv.c +++ b/sys/kern/kern_priv.c @@ -142,8 +142,9 @@ priv_check_cred(struct ucred *cred, int priv, int flags) } /* - * Writes to kernel memory are a typical root-only operation, - * but non-root users are expected to be able to read it. + * Writes to kernel/physical memory are a typical root-only operation, + * but non-root users are expected to be able to read it (provided they + * have permission to access /dev/[k]mem). */ if (priv == PRIV_KMEM_READ) { error = 0; |