diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2003-11-17 18:57:20 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2003-11-17 18:57:20 +0000 |
| commit | 0b92da272c669e02dac32e03697f3270953683a3 (patch) | |
| tree | c0cdc46a9f69b75b52f98b71c543e7048f112c3f | |
| parent | 0543fa5398a5bc65eab8a7c76e713a37856c26e9 (diff) | |
Notes
| -rw-r--r-- | sys/compat/linux/linux_getcwd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_getcwd.c b/sys/compat/linux/linux_getcwd.c index de5fb008858f..e3d923678935 100644 --- a/sys/compat/linux/linux_getcwd.c +++ b/sys/compat/linux/linux_getcwd.c @@ -162,7 +162,11 @@ linux_getcwd_scandir(lvpp, uvpp, bpp, bufp, td) * At this point, lvp is locked and will be unlocked by the lookup. * On successful return, *uvpp will be locked */ - error = VOP_LOOKUP(lvp, uvpp, &cn); +#ifdef MAC + error = mac_check_vnode_lookup(td->td_ucred, lvp, &cn); + if (error == 0) +#endif + error = VOP_LOOKUP(lvp, uvpp, &cn); if (error) { vput(lvp); *lvpp = NULL; |
