Page MenuHomeFreeBSD

ktrace exec CAPFAIL_VFS

Authored By
jfree
Jun 5 2023, 3:08 PM
Size
729 B
Referenced Files
None
Subscribers
None

ktrace exec CAPFAIL_VFS

interpret:
if (args->fname != NULL) {
#ifdef CAPABILITY_MODE
+#ifdef KTRACE
+ /* XXXJF ONLY CHECK AFTER FIRST EXEC */
+ if (CAP_TRACING(td))
+ ktrcapfail(CAPFAIL_VFS, NULL, NULL);
+#endif
/*
* While capability mode can't reach this point via direct
* path arguments to execve(), we also don't allow
* interpreters to be used in capability mode (for now).
* Catch indirect lookups and return a permissions error.
*/
if (IN_CAPABILITY_MODE(td)) {
error = ECAPMODE;
goto exec_fail;
}
#endif

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5971155
Default Alt Text
ktrace exec CAPFAIL_VFS (729 B)

Event Timeline