fs: prevent use after free in auditing when symlink following was denied
authorSasha Levin <sasha.levin@oracle.com>
Thu, 4 Oct 2012 23:56:40 +0000 (19:56 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 10 Oct 2012 03:33:37 +0000 (23:33 -0400)
commitffd8d101a3a7d3f2e79deee1e342801703b6dc70
treed2ca06ce67886ce0c9498c6fbce05dc11d93fa9c
parent547b1e81afe3119f7daf702cc03b158495535a25
fs: prevent use after free in auditing when symlink following was denied

Commit "fs: add link restriction audit reporting" has added auditing of failed
attempts to follow symlinks. Unfortunately, the auditing was being done after
the struct path structure was released earlier.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c