mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-13 13:02:28 +00: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: dab73d6d23
Pull-request: https://github.com/SerenityOS/serenity/pull/12128
Reviewed-by: https://github.com/bgianfo ✅
1 changed files with 3 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue