Lines Matching refs:sclass
252 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()
1676 sid, sid, sclass, av, 0, &avd); in cred_has_capability()
1679 sid, sid, sclass, av, &avd, rc, &ad, 0); in cred_has_capability()
1706 sid, isec->sid, isec->sclass, perms, adp); in inode_has_perm()
1919 sid, isec->sid, isec->sclass, av, &ad); in may_link()
1950 old_isec->sclass, FILE__RENAME, &ad); in may_rename()
1956 old_isec->sclass, DIR__REPARENT, &ad); in may_rename()
1974 new_isec->sclass, in may_rename()
2137 sid, isec->sid, isec->sclass, file_to_av(file), in selinux_binder_transfer_file()
2945 isec->sclass = inode_mode_to_security_class(inode->i_mode); in selinux_inode_init_security()
3034 sid, isec->sid, isec->sclass, FILE__READ, &ad, in selinux_inode_follow_link()
3050 current_sid(), isec->sid, isec->sclass, perms, in audit_inode_permission()
3089 sid, isec->sid, isec->sclass, perms, in selinux_inode_permission()
3188 sid, isec->sid, isec->sclass, in selinux_inode_setxattr()
3227 sid, newsid, isec->sclass, in selinux_inode_setxattr()
3233 sid, isec->sclass); in selinux_inode_setxattr()
3279 isec->sclass = inode_mode_to_security_class(inode->i_mode); in selinux_inode_post_setxattr()
3429 isec->sclass = inode_mode_to_security_class(inode->i_mode); in selinux_inode_setsecurity()
3623 ssid, isec->sid, isec->sclass, in ioctl_has_perm()
4221 isec->sclass = inode_mode_to_security_class(inode->i_mode); in selinux_task_to_inode()
4547 current_sid(), sksec->sid, sksec->sclass, perms, in sock_has_perm()
4577 u16 sclass = socket_type_to_security_class(family, type, protocol); in selinux_socket_post_create() local
4582 err = socket_sockcreate_sid(tsec, sclass, &sid); in selinux_socket_post_create()
4587 isec->sclass = sclass; in selinux_socket_post_create()
4593 sksec->sclass = sclass; in selinux_socket_post_create()
4596 if (sksec->sclass == SECCLASS_SCTP_SOCKET) in selinux_socket_post_create()
4706 sksec->sclass, in selinux_socket_bind()
4713 switch (sksec->sclass) { in selinux_socket_bind()
4746 sksec->sclass, node_perm, &ad); in selinux_socket_bind()
4754 if (sksec->sclass == SECCLASS_SCTP_SOCKET) in selinux_socket_bind()
4785 if (sksec->sclass == SECCLASS_TCP_SOCKET || in selinux_socket_connect_helper()
4786 sksec->sclass == SECCLASS_DCCP_SOCKET || in selinux_socket_connect_helper()
4787 sksec->sclass == SECCLASS_SCTP_SOCKET) { in selinux_socket_connect_helper()
4817 if (sksec->sclass == SECCLASS_SCTP_SOCKET) in selinux_socket_connect_helper()
4827 switch (sksec->sclass) { in selinux_socket_connect_helper()
4844 sksec->sid, sid, sksec->sclass, perm, &ad); in selinux_socket_connect_helper()
4876 u16 sclass; in selinux_socket_accept() local
4885 sclass = isec->sclass; in selinux_socket_accept()
4890 newisec->sclass = sclass; in selinux_socket_accept()
4958 sksec_other->sclass, in selinux_socket_unix_stream_connect()
4989 ssec->sid, osec->sid, osec->sclass, SOCKET__SENDTO, in selinux_socket_unix_may_send()
5132 if (sksec->sclass == SECCLASS_UNIX_STREAM_SOCKET || in selinux_socket_getpeersec_stream()
5133 sksec->sclass == SECCLASS_TCP_SOCKET || in selinux_socket_getpeersec_stream()
5134 sksec->sclass == SECCLASS_SCTP_SOCKET) in selinux_socket_getpeersec_stream()
5197 sksec->sclass = SECCLASS_SOCKET; in selinux_sk_alloc_security()
5220 newsksec->sclass = sksec->sclass; in selinux_sk_clone_security()
5245 sksec->sclass = isec->sclass; in selinux_sock_graft()
5298 sksec->peer_sid, peer_sid, sksec->sclass, in selinux_sctp_assoc_request()
5417 newsksec->sclass = sksec->sclass; in selinux_sctp_sk_clone()
5556 sksec->sclass = SECCLASS_TUN_SOCKET; in selinux_tun_dev_attach()
5590 u16 sclass = sksec->sclass; in selinux_nlmsg_perm() local
5605 rc = selinux_nlmsg_lookup(sclass, nlh->nlmsg_type, &perm); in selinux_nlmsg_perm()
5616 secclass_map[sclass - 1].name, in selinux_nlmsg_perm()
5971 static void ipc_init_security(struct ipc_security_struct *isec, u16 sclass) in ipc_init_security() argument
5973 isec->sclass = sclass; in ipc_init_security()
6000 sid, isec->sid, isec->sclass, perms, &ad); in ipc_has_perm()