[PATCH -next] tomoyo: check file getattr permission in file_getattr()
Tetsuo Handa
penguin-kernel at I-love.SAKURA.ne.jp
Wed Dec 2 13:35:48 UTC 2026
Hello.
On 2026/11/30 1:32, Christopher Lusk wrote:
> Tetsuo, should TOMOYO check these internal backing-path reads? If not,
> the hook cannot tell them apart from file_getattr(2) by path, since
> both pass file == NULL, so it would need a change on the overlayfs
> side or in the hook arguments. I can send a v2 either way.
In TOMOYO, "file getattr" permission is for calling stat().
TOMOYO does not check attributes that are not in "struct stat".
Therefore, I don't think TOMOYO needs to implement path_file_getattr hook.
Regards.
More information about the Linux-security-module-archive
mailing list