This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/kernel/core_hook.c b/kernel/core_hook.c | |
index 83413b47..70f7cdf7 100644 | |
--- a/kernel/core_hook.c | |
+++ b/kernel/core_hook.c | |
@@ -134,6 +134,10 @@ void escape_to_root(void) | |
memcpy(&cred->cap_ambient, &profile->capabilities.effective, | |
sizeof(cred->cap_ambient)); | |
+ // set ambient caps to all-zero | |
+ // fixes "operation not permitted" on dbus cap dropping |