]> www.infradead.org Git - users/willy/pagecache.git/commit
tomoyo: use better patterns for procfs in learning mode
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Thu, 30 Jan 2025 15:27:44 +0000 (00:27 +0900)
committerTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Thu, 30 Jan 2025 15:27:44 +0000 (00:27 +0900)
commitbdc35f164b0f60480b2f5e098bb8f3c0cea05cd2
tree9a6bf655ddc73d8c7e0b2e2a04e7f5519dc9cff3
parent691a1f3f180133965d01e0ab0f332248d0345554
tomoyo: use better patterns for procfs in learning mode

Commit 08ae2487b202 ("tomoyo: automatically use patterns for several
situations in learning mode") replaced only $PID part of procfs pathname
with \$ pattern. But it turned out that we need to also replace $TID part
and $FD part to make this functionality useful for e.g. /bin/lsof .

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