Re: [Devel] [PATCH RH7] mnt: allow to add a mount into an existing group

2020-05-08 Thread Pavel Tikhomirov
On 5/7/20 9:38 PM, Konstantin Khorenko wrote: On 05/06/2020 02:59 PM, Pavel Tikhomirov wrote: diff --git a/include/uapi/linux/fs.h b/include/uapi/linux/fs.h index a4ca54304220..45e2752a85c9 100644 --- a/include/uapi/linux/fs.h +++ b/include/uapi/linux/fs.h @@ -99,6 +99,12 @@ struct inodes_stat

Re: [Devel] [PATCH RH7] mnt: allow to add a mount into an existing group

2020-05-07 Thread Konstantin Khorenko
On 05/06/2020 02:59 PM, Pavel Tikhomirov wrote: diff --git a/include/uapi/linux/fs.h b/include/uapi/linux/fs.h index a4ca54304220..45e2752a85c9 100644 --- a/include/uapi/linux/fs.h +++ b/include/uapi/linux/fs.h @@ -99,6 +99,12 @@ struct inodes_stat_t { #define MS_STRICTATIME (1<<24) /* Always pe

[Devel] [PATCH RH7] mnt: allow to add a mount into an existing group

2020-05-06 Thread Pavel Tikhomirov
From: Andrei Vagin Now a shared group can be only inherited from a source mount. This patch adds an ability to add a mount into an existing shared group. mount(source, target, NULL, MS_SET_GROUP, NULL) mount() with the MS_SET_GROUP flag adds the "target" mount into a group of the "source" mount