Lines Matching refs:newsid

1766 	u32 sid, newsid;  in may_create()  local
1786 &newsid); in may_create()
1791 sid, newsid, tclass, FILE__CREATE, &ad); in may_create()
1796 newsid, sbsec->sid, in may_create()
2831 u32 newsid; in selinux_dentry_init_security() local
2837 &newsid); in selinux_dentry_init_security()
2844 return security_sid_to_context(&selinux_state, newsid, (char **)ctx, in selinux_dentry_init_security()
2853 u32 newsid; in selinux_dentry_create_files_as() local
2860 &newsid); in selinux_dentry_create_files_as()
2865 tsec->create_sid = newsid; in selinux_dentry_create_files_as()
2876 u32 newsid, clen; in selinux_inode_init_security() local
2882 newsid = tsec->create_sid; in selinux_inode_init_security()
2886 &newsid); in selinux_inode_init_security()
2894 isec->sid = newsid; in selinux_inode_init_security()
2906 rc = security_sid_to_context_force(&selinux_state, newsid, in selinux_inode_init_security()
3156 u32 newsid, sid = current_sid(); in selinux_inode_setxattr() local
3189 rc = security_context_to_sid(&selinux_state, value, size, &newsid, in selinux_inode_setxattr()
3219 size, &newsid); in selinux_inode_setxattr()
3225 sid, newsid, isec->sclass, in selinux_inode_setxattr()
3230 rc = security_validate_transition(&selinux_state, isec->sid, newsid, in selinux_inode_setxattr()
3236 newsid, in selinux_inode_setxattr()
3249 u32 newsid; in selinux_inode_post_setxattr() local
3267 &newsid); in selinux_inode_post_setxattr()
3278 isec->sid = newsid; in selinux_inode_post_setxattr()
3418 u32 newsid; in selinux_inode_setsecurity() local
3431 rc = security_context_to_sid(&selinux_state, value, size, &newsid, in selinux_inode_setsecurity()
3438 isec->sid = newsid; in selinux_inode_setsecurity()
3503 u32 parent_sid, newsid, clen; in selinux_kernfs_init_security() local
3531 newsid = tsec->create_sid; in selinux_kernfs_init_security()
3541 &newsid); in selinux_kernfs_init_security()
3546 rc = security_sid_to_context_force(&selinux_state, newsid, in selinux_kernfs_init_security()
4561 u32 newsid; in selinux_socket_create() local
4569 rc = socket_sockcreate_sid(tsec, secclass, &newsid); in selinux_socket_create()
4574 tsec->sid, newsid, secclass, SOCKET__CREATE, NULL); in selinux_socket_create()