[ToDo] Landlock: add exceptional statement to avoid race

Guillermo Austin Kim|2021년 5월 31일
Posts

[ToDo] Landlock: add exceptional statement to avoid race

Guillermo Austin Kim|2021년 5월 31일

Race between hook_cred_free() and landlock_merge_ruleset()/fop_ruleset_release() could be taking place. To avoid this, exceptional statement should be added. diff --git a/security/landlock/ruleset.c b/security/landlock/ruleset.cindex ec72b92..11dd128 100644--- a/security/landlock/ruleset.c+++ b/security/landlock/ruleset.c@@ -377,7 +377,9 @@ static void free_ruleset_work(struct work_struct *const