Re: [PATCH] SELinux: work around filesystems which calld_instantiate before setting inode mode

From: Eric Paris
Date: Wed Aug 30 2006 - 13:48:48 EST


On Tue, 2006-08-29 at 23:01 -0500, Steve French wrote:
> Eric,
> Does this patch do what you need?
>
> It rearranges the cifs call to d_instantiate until after the inode is
> filled in in fs/cifs/readdir.c
> which IIRC was the only place which did the reverse order from what you
> expected (at
> least the only place in cifs). I will try it tomorrow but I don't know
> SE Linux
> scenarios to try that would prove whether it works.

This patch does seem to solve the issue with CIFS that we were
experiencing and I would love to see it submitted.

I would also like to have my original patch included as it will help to
flush out any other cases of this ordering in the future.

-Eric

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/