Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F105814610
D16527.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.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
Sun, Dec 22, 2:29 AM (18 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15549974
Default Alt Text
D16527.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