isec              245 security/selinux/hooks.c 	struct inode_security_struct *isec = selinux_inode(inode);
isec              248 security/selinux/hooks.c 	spin_lock_init(&isec->lock);
isec              249 security/selinux/hooks.c 	INIT_LIST_HEAD(&isec->list);
isec              250 security/selinux/hooks.c 	isec->inode = inode;
isec              251 security/selinux/hooks.c 	isec->sid = SECINITSID_UNLABELED;
isec              252 security/selinux/hooks.c 	isec->sclass = SECCLASS_FILE;
isec              253 security/selinux/hooks.c 	isec->task_sid = sid;
isec              254 security/selinux/hooks.c 	isec->initialized = LABEL_INVALID;
isec              271 security/selinux/hooks.c 	struct inode_security_struct *isec = selinux_inode(inode);
isec              276 security/selinux/hooks.c 	    isec->initialized != LABEL_INITIALIZED) {
isec              334 security/selinux/hooks.c 	struct inode_security_struct *isec = selinux_inode(inode);
isec              337 security/selinux/hooks.c 	if (!isec)
isec              350 security/selinux/hooks.c 	if (!list_empty_careful(&isec->list)) {
isec              352 security/selinux/hooks.c 		list_del_init(&isec->list);
isec              592 security/selinux/hooks.c 		struct inode_security_struct *isec =
isec              595 security/selinux/hooks.c 		struct inode *inode = isec->inode;
isec              596 security/selinux/hooks.c 		list_del_init(&isec->list);
isec             1132 security/selinux/hooks.c 		struct inode_security_struct *isec = backing_inode_security(root);
isec             1135 security/selinux/hooks.c 		rc = show_sid(m, isec->sid);
isec             1434 security/selinux/hooks.c 	struct inode_security_struct *isec = selinux_inode(inode);
isec             1440 security/selinux/hooks.c 	if (isec->initialized == LABEL_INITIALIZED)
isec             1443 security/selinux/hooks.c 	spin_lock(&isec->lock);
isec             1444 security/selinux/hooks.c 	if (isec->initialized == LABEL_INITIALIZED)
isec             1447 security/selinux/hooks.c 	if (isec->sclass == SECCLASS_FILE)
isec             1448 security/selinux/hooks.c 		isec->sclass = inode_mode_to_security_class(inode->i_mode);
isec             1456 security/selinux/hooks.c 		if (list_empty(&isec->list))
isec             1457 security/selinux/hooks.c 			list_add(&isec->list, &sbsec->isec_head);
isec             1462 security/selinux/hooks.c 	sclass = isec->sclass;
isec             1463 security/selinux/hooks.c 	task_sid = isec->task_sid;
isec             1464 security/selinux/hooks.c 	sid = isec->sid;
isec             1465 security/selinux/hooks.c 	isec->initialized = LABEL_PENDING;
isec             1466 security/selinux/hooks.c 	spin_unlock(&isec->lock);
isec             1580 security/selinux/hooks.c 	spin_lock(&isec->lock);
isec             1581 security/selinux/hooks.c 	if (isec->initialized == LABEL_PENDING) {
isec             1583 security/selinux/hooks.c 			isec->initialized = LABEL_INVALID;
isec             1587 security/selinux/hooks.c 		isec->initialized = LABEL_INITIALIZED;
isec             1588 security/selinux/hooks.c 		isec->sid = sid;
isec             1592 security/selinux/hooks.c 	spin_unlock(&isec->lock);
isec             1673 security/selinux/hooks.c 	struct inode_security_struct *isec;
isec             1682 security/selinux/hooks.c 	isec = selinux_inode(inode);
isec             1685 security/selinux/hooks.c 			    sid, isec->sid, isec->sclass, perms, adp);
isec             1862 security/selinux/hooks.c 	struct inode_security_struct *dsec, *isec;
isec             1869 security/selinux/hooks.c 	isec = backing_inode_security(dentry);
isec             1898 security/selinux/hooks.c 			  sid, isec->sid, isec->sclass, av, &ad);
isec             2094 security/selinux/hooks.c 	struct inode_security_struct *isec;
isec             2120 security/selinux/hooks.c 	isec = backing_inode_security(dentry);
isec             2122 security/selinux/hooks.c 			    sid, isec->sid, isec->sclass, file_to_av(file),
isec             2333 security/selinux/hooks.c 	struct inode_security_struct *isec;
isec             2345 security/selinux/hooks.c 	isec = inode_security(inode);
isec             2368 security/selinux/hooks.c 					     isec->sid, SECCLASS_PROCESS, NULL,
isec             2387 security/selinux/hooks.c 				  old_tsec->sid, isec->sid,
isec             2400 security/selinux/hooks.c 				  new_tsec->sid, isec->sid,
isec             2930 security/selinux/hooks.c 		struct inode_security_struct *isec = selinux_inode(inode);
isec             2931 security/selinux/hooks.c 		isec->sclass = inode_mode_to_security_class(inode->i_mode);
isec             2932 security/selinux/hooks.c 		isec->sid = newsid;
isec             2933 security/selinux/hooks.c 		isec->initialized = LABEL_INITIALIZED;
isec             3007 security/selinux/hooks.c 	struct inode_security_struct *isec;
isec             3015 security/selinux/hooks.c 	isec = inode_security_rcu(inode, rcu);
isec             3016 security/selinux/hooks.c 	if (IS_ERR(isec))
isec             3017 security/selinux/hooks.c 		return PTR_ERR(isec);
isec             3020 security/selinux/hooks.c 				  sid, isec->sid, isec->sclass, FILE__READ, &ad,
isec             3029 security/selinux/hooks.c 	struct inode_security_struct *isec = selinux_inode(inode);
isec             3036 security/selinux/hooks.c 			    current_sid(), isec->sid, isec->sclass, perms,
isec             3049 security/selinux/hooks.c 	struct inode_security_struct *isec;
isec             3070 security/selinux/hooks.c 	isec = inode_security_rcu(inode, flags & MAY_NOT_BLOCK);
isec             3071 security/selinux/hooks.c 	if (IS_ERR(isec))
isec             3072 security/selinux/hooks.c 		return PTR_ERR(isec);
isec             3075 security/selinux/hooks.c 				  sid, isec->sid, isec->sclass, perms,
isec             3143 security/selinux/hooks.c 	struct inode_security_struct *isec;
isec             3169 security/selinux/hooks.c 	isec = backing_inode_security(dentry);
isec             3171 security/selinux/hooks.c 			  sid, isec->sid, isec->sclass,
isec             3210 security/selinux/hooks.c 			  sid, newsid, isec->sclass,
isec             3215 security/selinux/hooks.c 	rc = security_validate_transition(&selinux_state, isec->sid, newsid,
isec             3216 security/selinux/hooks.c 					  sid, isec->sclass);
isec             3233 security/selinux/hooks.c 	struct inode_security_struct *isec;
isec             3251 security/selinux/hooks.c 	isec = backing_inode_security(dentry);
isec             3252 security/selinux/hooks.c 	spin_lock(&isec->lock);
isec             3253 security/selinux/hooks.c 	isec->sclass = inode_mode_to_security_class(inode->i_mode);
isec             3254 security/selinux/hooks.c 	isec->sid = newsid;
isec             3255 security/selinux/hooks.c 	isec->initialized = LABEL_INITIALIZED;
isec             3256 security/selinux/hooks.c 	spin_unlock(&isec->lock);
isec             3346 security/selinux/hooks.c 	struct inode_security_struct *isec;
isec             3360 security/selinux/hooks.c 	isec = inode_security(inode);
isec             3363 security/selinux/hooks.c 						      isec->sid, &context,
isec             3366 security/selinux/hooks.c 		error = security_sid_to_context(&selinux_state, isec->sid,
isec             3383 security/selinux/hooks.c 	struct inode_security_struct *isec = inode_security_novalidate(inode);
isec             3402 security/selinux/hooks.c 	spin_lock(&isec->lock);
isec             3403 security/selinux/hooks.c 	isec->sclass = inode_mode_to_security_class(inode->i_mode);
isec             3404 security/selinux/hooks.c 	isec->sid = newsid;
isec             3405 security/selinux/hooks.c 	isec->initialized = LABEL_INITIALIZED;
isec             3406 security/selinux/hooks.c 	spin_unlock(&isec->lock);
isec             3420 security/selinux/hooks.c 	struct inode_security_struct *isec = inode_security_novalidate(inode);
isec             3421 security/selinux/hooks.c 	*secid = isec->sid;
isec             3539 security/selinux/hooks.c 	struct inode_security_struct *isec;
isec             3546 security/selinux/hooks.c 	isec = inode_security(inode);
isec             3547 security/selinux/hooks.c 	if (sid == fsec->sid && fsec->isid == isec->sid &&
isec             3570 security/selinux/hooks.c 	struct inode_security_struct *isec;
isec             3595 security/selinux/hooks.c 	isec = inode_security(inode);
isec             3597 security/selinux/hooks.c 				    ssid, isec->sid, isec->sclass,
isec             3857 security/selinux/hooks.c 	struct inode_security_struct *isec;
isec             3860 security/selinux/hooks.c 	isec = inode_security(file_inode(file));
isec             3868 security/selinux/hooks.c 	fsec->isid = isec->sid;
isec             3951 security/selinux/hooks.c 	struct inode_security_struct *isec = inode_security(inode);
isec             3957 security/selinux/hooks.c 			   sid, isec->sid,
isec             3963 security/selinux/hooks.c 		tsec->create_sid = isec->sid;
isec             3982 security/selinux/hooks.c 	struct inode_security_struct *isec;
isec             4006 security/selinux/hooks.c 	isec = inode_security(file_inode(file));
isec             4008 security/selinux/hooks.c 			    sid, isec->sid, SECCLASS_SYSTEM,
isec             4164 security/selinux/hooks.c 	struct inode_security_struct *isec = selinux_inode(inode);
isec             4167 security/selinux/hooks.c 	spin_lock(&isec->lock);
isec             4168 security/selinux/hooks.c 	isec->sclass = inode_mode_to_security_class(inode->i_mode);
isec             4169 security/selinux/hooks.c 	isec->sid = sid;
isec             4170 security/selinux/hooks.c 	isec->initialized = LABEL_INITIALIZED;
isec             4171 security/selinux/hooks.c 	spin_unlock(&isec->lock);
isec             4522 security/selinux/hooks.c 	struct inode_security_struct *isec = inode_security_novalidate(SOCK_INODE(sock));
isec             4534 security/selinux/hooks.c 	isec->sclass = sclass;
isec             4535 security/selinux/hooks.c 	isec->sid = sid;
isec             4536 security/selinux/hooks.c 	isec->initialized = LABEL_INITIALIZED;
isec             4814 security/selinux/hooks.c 	struct inode_security_struct *isec;
isec             4823 security/selinux/hooks.c 	isec = inode_security_novalidate(SOCK_INODE(sock));
isec             4824 security/selinux/hooks.c 	spin_lock(&isec->lock);
isec             4825 security/selinux/hooks.c 	sclass = isec->sclass;
isec             4826 security/selinux/hooks.c 	sid = isec->sid;
isec             4827 security/selinux/hooks.c 	spin_unlock(&isec->lock);
isec             5103 security/selinux/hooks.c 	struct inode_security_struct *isec;
isec             5115 security/selinux/hooks.c 		isec = inode_security_novalidate(SOCK_INODE(sock));
isec             5116 security/selinux/hooks.c 		peer_secid = isec->sid;
isec             5178 security/selinux/hooks.c 	struct inode_security_struct *isec =
isec             5184 security/selinux/hooks.c 		isec->sid = sksec->sid;
isec             5185 security/selinux/hooks.c 	sksec->sclass = isec->sclass;
isec             5911 security/selinux/hooks.c static void ipc_init_security(struct ipc_security_struct *isec, u16 sclass)
isec             5913 security/selinux/hooks.c 	isec->sclass = sclass;
isec             5914 security/selinux/hooks.c 	isec->sid = current_sid();
isec             5930 security/selinux/hooks.c 	struct ipc_security_struct *isec;
isec             5934 security/selinux/hooks.c 	isec = selinux_ipc(ipc_perms);
isec             5940 security/selinux/hooks.c 			    sid, isec->sid, isec->sclass, perms, &ad);
isec             5951 security/selinux/hooks.c 	struct ipc_security_struct *isec;
isec             5956 security/selinux/hooks.c 	isec = selinux_ipc(msq);
isec             5957 security/selinux/hooks.c 	ipc_init_security(isec, SECCLASS_MSGQ);
isec             5963 security/selinux/hooks.c 			  sid, isec->sid, SECCLASS_MSGQ,
isec             5970 security/selinux/hooks.c 	struct ipc_security_struct *isec;
isec             5974 security/selinux/hooks.c 	isec = selinux_ipc(msq);
isec             5980 security/selinux/hooks.c 			    sid, isec->sid, SECCLASS_MSGQ,
isec             6017 security/selinux/hooks.c 	struct ipc_security_struct *isec;
isec             6023 security/selinux/hooks.c 	isec = selinux_ipc(msq);
isec             6034 security/selinux/hooks.c 		rc = security_transition_sid(&selinux_state, sid, isec->sid,
isec             6045 security/selinux/hooks.c 			  sid, isec->sid, SECCLASS_MSGQ,
isec             6055 security/selinux/hooks.c 				  msec->sid, isec->sid, SECCLASS_MSGQ,
isec             6065 security/selinux/hooks.c 	struct ipc_security_struct *isec;
isec             6071 security/selinux/hooks.c 	isec = selinux_ipc(msq);
isec             6078 security/selinux/hooks.c 			  sid, isec->sid,
isec             6090 security/selinux/hooks.c 	struct ipc_security_struct *isec;
isec             6095 security/selinux/hooks.c 	isec = selinux_ipc(shp);
isec             6096 security/selinux/hooks.c 	ipc_init_security(isec, SECCLASS_SHM);
isec             6102 security/selinux/hooks.c 			  sid, isec->sid, SECCLASS_SHM,
isec             6109 security/selinux/hooks.c 	struct ipc_security_struct *isec;
isec             6113 security/selinux/hooks.c 	isec = selinux_ipc(shp);
isec             6119 security/selinux/hooks.c 			    sid, isec->sid, SECCLASS_SHM,
isec             6175 security/selinux/hooks.c 	struct ipc_security_struct *isec;
isec             6180 security/selinux/hooks.c 	isec = selinux_ipc(sma);
isec             6181 security/selinux/hooks.c 	ipc_init_security(isec, SECCLASS_SEM);
isec             6187 security/selinux/hooks.c 			  sid, isec->sid, SECCLASS_SEM,
isec             6194 security/selinux/hooks.c 	struct ipc_security_struct *isec;
isec             6198 security/selinux/hooks.c 	isec = selinux_ipc(sma);
isec             6204 security/selinux/hooks.c 			    sid, isec->sid, SECCLASS_SEM,
isec             6284 security/selinux/hooks.c 	struct ipc_security_struct *isec = selinux_ipc(ipcp);
isec             6285 security/selinux/hooks.c 	*secid = isec->sid;
isec             6511 security/selinux/hooks.c 	struct inode_security_struct *isec = selinux_inode(inode);
isec             6513 security/selinux/hooks.c 	spin_lock(&isec->lock);
isec             6514 security/selinux/hooks.c 	isec->initialized = LABEL_INVALID;
isec             6515 security/selinux/hooks.c 	spin_unlock(&isec->lock);
isec             1333 security/selinux/selinuxfs.c 	struct inode_security_struct *isec;
isec             1380 security/selinux/selinuxfs.c 		isec = selinux_inode(inode);
isec             1389 security/selinux/selinuxfs.c 		isec->sid = sid;
isec             1390 security/selinux/selinuxfs.c 		isec->initialized = LABEL_INITIALIZED;
isec             1901 security/selinux/selinuxfs.c 	struct inode_security_struct *isec;
isec             1955 security/selinux/selinuxfs.c 	isec = selinux_inode(inode);
isec             1956 security/selinux/selinuxfs.c 	isec->sid = SECINITSID_DEVNULL;
isec             1957 security/selinux/selinuxfs.c 	isec->sclass = SECCLASS_CHR_FILE;
isec             1958 security/selinux/selinuxfs.c 	isec->initialized = LABEL_INITIALIZED;