mirror of
https://github.com/opnsense/src.git
synced 2026-04-10 11:58:54 -04:00
ktrace should not follow symlinks either.
Suggested by: bde
This commit is contained in:
parent
5ef84cd20e
commit
8c0abeface
1 changed files with 2 additions and 2 deletions
|
|
@ -273,8 +273,8 @@ ktrace(curp, uap)
|
|||
/*
|
||||
* an operation which requires a file argument.
|
||||
*/
|
||||
NDINIT(&nd, LOOKUP, FOLLOW, UIO_USERSPACE, uap->fname, curp);
|
||||
error = vn_open(&nd, FREAD|FWRITE, 0);
|
||||
NDINIT(&nd, LOOKUP, NOFOLLOW, UIO_USERSPACE, uap->fname, curp);
|
||||
error = vn_open(&nd, FREAD|FWRITE|O_NOFOLLOW, 0);
|
||||
if (error) {
|
||||
curp->p_traceflag &= ~KTRFAC_ACTIVE;
|
||||
return (error);
|
||||
|
|
|
|||
Loading…
Reference in a new issue