mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-28 16:43:09 +00:00
Trace attempts to open a portal device.
Ceterum censeo portalfs esse delendam.
This commit is contained in:
parent
29a99755a9
commit
0fc93d0b00
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226497
@ -240,8 +240,13 @@ portal_open(ap)
|
||||
* This may require access to a global namespace (e.g. an IP address);
|
||||
* disallow it entirely, as we do open(2).
|
||||
*/
|
||||
if (IN_CAPABILITY_MODE(td))
|
||||
if (IN_CAPABILITY_MODE(td)) {
|
||||
#ifdef KTRACE
|
||||
if (KTRPOINT(td, KTR_CAPFAIL))
|
||||
ktrcapfail(CAPFAIL_SYSCALL, 0, 0);
|
||||
#endif
|
||||
return (ECAPMODE);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user