Lines Matching refs:newsid

1801 	u32 sid, newsid;  in may_create()  local
1820 &newsid); in may_create()
1824 rc = avc_has_perm(sid, newsid, tclass, FILE__CREATE, &ad); in may_create()
1828 return avc_has_perm(newsid, sbsec->sid, in may_create()
2862 u32 newsid; in selinux_dentry_init_security() local
2868 &newsid); in selinux_dentry_init_security()
2875 return security_sid_to_context(newsid, (char **)ctx, in selinux_dentry_init_security()
2884 u32 newsid; in selinux_dentry_create_files_as() local
2891 &newsid); in selinux_dentry_create_files_as()
2896 tsec->create_sid = newsid; in selinux_dentry_create_files_as()
2907 u32 newsid, clen; in selinux_inode_init_security() local
2913 newsid = tsec->create_sid; in selinux_inode_init_security()
2917 &newsid); in selinux_inode_init_security()
2925 isec->sid = newsid; in selinux_inode_init_security()
2934 rc = security_sid_to_context_force(newsid, in selinux_inode_init_security()
3177 u32 newsid, sid = current_sid(); in selinux_inode_setxattr() local
3209 rc = security_context_to_sid(value, size, &newsid, in selinux_inode_setxattr()
3239 size, &newsid); in selinux_inode_setxattr()
3244 rc = avc_has_perm(sid, newsid, isec->sclass, in selinux_inode_setxattr()
3249 rc = security_validate_transition(isec->sid, newsid, in selinux_inode_setxattr()
3254 return avc_has_perm(newsid, in selinux_inode_setxattr()
3286 u32 newsid; in selinux_inode_post_setxattr() local
3304 &newsid); in selinux_inode_post_setxattr()
3315 isec->sid = newsid; in selinux_inode_post_setxattr()
3454 u32 newsid; in selinux_inode_setsecurity() local
3467 rc = security_context_to_sid(value, size, &newsid, in selinux_inode_setsecurity()
3474 isec->sid = newsid; in selinux_inode_setsecurity()
3539 u32 parent_sid, newsid, clen; in selinux_kernfs_init_security() local
3567 newsid = tsec->create_sid; in selinux_kernfs_init_security()
3577 &newsid); in selinux_kernfs_init_security()
3582 rc = security_sid_to_context_force(newsid, in selinux_kernfs_init_security()
4587 u32 newsid; in selinux_socket_create() local
4595 rc = socket_sockcreate_sid(tsec, secclass, &newsid); in selinux_socket_create()
4599 return avc_has_perm(tsec->sid, newsid, secclass, SOCKET__CREATE, NULL); in selinux_socket_create()