forked from mirrors/linux
		
	evm: fix build problems
- Make the previously missing security_old_inode_init_security() stub function definition static inline. - The stub security_inode_init_security() function previously returned -EOPNOTSUPP and relied on the callers to change it to 0. The stub security/security_old_inode_init_security() functions now return 0. Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Mimi Zohar <zohar@us.ibm.com> Signed-off-by: James Morris <jmorris@namei.org>
This commit is contained in:
		
							parent
							
								
									7d8db1808a
								
							
						
					
					
						commit
						1e39f384bb
					
				
					 1 changed files with 7 additions and 5 deletions
				
			
		| 
						 | 
					@ -2045,14 +2045,16 @@ static inline int security_inode_init_security(struct inode *inode,
 | 
				
			||||||
						initxattrs initxattrs,
 | 
											initxattrs initxattrs,
 | 
				
			||||||
						void *fs_data)
 | 
											void *fs_data)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	return -EOPNOTSUPP;
 | 
						return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int security_old_inode_init_security(struct inode *inode, struct inode *dir,
 | 
					static inline int security_old_inode_init_security(struct inode *inode,
 | 
				
			||||||
				     const struct qstr *qstr, char **name,
 | 
											   struct inode *dir,
 | 
				
			||||||
				     void **value, size_t *len)
 | 
											   const struct qstr *qstr,
 | 
				
			||||||
 | 
											   char **name, void **value,
 | 
				
			||||||
 | 
											   size_t *len)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	return -EOPNOTSUPP;
 | 
						return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static inline int security_inode_create(struct inode *dir,
 | 
					static inline int security_inode_create(struct inode *dir,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue