diff options
author | Mark Johnston <markj@FreeBSD.org> | 2021-04-23 13:14:42 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2021-04-23 13:22:49 +0000 |
commit | 8e8f1cc9bb945ffaa4b49231e1ebcead1baa62ce (patch) | |
tree | 3d0057e01d67d0774f4be6a722fa8dfe2cbbcbfa /sys/kern/sys_socket.c | |
parent | 694407528fb506755f1e1f0fa2d343b7e2c3177e (diff) | |
download | src-8e8f1cc9bb945ffaa4b49231e1ebcead1baa62ce.tar.gz src-8e8f1cc9bb945ffaa4b49231e1ebcead1baa62ce.zip |
Re-enable network ioctls in capability mode
This reverts a portion of 274579831b61 ("capsicum: Limit socket
operations in capability mode") as at least rtsol and dhcpcd rely on
being able to configure network interfaces while in capability mode.
Reported by: bapt, Greg V
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/kern/sys_socket.c')
-rw-r--r-- | sys/kern/sys_socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/sys_socket.c b/sys/kern/sys_socket.c index 52f4b6cdf7f9..e53b0367960b 100644 --- a/sys/kern/sys_socket.c +++ b/sys/kern/sys_socket.c @@ -271,7 +271,7 @@ soo_ioctl(struct file *fp, u_long cmd, void *data, struct ucred *active_cred, error = ifioctl(so, cmd, data, td); else if (IOCGROUP(cmd) == 'r') { CURVNET_SET(so->so_vnet); - error = rtioctl_fib(cmd, data, so->so_fibnum, td); + error = rtioctl_fib(cmd, data, so->so_fibnum); CURVNET_RESTORE(); } else { CURVNET_SET(so->so_vnet); |