Changeset View
Changeset View
Standalone View
Standalone View
sys/security/mac/mac_framework.h
Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | |||||
struct pipepair; | struct pipepair; | ||||
struct thread; | struct thread; | ||||
struct timespec; | struct timespec; | ||||
struct ucred; | struct ucred; | ||||
struct vattr; | struct vattr; | ||||
struct vnode; | struct vnode; | ||||
struct vop_setlabel_args; | struct vop_setlabel_args; | ||||
struct in_addr; | |||||
struct in6_addr; | |||||
#include <sys/acl.h> /* XXX acl_type_t */ | #include <sys/acl.h> /* XXX acl_type_t */ | ||||
#include <sys/types.h> /* accmode_t */ | #include <sys/types.h> /* accmode_t */ | ||||
#include <ddb/ddb.h> /* db_expr_t */ | #include <ddb/ddb.h> /* db_expr_t */ | ||||
/* | /* | ||||
* Entry points to the TrustedBSD MAC Framework from the remainder of the | * Entry points to the TrustedBSD MAC Framework from the remainder of the | ||||
* kernel: entry points are named based on a principle object type and an | * kernel: entry points are named based on a principle object type and an | ||||
▲ Show 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
void mac_ifnet_destroy(struct ifnet *); | void mac_ifnet_destroy(struct ifnet *); | ||||
void mac_ifnet_init(struct ifnet *); | void mac_ifnet_init(struct ifnet *); | ||||
int mac_ifnet_ioctl_get(struct ucred *cred, struct ifreq *ifr, | int mac_ifnet_ioctl_get(struct ucred *cred, struct ifreq *ifr, | ||||
struct ifnet *ifp); | struct ifnet *ifp); | ||||
int mac_ifnet_ioctl_set(struct ucred *cred, struct ifreq *ifr, | int mac_ifnet_ioctl_set(struct ucred *cred, struct ifreq *ifr, | ||||
struct ifnet *ifp); | struct ifnet *ifp); | ||||
/* Check if the IP address is allowed for the interface. */ | |||||
bz: Looks like it could be a single line comment, upper case and ".".
Similar for all comments… | |||||
int mac_inet_check_add_addr(struct ucred *cred, | |||||
const struct in_addr *ia, struct ifnet *ifp); | |||||
int mac_inet6_check_add_addr(struct ucred *cred, | |||||
const struct in6_addr *ia6, struct ifnet *ifp); | |||||
int mac_inpcb_check_deliver(struct inpcb *inp, struct mbuf *m); | int mac_inpcb_check_deliver(struct inpcb *inp, struct mbuf *m); | ||||
int mac_inpcb_check_visible(struct ucred *cred, struct inpcb *inp); | int mac_inpcb_check_visible(struct ucred *cred, struct inpcb *inp); | ||||
void mac_inpcb_create(struct socket *so, struct inpcb *inp); | void mac_inpcb_create(struct socket *so, struct inpcb *inp); | ||||
void mac_inpcb_create_mbuf(struct inpcb *inp, struct mbuf *m); | void mac_inpcb_create_mbuf(struct inpcb *inp, struct mbuf *m); | ||||
void mac_inpcb_destroy(struct inpcb *); | void mac_inpcb_destroy(struct inpcb *); | ||||
int mac_inpcb_init(struct inpcb *, int); | int mac_inpcb_init(struct inpcb *, int); | ||||
void mac_inpcb_sosetlabel(struct socket *so, struct inpcb *inp); | void mac_inpcb_sosetlabel(struct socket *so, struct inpcb *inp); | ||||
▲ Show 20 Lines • Show All 514 Lines • Show Last 20 Lines |
Looks like it could be a single line comment, upper case and ".".
Similar for all comments following; I am not going to say it explicitly for all.