Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F111114369
D30593.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
464 B
Referenced Files
None
Subscribers
None
D30593.diff
View Options
diff --git a/sys/kern/kern_ktrace.c b/sys/kern/kern_ktrace.c
--- a/sys/kern/kern_ktrace.c
+++ b/sys/kern/kern_ktrace.c
@@ -1176,7 +1176,8 @@
PROC_UNLOCK(p);
return (0);
}
- if ((ops == KTROP_SET && p->p_state == PRS_NEW) || !p_cansee(td, p)) {
+ if ((ops == KTROP_SET && p->p_state == PRS_NEW) ||
+ p_cansee(td, p) != 0) {
/*
* Disallow setting trace points if the process is being born.
* This avoids races with trace point inheritance in
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Feb 28, 3:11 PM (19 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16886955
Default Alt Text
D30593.diff (464 B)
Attached To
Mode
D30593: ktrops(): fix use of p_cansee()
Attached
Detach File
Event Timeline
Log In to Comment