on 2022/4/21 16:18, Christian Brauner wrote: > On Thu, Apr 21, 2022 at 03:54:18PM +0800, Yang Xu wrote: >> Since vfs has stripped S_ISGID in the previous patch, the calltrace >> as below: >> >> vfs: lookup_open >> ... >> if (open_flag& O_CREAT) { >> if (open_flag& O_EXCL) >> open_flag&= ~O_TRUNC; >> mode = prepare_mode(mnt_userns, dir->d_inode, mode); >> ... >> dir_inode->i_op->atomic_open >> >> ceph: ceph_atomic_open >> ... >> if (flags& O_CREAT) >> ceph_finish_async_create >> >> We have stripped sgid in prepare_mode, so remove this useless clear >> code directly. > > I'd replace this with: > > "Previous patches moved sgid stripping exclusively into the vfs. So > manual sgid stripping by the filesystem isn't needed anymore." Looks more clear, so should I drop the above calltrace? > >> >> Signed-off-by: Yang Xu<xuyang2018.jy@xxxxxxxxxxx> >> --- > > Reviewed-by: Christian Brauner (Microsoft)<brauner@xxxxxxxxxx>