Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147243568
D16527.id46116.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
486 B
Referenced Files
None
Subscribers
None
D16527.id46116.diff
View Options
Index: head/sys/security/mac/mac_framework.c
===================================================================
--- head/sys/security/mac/mac_framework.c
+++ head/sys/security/mac/mac_framework.c
@@ -586,7 +586,9 @@
mac_check_structmac_consistent(struct mac *mac)
{
- if (mac->m_buflen > MAC_MAX_LABEL_BUF_LEN)
+ /* Require that labels have a non-zero length. */
+ if (mac->m_buflen > MAC_MAX_LABEL_BUF_LEN ||
+ mac->m_buflen <= sizeof(""))
return (EINVAL);
return (0);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 10, 9:45 AM (13 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29437211
Default Alt Text
D16527.id46116.diff (486 B)
Attached To
Mode
D16527: Require MAC labels to be non-zero in length.
Attached
Detach File
Event Timeline
Log In to Comment