Home
last modified time | relevance | path

Searched refs:secid (Results 1 – 11 of 11) sorted by relevance

/security/
Dcapability.c252 static void cap_inode_getsecid(const struct inode *inode, u32 *secid) in cap_inode_getsecid() argument
254 *secid = 0; in cap_inode_getsecid()
403 static int cap_kernel_act_as(struct cred *new, u32 secid) in cap_kernel_act_as() argument
433 static void cap_task_getsecid(struct task_struct *p, u32 *secid) in cap_task_getsecid() argument
435 *secid = 0; in cap_task_getsecid()
465 int sig, u32 secid) in cap_task_kill() argument
479 static void cap_ipc_getsecid(struct kern_ipc_perm *ipcp, u32 *secid) in cap_ipc_getsecid() argument
481 *secid = 0; in cap_ipc_getsecid()
668 struct sk_buff *skb, u32 *secid) in cap_socket_getpeersec_dgram() argument
686 static void cap_sk_getsecid(struct sock *sk, u32 *secid) in cap_sk_getsecid() argument
[all …]
Dsecurity.c649 void security_inode_getsecid(const struct inode *inode, u32 *secid) in security_inode_getsecid() argument
651 security_ops->inode_getsecid(inode, secid); in security_inode_getsecid()
765 int security_kernel_act_as(struct cred *new, u32 secid) in security_kernel_act_as() argument
767 return security_ops->kernel_act_as(new, secid); in security_kernel_act_as()
801 void security_task_getsecid(struct task_struct *p, u32 *secid) in security_task_getsecid() argument
803 security_ops->task_getsecid(p, secid); in security_task_getsecid()
844 int sig, u32 secid) in security_task_kill() argument
846 return security_ops->task_kill(p, info, sig, secid); in security_task_kill()
870 void security_ipc_getsecid(struct kern_ipc_perm *ipcp, u32 *secid) in security_ipc_getsecid() argument
872 security_ops->ipc_getsecid(ipcp, secid); in security_ipc_getsecid()
[all …]
/security/smack/
Dsmack_lsm.c1026 static void smack_inode_getsecid(const struct inode *inode, u32 *secid) in smack_inode_getsecid() argument
1030 *secid = smack_to_secid(isp->smk_inode); in smack_inode_getsecid()
1475 static int smack_kernel_act_as(struct cred *new, u32 secid) in smack_kernel_act_as() argument
1478 char *smack = smack_from_secid(secid); in smack_kernel_act_as()
1565 static void smack_task_getsecid(struct task_struct *p, u32 *secid) in smack_task_getsecid() argument
1567 *secid = smack_to_secid(smk_of_task(task_security(p))); in smack_task_getsecid()
1668 int sig, u32 secid) in smack_task_kill() argument
1678 if (secid == 0) in smack_task_kill()
1686 return smk_access(smack_from_secid(secid), in smack_task_kill()
2531 static void smack_ipc_getsecid(struct kern_ipc_perm *ipp, u32 *secid) in smack_ipc_getsecid() argument
[all …]
Dsmack_access.c453 char *smack_from_secid(const u32 secid) in smack_from_secid() argument
459 if (skp->smk_secid == secid) { in smack_from_secid()
Dsmackfs.c136 nap->secid = smack_to_secid(smk_of_current()); in smk_netlabel_audit_set()
/security/selinux/include/
Dxfrm.h19 struct xfrm_user_sec_ctx *sec_ctx, u32 secid);
/security/selinux/
Dxfrm.c356 u32 secid) in selinux_xfrm_state_alloc() argument
362 err = selinux_xfrm_sec_ctx_alloc(&x->security, uctx, secid); in selinux_xfrm_state_alloc()
Dhooks.c3045 static void selinux_inode_getsecid(const struct inode *inode, u32 *secid) in selinux_inode_getsecid() argument
3048 *secid = isec->sid; in selinux_inode_getsecid()
3481 static int selinux_kernel_act_as(struct cred *new, u32 secid) in selinux_kernel_act_as() argument
3487 ret = avc_has_perm(sid, secid, in selinux_kernel_act_as()
3492 tsec->sid = secid; in selinux_kernel_act_as()
3552 static void selinux_task_getsecid(struct task_struct *p, u32 *secid) in selinux_task_getsecid() argument
3554 *secid = task_sid(p); in selinux_task_getsecid()
3621 int sig, u32 secid) in selinux_task_kill() argument
3630 if (secid) in selinux_task_kill()
3631 rc = avc_has_perm(secid, task_sid(p), in selinux_task_kill()
[all …]
Dnetlabel.c265 rc = security_netlbl_sid_to_secattr(req->secid, &secattr); in selinux_netlbl_inet_conn_request()
/security/integrity/ima/
Dima.h139 static inline int security_filter_rule_match(u32 secid, u32 field, u32 op, in security_filter_rule_match() argument
/security/selinux/ss/
Dservices.c3310 *sid = secattr->attr.secid; in security_netlbl_secattr_to_sid()
3385 secattr->attr.secid = sid; in security_netlbl_sid_to_secattr()