tomoyo: Limit wildcard recursion depth.
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Tue, 3 Nov 2020 04:17:40 +0000 (13:17 +0900)
committerTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Tue, 3 Nov 2020 04:50:02 +0000 (13:50 +0900)
commite991a40b3d0000a2f48729aea4ce03acf679b5ee
tree1ca9da2dc30ea683bedfa2ca1adab043deeca173
parentd9594e0409651a237903a13c9718df889f43d43b
tomoyo: Limit wildcard recursion depth.

Since wildcards that need recursion consume kernel stack memory (or might
cause CPU stall warning problem), we cannot allow infinite recursion.

Since TOMOYO 1.8 survived with 20 recursions limit for 5 years, nobody
would complain if applying this limit to TOMOYO 2.6.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
security/tomoyo/util.c