That case is simple. We never allowed overlapping leaves, and all of
the directories had essentially the same permissions. Beyond that
I added checks in sysctl_check to make certain we are never out of
sync.
As for the walking and rewalking I was never fond of it but it was
simple and worked.
So far I am not a fan of the new semantics.
Thanks for looking.
The ordering problem is self inflicted as you introduced an ordering
constraint where none existed previously, and it seems unnecessary.
I'm currently tearing my hair out trying to think of a reasonable
way to audit the current sysctl usage to see if there is anything
else that was missed.
Weird. I must have missed seeing it, as I don't have any recollection of
it.
There are two pieces of the problem.
- How do we get a dentry tree that the vfs won't gag on. Without
knowing how to successfully implement the dcompare trick it required
2 dentry trees.
- Monitoring. It is desirable to be able to mount the filesystem such that
someone outside the namespace can get a view of what the folks inside the
namespace see. Roughly like is done with /proc/net today.
Neither of those two cases requires multiple dentry trees and the
tagged sysfs dirents can easily support an operation like is_seen.
I don't think the dcompare trick is general enough to support discriminating
on something besides the current process. Which leads to problems with
monitoring.
Eric
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html