Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177411520
D58397.1794316395.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
868 B
Referenced Files
None
Subscribers
None
D58397.1794316395.diff
View Options
diff --git a/sys/kern/kern_event.c b/sys/kern/kern_event.c
--- a/sys/kern/kern_event.c
+++ b/sys/kern/kern_event.c
@@ -454,6 +454,9 @@
int error;
bool exiting, immediate;
+ if (IN_CAPABILITY_MODE(curthread))
+ return (ECAPMODE);
+
exiting = immediate = false;
if (kn->kn_sfflags & NOTE_EXIT)
p = pfind_any(kn->kn_id);
@@ -661,6 +664,9 @@
{
struct prison *pr;
+ if (IN_CAPABILITY_MODE(curthread))
+ return (ECAPMODE);
+
if (kn->kn_id == 0) {
/* Let jid=0 watch the current prison (including prison0). */
pr = curthread->td_ucred->cr_prison;
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -6563,6 +6563,8 @@
static int
filt_fsattach(struct knote *kn)
{
+ if (IN_CAPABILITY_MODE(curthread))
+ return (ECAPMODE);
kn->kn_flags |= EV_CLEAR;
knlist_add(&fs_knlist, kn, 0);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 10, 1:13 PM (4 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41638834
Default Alt Text
D58397.1794316395.diff (868 B)
Attached To
Mode
D58397: kevent: Disallow certain filter types in capability mode
Attached
Detach File
Event Timeline