diff options
author | simon <simon@FreeBSD.org> | 2008-09-03 19:09:47 +0000 |
---|---|---|
committer | simon <simon@FreeBSD.org> | 2008-09-03 19:09:47 +0000 |
commit | 6bb93e188cd52e460f98be21d1c7a98536eb1276 (patch) | |
tree | bdf13f39a4170d136aa0d2ee104a49cf4da88171 /sys/kern/vfs_mount.c | |
parent | 0791911684a7ddb284dc09213bf5df5714f194fa (diff) | |
download | FreeBSD-src-6bb93e188cd52e460f98be21d1c7a98536eb1276.zip FreeBSD-src-6bb93e188cd52e460f98be21d1c7a98536eb1276.tar.gz |
- Fix amd64 local privilege escalation. [08:07]
- Fix nmount(2) local privilege escalation. [08:08]
- Fix IPv6 remote kernel panics. [08:09]
Fix for [08:07] is merge of r181823.
Submitted by: kib [08:07], csjp [08:08], bz [08:09]
Reviewed by: peter [08:07], jhb [08:07]
Reviewed by: jinmei [08:09], rwatson [08:09]
Approved by: re (SA blanket)
Approved by: so (simon)
Security: FreeBSD-SA-08:07.amd64
Security: FreeBSD-SA-08:08.nmount
Security: FreeBSD-SA-08:09.icmp6
Diffstat (limited to 'sys/kern/vfs_mount.c')
-rw-r--r-- | sys/kern/vfs_mount.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index 8b2df8e..a3f4402 100644 --- a/sys/kern/vfs_mount.c +++ b/sys/kern/vfs_mount.c @@ -1848,7 +1848,8 @@ vfs_filteropt(struct vfsoptlist *opts, const char **legal) } if (*t != NULL) continue; - sprintf(errmsg, "mount option <%s> is unknown", p); + snprintf(errmsg, sizeof(errmsg), + "mount option <%s> is unknown", p); printf("%s\n", errmsg); ret = EINVAL; } |