Changeset View
Changeset View
Standalone View
Standalone View
sys/security/mac/mac_framework.h
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | |||||
struct componentname; | struct componentname; | ||||
struct devfs_dirent; | struct devfs_dirent; | ||||
struct ifnet; | struct ifnet; | ||||
struct ifreq; | struct ifreq; | ||||
struct image_params; | struct image_params; | ||||
struct inpcb; | struct inpcb; | ||||
struct ip6q; | struct ip6q; | ||||
struct ipq; | struct ipq; | ||||
struct kdb_dbbe; | |||||
struct ksem; | struct ksem; | ||||
struct label; | struct label; | ||||
struct m_tag; | struct m_tag; | ||||
struct mac; | struct mac; | ||||
struct mbuf; | struct mbuf; | ||||
struct mount; | struct mount; | ||||
struct msg; | struct msg; | ||||
struct msqid_kernel; | struct msqid_kernel; | ||||
Show All 11 Lines | |||||
struct ucred; | struct ucred; | ||||
struct vattr; | struct vattr; | ||||
struct vnode; | struct vnode; | ||||
struct vop_setlabel_args; | struct vop_setlabel_args; | ||||
#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 */ | |||||
/* | /* | ||||
* 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 | ||||
* action relating to it. They are sorted alphabetically first by object | * action relating to it. They are sorted alphabetically first by object | ||||
* type and then action. In some situations, the principle object type is | * type and then action. In some situations, the principle object type is | ||||
* obvious, and in other cases, less so as multiple objects may be inolved | * obvious, and in other cases, less so as multiple objects may be inolved | ||||
* in the operation. | * in the operation. | ||||
*/ | */ | ||||
Show All 22 Lines | |||||
int mac_cred_check_setuid(struct ucred *cred, uid_t uid); | int mac_cred_check_setuid(struct ucred *cred, uid_t uid); | ||||
int mac_cred_check_visible(struct ucred *cr1, struct ucred *cr2); | int mac_cred_check_visible(struct ucred *cr1, struct ucred *cr2); | ||||
void mac_cred_copy(struct ucred *cr1, struct ucred *cr2); | void mac_cred_copy(struct ucred *cr1, struct ucred *cr2); | ||||
void mac_cred_create_init(struct ucred *cred); | void mac_cred_create_init(struct ucred *cred); | ||||
void mac_cred_create_swapper(struct ucred *cred); | void mac_cred_create_swapper(struct ucred *cred); | ||||
void mac_cred_destroy(struct ucred *); | void mac_cred_destroy(struct ucred *); | ||||
void mac_cred_init(struct ucred *); | void mac_cred_init(struct ucred *); | ||||
int mac_ddb_command_register(struct db_command_table *table, | |||||
struct db_command *cmd); | |||||
int mac_ddb_command_exec(struct db_command *cmd, db_expr_t addr, | |||||
bool have_addr, db_expr_t count, char *modif); | |||||
void mac_devfs_create_device(struct ucred *cred, struct mount *mp, | void mac_devfs_create_device(struct ucred *cred, struct mount *mp, | ||||
struct cdev *dev, struct devfs_dirent *de); | struct cdev *dev, struct devfs_dirent *de); | ||||
void mac_devfs_create_directory(struct mount *mp, char *dirname, | void mac_devfs_create_directory(struct mount *mp, char *dirname, | ||||
int dirnamelen, struct devfs_dirent *de); | int dirnamelen, struct devfs_dirent *de); | ||||
void mac_devfs_create_symlink(struct ucred *cred, struct mount *mp, | void mac_devfs_create_symlink(struct ucred *cred, struct mount *mp, | ||||
struct devfs_dirent *dd, struct devfs_dirent *de); | struct devfs_dirent *dd, struct devfs_dirent *de); | ||||
void mac_devfs_destroy(struct devfs_dirent *); | void mac_devfs_destroy(struct devfs_dirent *); | ||||
void mac_devfs_init(struct devfs_dirent *); | void mac_devfs_init(struct devfs_dirent *); | ||||
▲ Show 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | |||||
void mac_ip6q_update(struct mbuf *m, struct ip6q *q6); | void mac_ip6q_update(struct mbuf *m, struct ip6q *q6); | ||||
void mac_ipq_create(struct mbuf *m, struct ipq *q); | void mac_ipq_create(struct mbuf *m, struct ipq *q); | ||||
void mac_ipq_destroy(struct ipq *q); | void mac_ipq_destroy(struct ipq *q); | ||||
int mac_ipq_init(struct ipq *q, int); | int mac_ipq_init(struct ipq *q, int); | ||||
int mac_ipq_match(struct mbuf *m, struct ipq *q); | int mac_ipq_match(struct mbuf *m, struct ipq *q); | ||||
void mac_ipq_reassemble(struct ipq *q, struct mbuf *m); | void mac_ipq_reassemble(struct ipq *q, struct mbuf *m); | ||||
void mac_ipq_update(struct mbuf *m, struct ipq *q); | void mac_ipq_update(struct mbuf *m, struct ipq *q); | ||||
int mac_kdb_check_backend(struct kdb_dbbe *be); | |||||
int mac_kenv_check_dump(struct ucred *cred); | int mac_kenv_check_dump(struct ucred *cred); | ||||
int mac_kenv_check_get(struct ucred *cred, char *name); | int mac_kenv_check_get(struct ucred *cred, char *name); | ||||
int mac_kenv_check_set(struct ucred *cred, char *name, char *value); | int mac_kenv_check_set(struct ucred *cred, char *name, char *value); | ||||
int mac_kenv_check_unset(struct ucred *cred, char *name); | int mac_kenv_check_unset(struct ucred *cred, char *name); | ||||
int mac_kld_check_load(struct ucred *cred, struct vnode *vp); | int mac_kld_check_load(struct ucred *cred, struct vnode *vp); | ||||
int mac_kld_check_stat(struct ucred *cred); | int mac_kld_check_stat(struct ucred *cred); | ||||
▲ Show 20 Lines • Show All 474 Lines • Show Last 20 Lines |