mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-08 23:42:53 +03:00
Kernel: Make pledge serialization in /proc/all generation OOM-fallible
This commit is contained in:
parent
e23d320bb9
commit
dab73d6d23
Notes:
sideshowbarker
2024-07-17 20:12:14 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/dab73d6d23f Pull-request: https://github.com/SerenityOS/serenity/pull/12128 Reviewed-by: https://github.com/bgianfo ✅
@ -459,10 +459,9 @@ private:
|
||||
if (process.is_user_process()) {
|
||||
StringBuilder pledge_builder;
|
||||
|
||||
#define __ENUMERATE_PLEDGE_PROMISE(promise) \
|
||||
if (process.has_promised(Pledge::promise)) { \
|
||||
pledge_builder.append(#promise " "); \
|
||||
}
|
||||
#define __ENUMERATE_PLEDGE_PROMISE(promise) \
|
||||
if (process.has_promised(Pledge::promise)) \
|
||||
TRY(pledge_builder.try_append(#promise " "));
|
||||
ENUMERATE_PLEDGE_PROMISES
|
||||
#undef __ENUMERATE_PLEDGE_PROMISE
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user