Re: [PATCH 13/38] tomoyo: Implement security hooks for the new mount API [ver #10]

From: Tetsuo Handa
Date: Fri Jul 27 2018 - 22:30:12 EST


On 2018/07/28 2:32, David Howells wrote:
> Implement the security hook to check the creation of a new mountpoint for
> Tomoyo.
>
> As far as I can tell, Tomoyo doesn't make use of the mount data or parse
> any mount options, so I haven't implemented any of the fs_context hooks for
> it.
>
> Signed-off-by: David Howells <dhowells@xxxxxxxxxx>
> cc: Tetsuo Handa <penguin-kernel@xxxxxxxxxxxxxxxxxxx>
> cc: tomoyo-dev-en@xxxxxxxxxxxxxxxxxxxx
> cc: linux-security-module@xxxxxxxxxxxxxxx

Would you provide examples of each possible combination as a C program?
For example, if one mount point from multiple sources with different
options are possible, please describe such pattern using syscall so that
LSM modules can run it to see whether they are working as expected.