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
80 u16 sclass; /* security class of this object */ member
118 u16 sclass; /* sock security class */ member
Dsecurity.h352 const char *fstype, char *name, u16 sclass,
409 extern int selinux_nlmsg_lookup(u16 sclass, u16 nlmsg_type, u32 *perm);
/security/selinux/
Dhooks.c252 isec->sclass = SECCLASS_FILE; in inode_alloc_security()
1449 u16 sclass; in inode_doinit_with_dentry() local
1460 if (isec->sclass == SECCLASS_FILE) in inode_doinit_with_dentry()
1461 isec->sclass = inode_mode_to_security_class(inode->i_mode); in inode_doinit_with_dentry()
1475 sclass = isec->sclass; in inode_doinit_with_dentry()
1533 sclass, NULL, &sid); in inode_doinit_with_dentry()
1571 rc = selinux_genfs_get_sid(dentry, sclass, in inode_doinit_with_dentry()
1654 u16 sclass; in cred_has_capability() local
1664 sclass = initns ? SECCLASS_CAPABILITY : SECCLASS_CAP_USERNS; in cred_has_capability()
1667 sclass = initns ? SECCLASS_CAPABILITY2 : SECCLASS_CAP2_USERNS; in cred_has_capability()
[all …]
Dnlmsgtab.c158 int selinux_nlmsg_lookup(u16 sclass, u16 nlmsg_type, u32 *perm) in selinux_nlmsg_lookup() argument
162 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.c2015 isec->sclass = SECCLASS_CHR_FILE; in sel_fill_super()
/security/selinux/ss/
Dpolicydb.h197 u32 sclass; /* security class for genfs */ member
Dpolicydb.c2033 newc->v.sclass = le32_to_cpu(buf[0]); in genfs_read()
2042 (!c->v.sclass || !newc->v.sclass || in genfs_read()
2043 newc->v.sclass == c->v.sclass)) { in genfs_read()
3259 buf[0] = cpu_to_le32(c->v.sclass); in genfs_write()
Dservices.c2771 u16 sclass; in __security_genfs_sid() local
2779 sclass = unmap_class(&state->ss->map, orig_sclass); in __security_genfs_sid()
2793 if ((!c->v.sclass || sclass == c->v.sclass) && in __security_genfs_sid()