FreeBSD kernel IPv4 code
in_prot.c File Reference
#include <sys/cdefs.h>
#include "opt_inet.h"
#include "opt_inet6.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/lock.h>
#include <sys/mutex.h>
#include <sys/proc.h>
#include <sys/socket.h>
#include <sys/jail.h>
#include <netinet/in.h>
#include <netinet/in_pcb.h>
#include <netinet/in_systm.h>
#include <security/audit/audit.h>
#include <security/mac/mac_framework.h>
Include dependency graph for in_prot.c:

Go to the source code of this file.

Functions

 __FBSDID ("$FreeBSD$")
 
int cr_canseeinpcb (struct ucred *cred, struct inpcb *inp)
 

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ cr_canseeinpcb()

int cr_canseeinpcb ( struct ucred *  cred,
struct inpcb inp 
)

Definition at line 59 of file in_prot.c.

References inpcb::inp_cred, and INP_LOCK_ASSERT.

Referenced by rip_pcblist(), tcp_pcblist(), and udp_pcblist().

Here is the caller graph for this function: