Changeset View
Changeset View
Standalone View
Standalone View
sys/net/route.c
Show All 37 Lines | |||||
#include "opt_inet.h" | #include "opt_inet.h" | ||||
#include "opt_inet6.h" | #include "opt_inet6.h" | ||||
#include "opt_mrouting.h" | #include "opt_mrouting.h" | ||||
#include "opt_route.h" | #include "opt_route.h" | ||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <sys/systm.h> | #include <sys/systm.h> | ||||
#include <sys/capsicum.h> | |||||
#include <sys/malloc.h> | #include <sys/malloc.h> | ||||
#include <sys/mbuf.h> | #include <sys/mbuf.h> | ||||
#include <sys/socket.h> | #include <sys/socket.h> | ||||
#include <sys/sysctl.h> | #include <sys/sysctl.h> | ||||
#include <sys/syslog.h> | #include <sys/syslog.h> | ||||
#include <sys/sysproto.h> | #include <sys/sysproto.h> | ||||
#include <sys/proc.h> | #include <sys/proc.h> | ||||
#include <sys/domain.h> | #include <sys/domain.h> | ||||
▲ Show 20 Lines • Show All 186 Lines • ▼ Show 20 Lines | rib_add_redirect(u_int fibnum, struct sockaddr *dst, struct sockaddr *gateway, | ||||
return (0); | return (0); | ||||
} | } | ||||
/* | /* | ||||
* Routing table ioctl interface. | * Routing table ioctl interface. | ||||
*/ | */ | ||||
int | int | ||||
rtioctl_fib(u_long req, caddr_t data, u_int fibnum) | rtioctl_fib(u_long req, caddr_t data, u_int fibnum, struct thread *td) | ||||
{ | { | ||||
if (IN_CAPABILITY_MODE(td)) | |||||
return (ECAPMODE); | |||||
/* | /* | ||||
* If more ioctl commands are added here, make sure the proper | * If more ioctl commands are added here, make sure the proper | ||||
* super-user checks are being performed because it is possible for | * super-user checks are being performed because it is possible for | ||||
* prison-root to make it this far if raw sockets have been enabled | * prison-root to make it this far if raw sockets have been enabled | ||||
* in jails. | * in jails. | ||||
*/ | */ | ||||
#ifdef INET | #ifdef INET | ||||
▲ Show 20 Lines • Show All 490 Lines • Show Last 20 Lines |