diff options
| author | Eric W. Biederman <ebiederm@xmission.com> | 2015-05-09 15:54:49 -0500 |
|---|---|---|
| committer | Luis Henriques <luis.henriques@canonical.com> | 2015-07-15 10:01:05 +0100 |
| commit | 8f94859743e838044eab15862d75b35b9e70d688 (patch) | |
| tree | fa734e799f38a4a3389c6489ab7eca21f7ba4dba /include/linux/sysctl.h | |
| parent | 3db9818f4e63425d0d2118e8ac59787e47e8540f (diff) | |
fs: Add helper functions for permanently empty directories.
commit fbabfd0f4ee2e8847bf56edf481249ad1bb8c44d upstream.
To ensure it is safe to mount proc and sysfs I need to check if
filesystems that are mounted on top of them are mounted on truly empty
directories. Given that some directories can gain entries over time,
knowing that a directory is empty right now is insufficient.
Therefore add supporting infrastructure for permantently empty
directories that proc and sysfs can use when they create mount points
for filesystems and fs_fully_visible can use to test for permanently
empty directories to ensure that nothing will be gained by mounting a
fresh copy of proc or sysfs.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
[ luis: backported to 3.16: adjusted context ]
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'include/linux/sysctl.h')
0 files changed, 0 insertions, 0 deletions
