Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147782771
D51698.1784357647.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
739 B
Referenced Files
None
Subscribers
None
D51698.1784357647.diff
View Options
diff --git a/sys/security/mac/mac_framework.h b/sys/security/mac/mac_framework.h
--- a/sys/security/mac/mac_framework.h
+++ b/sys/security/mac/mac_framework.h
@@ -488,7 +488,7 @@
void mac_thread_userret(struct thread *td);
-#if defined(MAC) && defined(DEBUG_VFS_LOCKS)
+#if defined(MAC) && defined(INVARIANTS)
void mac_vnode_assert_locked(struct vnode *vp, const char *func);
#else
#define mac_vnode_assert_locked(vp, func) do { } while (0)
diff --git a/sys/security/mac/mac_vfs.c b/sys/security/mac/mac_vfs.c
--- a/sys/security/mac/mac_vfs.c
+++ b/sys/security/mac/mac_vfs.c
@@ -1078,7 +1078,7 @@
return (0);
}
-#ifdef DEBUG_VFS_LOCKS
+#ifdef INVARIANTS
void
mac_vnode_assert_locked(struct vnode *vp, const char *func)
{
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jul 18, 6:54 AM (3 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29166418
Default Alt Text
D51698.1784357647.diff (739 B)
Attached To
Mode
D51698: mac: Remove uses of DEBUG_VFS_LOCKS
Attached
Detach File
Event Timeline
Log In to Comment