Sound good to me. At leat this puts a veneer of respectability over
decapitating find_group_other(), which is really what we all want
to do anyway ;)
> The uid has a different issue, though,
> namely the fact that when user directories are created, they are basically
> always created as uid 0 first, and then a "chown" - which means that the
> user heuristic wouldn't actually trigger at the right time. So the
> heuristic couldn't be just "newfile->uid == directory->uid", it would have
> to be something better.
Last time, Al suggested that we always use the find_group_other() approach
if the directory is being made at the top-level of the filesystem. So
if /home is a mountpoint, the user directories get spread out.
I think this, and the UID comparison will be good enough.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/