summaryrefslogtreecommitdiffstats
path: root/net/dsa
diff options
context:
space:
mode:
authorDave Wysochanski <dwysocha@redhat.com>2019-07-26 18:33:01 -0400
committerJ. Bruce Fields <bfields@redhat.com>2019-07-30 11:55:53 -0400
commit64a38e840ce5940253208eaba40265c73decc4ee (patch)
treed4f490e97e05dcacfb8906222c32d7f57bae8e6a /net/dsa
parent609488bc979f99f805f34e9a32c1e3b71179d10b (diff)
downloadlinux-stable-64a38e840ce5940253208eaba40265c73decc4ee.tar.gz
linux-stable-64a38e840ce5940253208eaba40265c73decc4ee.tar.bz2
linux-stable-64a38e840ce5940253208eaba40265c73decc4ee.zip
SUNRPC: Track writers of the 'channel' file to improve cache_listeners_exist
The sunrpc cache interface is susceptible to being fooled by a rogue process just reading a 'channel' file. If this happens the kernel may think a valid daemon exists to service the cache when it does not. For example, the following may fool the kernel: cat /proc/net/rpc/auth.unix.gid/channel Change the tracking of readers to writers when considering whether a listener exists as all valid daemon processes either open a channel file O_RDWR or O_WRONLY. While this does not prevent a rogue process from "stealing" a message from the kernel, it does at least improve the kernels perception of whether a valid process servicing the cache exists. Signed-off-by: Dave Wysochanski <dwysocha@redhat.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/dsa')
0 files changed, 0 insertions, 0 deletions