Home
last modified time | relevance | path

Searched refs:sclass (Results 1 – 9 of 9) sorted by relevance

/security/selinux/include/
Dobjsec.h51 u16 sclass; /* security class of this object */ member
79 u16 sclass; /* security class of this object */ member
117 u16 sclass; /* sock security class */ member
Dsecurity.h412 const char *fstype, char *name, u16 sclass,
416 const char *fstype, char *name, u16 sclass,
472 extern int selinux_nlmsg_lookup(u16 sclass, u16 nlmsg_type, u32 *perm);
/security/selinux/
Dhooks.c1446 u16 sclass; in inode_doinit_with_dentry() local
1457 if (isec->sclass == SECCLASS_FILE) in inode_doinit_with_dentry()
1458 isec->sclass = inode_mode_to_security_class(inode->i_mode); in inode_doinit_with_dentry()
1472 sclass = isec->sclass; in inode_doinit_with_dentry()
1530 sclass, NULL, &sid); in inode_doinit_with_dentry()
1570 rc = selinux_genfs_get_sid(dentry, sclass, in inode_doinit_with_dentry()
1653 u16 sclass; in cred_has_capability() local
1663 sclass = initns ? SECCLASS_CAPABILITY : SECCLASS_CAP_USERNS; in cred_has_capability()
1666 sclass = initns ? SECCLASS_CAPABILITY2 : SECCLASS_CAP2_USERNS; in cred_has_capability()
1675 sid, sid, sclass, av, 0, &avd); in cred_has_capability()
[all …]
Dnlmsgtab.c168 int selinux_nlmsg_lookup(u16 sclass, u16 nlmsg_type, u32 *perm) in selinux_nlmsg_lookup() argument
172 switch (sclass) { in selinux_nlmsg_lookup()
Dnetlabel.c452 switch (sksec->sclass) { in selinux_netlbl_sock_rcv_skb()
464 sksec->sid, nlbl_sid, sksec->sclass, perm, ad); in selinux_netlbl_sock_rcv_skb()
Dselinuxfs.c2117 isec->sclass = SECCLASS_CHR_FILE; in sel_fill_super()
/security/selinux/ss/
Dpolicydb.h201 u32 sclass; /* security class for genfs */ member
Dpolicydb.c2176 newc->v.sclass = le32_to_cpu(buf[0]); in genfs_read()
2185 (!c->v.sclass || !newc->v.sclass || in genfs_read()
2186 newc->v.sclass == c->v.sclass)) { in genfs_read()
3437 buf[0] = cpu_to_le32(c->v.sclass); in genfs_write()
Dservices.c2888 u16 sclass; in __security_genfs_sid() local
2896 sclass = unmap_class(&policy->map, orig_sclass); in __security_genfs_sid()
2910 if ((!c->v.sclass || sclass == c->v.sclass) && in __security_genfs_sid()