mirror of
				https://github.com/torvalds/linux.git
				synced 2025-10-31 08:38:45 +02:00 
			
		
		
		
	capability: export has_capability
has_capability() is sometimes needed by modules to test capability for specified task other than current, so export it. Cc: Kirti Wankhede <kwankhede@nvidia.com> Signed-off-by: Jike Song <jike.song@intel.com> Acked-by: Serge Hallyn <serge@hallyn.com> Acked-by: James Morris <james.l.morris@oracle.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
This commit is contained in:
		
							parent
							
								
									73da4268fd
								
							
						
					
					
						commit
						19c816e8e4
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -318,6 +318,7 @@ bool has_capability(struct task_struct *t, int cap) | |||
| { | ||||
| 	return has_ns_capability(t, &init_user_ns, cap); | ||||
| } | ||||
| EXPORT_SYMBOL(has_capability); | ||||
| 
 | ||||
| /**
 | ||||
|  * has_ns_capability_noaudit - Does a task have a capability (unaudited) | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Jike Song
						Jike Song