Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148667919
D7369.id18897.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
762 B
Referenced Files
None
Subscribers
None
D7369.id18897.diff
View Options
Index: sys/kern/sys_capability.c
===================================================================
--- sys/kern/sys_capability.c
+++ sys/kern/sys_capability.c
@@ -152,14 +152,12 @@
{
int i;
- for (i = 0; i < nitems(havep->cr_rights); i++) {
- if (!cap_rights_contains(havep, needp)) {
+ if (!cap_rights_contains(havep, needp)) {
#ifdef KTRACE
- if (KTRPOINT(curthread, KTR_CAPFAIL))
- ktrcapfail(type, needp, havep);
+ if (KTRPOINT(curthread, KTR_CAPFAIL))
+ ktrcapfail(type, needp, havep);
#endif
- return (ENOTCAPABLE);
- }
+ return (ENOTCAPABLE);
}
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 20, 12:19 PM (2 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30017213
Default Alt Text
D7369.id18897.diff (762 B)
Attached To
Mode
D7369: Eliminate unnecessary loop in _cap_check()
Attached
Detach File
Event Timeline
Log In to Comment