本文整理汇总了C++中MAC_POLICY_CHECK_NOSLEEP函数的典型用法代码示例。如果您正苦于以下问题:C++ MAC_POLICY_CHECK_NOSLEEP函数的具体用法?C++ MAC_POLICY_CHECK_NOSLEEP怎么用?C++ MAC_POLICY_CHECK_NOSLEEP使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了MAC_POLICY_CHECK_NOSLEEP函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: mac_cred_check_visible
int
mac_cred_check_visible(struct ucred *cr1, struct ucred *cr2)
{
int error;
MAC_POLICY_CHECK_NOSLEEP(cred_check_visible, cr1, cr2);
MAC_CHECK_PROBE2(cred_check_visible, error, cr1, cr2);
return (error);
}
开发者ID:JabirTech,项目名称:Source,代码行数:10,代码来源:mac_cred.c
示例2: mac_cred_check_setregid
int
mac_cred_check_setregid(struct ucred *cred, gid_t rgid, gid_t egid)
{
int error;
MAC_POLICY_CHECK_NOSLEEP(cred_check_setregid, cred, rgid, egid);
MAC_CHECK_PROBE3(cred_check_setregid, error, cred, rgid, egid);
return (error);
}
开发者ID:JabirTech,项目名称:Source,代码行数:10,代码来源:mac_cred.c
示例3: mac_priv_check
/*
* Restrict access to a privilege for a credential. Return failure if any
* policy denies access.
*/
int
mac_priv_check(struct ucred *cred, int priv)
{
int error;
MAC_POLICY_CHECK_NOSLEEP(priv_check, cred, priv);
MAC_CHECK_PROBE2(priv_check, error, cred, priv);
return (error);
}
开发者ID:hmatyschok,项目名称:MeshBSD,代码行数:14,代码来源:mac_priv.c
示例4: mac_cred_check_relabel
int
mac_cred_check_relabel(struct ucred *cred, struct label *newlabel)
{
int error;
MAC_POLICY_CHECK_NOSLEEP(cred_check_relabel, cred, newlabel);
MAC_CHECK_PROBE2(cred_check_relabel, error, cred, newlabel);
return (error);
}
开发者ID:JabirTech,项目名称:Source,代码行数:10,代码来源:mac_cred.c
示例5: mac_posixshm_check_create
int
mac_posixshm_check_create(struct ucred *cred, const char *path)
{
int error;
MAC_POLICY_CHECK_NOSLEEP(posixshm_check_create, cred, path);
MAC_CHECK_PROBE2(posixshm_check_create, error, cred, path);
return (error);
}
开发者ID:2asoft,项目名称:freebsd,代码行数:10,代码来源:mac_posix_shm.c
示例6: mac_system_check_reboot
int
mac_system_check_reboot(struct ucred *cred, int howto)
{
int error;
MAC_POLICY_CHECK_NOSLEEP(system_check_reboot, cred, howto);
MAC_CHECK_PROBE2(system_check_reboot, error, cred, howto);
return (error);
}
开发者ID:edgar-pek,项目名称:PerspicuOS,代码行数:10,代码来源:mac_system.c
示例7: mac_cred_check_setgroups
int
mac_cred_check_setgroups(struct ucred *cred, int ngroups, gid_t *gidset)
{
int error;
MAC_POLICY_CHECK_NOSLEEP(cred_check_setgroups, cred, ngroups, gidset);
MAC_CHECK_PROBE3(cred_check_setgroups, error, cred, ngroups, gidset);
return (error);
}
开发者ID:JabirTech,项目名称:Source,代码行数:10,代码来源:mac_cred.c
示例8: mac_kenv_check_dump
int
mac_kenv_check_dump(struct ucred *cred)
{
int error;
MAC_POLICY_CHECK_NOSLEEP(kenv_check_dump, cred);
MAC_CHECK_PROBE1(kenv_check_dump, error, cred);
return (error);
}
开发者ID:edgar-pek,项目名称:PerspicuOS,代码行数:10,代码来源:mac_system.c
示例9: mac_kld_check_stat
int
mac_kld_check_stat(struct ucred *cred)
{
int error;
MAC_POLICY_CHECK_NOSLEEP(kld_check_stat, cred);
MAC_CHECK_PROBE1(kld_check_stat, error, cred);
return (error);
}
开发者ID:edgar-pek,项目名称:PerspicuOS,代码行数:10,代码来源:mac_system.c
示例10: mac_socket_check_stat
int
mac_socket_check_stat(struct ucred *cred, struct socket *so)
{
int error;
MAC_POLICY_CHECK_NOSLEEP(socket_check_stat, cred, so, so->so_label);
MAC_CHECK_PROBE2(socket_check_stat, error, cred, so);
return (error);
}
开发者ID:2asoft,项目名称:freebsd,代码行数:10,代码来源:mac_socket.c
示例11: mac_kenv_check_get
int
mac_kenv_check_get(struct ucred *cred, char *name)
{
int error;
MAC_POLICY_CHECK_NOSLEEP(kenv_check_get, cred, name);
MAC_CHECK_PROBE2(kenv_check_get, error, cred, name);
return (error);
}
开发者ID:edgar-pek,项目名称:PerspicuOS,代码行数:10,代码来源:mac_system.c
示例12: mac_sysvmsq_check_msqrcv
int
mac_sysvmsq_check_msqrcv(struct ucred *cred, struct msqid_kernel *msqkptr)
{
int error;
MAC_POLICY_CHECK_NOSLEEP(sysvmsq_check_msqrcv, cred, msqkptr,
msqkptr->label);
MAC_CHECK_PROBE2(sysvmsq_check_msqrcv, error, cred, msqkptr);
return (error);
}
开发者ID:dcui,项目名称:FreeBSD-9.3_kernel,代码行数:11,代码来源:mac_sysv_msg.c
示例13: mac_posixshm_check_unlink
int
mac_posixshm_check_unlink(struct ucred *cred, struct shmfd *shmfd)
{
int error;
MAC_POLICY_CHECK_NOSLEEP(posixshm_check_unlink, cred, shmfd,
shmfd->shm_label);
MAC_CHECK_PROBE2(posixshm_check_unlink, error, cred, shmfd);
return (error);
}
开发者ID:2asoft,项目名称:freebsd,代码行数:11,代码来源:mac_posix_shm.c
示例14: mac_posixshm_check_setmode
int
mac_posixshm_check_setmode(struct ucred *cred, struct shmfd *shmfd, mode_t mode)
{
int error;
MAC_POLICY_CHECK_NOSLEEP(posixshm_check_setmode, cred, shmfd,
shmfd->shm_label, mode);
MAC_CHECK_PROBE3(posixshm_check_setmode, error, cred, shmfd, mode);
return (error);
}
开发者ID:2asoft,项目名称:freebsd,代码行数:11,代码来源:mac_posix_shm.c
示例15: mac_sysvmsq_check_msgrmid
int
mac_sysvmsq_check_msgrmid(struct ucred *cred, struct msg *msgptr)
{
int error;
MAC_POLICY_CHECK_NOSLEEP(sysvmsq_check_msgrmid, cred, msgptr,
msgptr->label);
MAC_CHECK_PROBE2(sysvmsq_check_msgrmid, error, cred, msgptr);
return (error);
}
开发者ID:dcui,项目名称:FreeBSD-9.3_kernel,代码行数:11,代码来源:mac_sysv_msg.c
示例16: mac_proc_check_signal
int
mac_proc_check_signal(struct ucred *cred, struct proc *p, int signum)
{
int error;
PROC_LOCK_ASSERT(p, MA_OWNED);
MAC_POLICY_CHECK_NOSLEEP(proc_check_signal, cred, p, signum);
MAC_CHECK_PROBE3(proc_check_signal, error, cred, p, signum);
return (error);
}
开发者ID:FelixHaller,项目名称:libuinet,代码行数:12,代码来源:mac_process.c
示例17: mac_socket_check_connect
int
mac_socket_check_connect(struct ucred *cred, struct socket *so,
struct sockaddr *sa)
{
int error;
MAC_POLICY_CHECK_NOSLEEP(socket_check_connect, cred, so,
so->so_label, sa);
MAC_CHECK_PROBE3(socket_check_connect, error, cred, so, sa);
return (error);
}
开发者ID:2asoft,项目名称:freebsd,代码行数:12,代码来源:mac_socket.c
示例18: mac_socket_check_create
int
mac_socket_check_create(struct ucred *cred, int domain, int type, int proto)
{
int error;
MAC_POLICY_CHECK_NOSLEEP(socket_check_create, cred, domain, type,
proto);
MAC_CHECK_PROBE4(socket_check_create, error, cred, domain, type,
proto);
return (error);
}
开发者ID:2asoft,项目名称:freebsd,代码行数:12,代码来源:mac_socket.c
示例19: mac_proc_check_wait
int
mac_proc_check_wait(struct ucred *cred, struct proc *p)
{
int error;
PROC_LOCK_ASSERT(p, MA_OWNED);
MAC_POLICY_CHECK_NOSLEEP(proc_check_wait, cred, p);
MAC_CHECK_PROBE2(proc_check_wait, error, cred, p);
return (error);
}
开发者ID:FelixHaller,项目名称:libuinet,代码行数:12,代码来源:mac_process.c
示例20: mac_posixshm_check_open
int
mac_posixshm_check_open(struct ucred *cred, struct shmfd *shmfd,
accmode_t accmode)
{
int error;
MAC_POLICY_CHECK_NOSLEEP(posixshm_check_open, cred, shmfd,
shmfd->shm_label, accmode);
MAC_CHECK_PROBE3(posixshm_check_open, error, cred, shmfd, accmode);
return (error);
}
开发者ID:2asoft,项目名称:freebsd,代码行数:12,代码来源:mac_posix_shm.c
注:本文中的MAC_POLICY_CHECK_NOSLEEP函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论