~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/security/keys/compat.c

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /security/keys/compat.c (Version linux-6.11-rc3) and /security/keys/compat.c (Version linux-2.4.37.11)


  1 // SPDX-License-Identifier: GPL-2.0-or-later        1 
  2 /* 32-bit compatibility syscall for 64-bit sys    
  3  *                                                
  4  * Copyright (C) 2004-5 Red Hat, Inc. All Righ    
  5  * Written by David Howells (dhowells@redhat.c    
  6  */                                               
  7                                                   
  8 #include <linux/syscalls.h>                       
  9 #include <linux/keyctl.h>                         
 10 #include <linux/compat.h>                         
 11 #include <linux/slab.h>                           
 12 #include "internal.h"                             
 13                                                   
 14 /*                                                
 15  * The key control system call, 32-bit compati    
 16  */                                               
 17 COMPAT_SYSCALL_DEFINE5(keyctl, u32, option,       
 18                        u32, arg2, u32, arg3, u    
 19 {                                                 
 20         switch (option) {                         
 21         case KEYCTL_GET_KEYRING_ID:               
 22                 return keyctl_get_keyring_ID(a    
 23                                                   
 24         case KEYCTL_JOIN_SESSION_KEYRING:         
 25                 return keyctl_join_session_key    
 26                                                   
 27         case KEYCTL_UPDATE:                       
 28                 return keyctl_update_key(arg2,    
 29                                                   
 30         case KEYCTL_REVOKE:                       
 31                 return keyctl_revoke_key(arg2)    
 32                                                   
 33         case KEYCTL_DESCRIBE:                     
 34                 return keyctl_describe_key(arg    
 35                                                   
 36         case KEYCTL_CLEAR:                        
 37                 return keyctl_keyring_clear(ar    
 38                                                   
 39         case KEYCTL_LINK:                         
 40                 return keyctl_keyring_link(arg    
 41                                                   
 42         case KEYCTL_UNLINK:                       
 43                 return keyctl_keyring_unlink(a    
 44                                                   
 45         case KEYCTL_SEARCH:                       
 46                 return keyctl_keyring_search(a    
 47                                              c    
 48                                                   
 49         case KEYCTL_READ:                         
 50                 return keyctl_read_key(arg2, c    
 51                                                   
 52         case KEYCTL_CHOWN:                        
 53                 return keyctl_chown_key(arg2,     
 54                                                   
 55         case KEYCTL_SETPERM:                      
 56                 return keyctl_setperm_key(arg2    
 57                                                   
 58         case KEYCTL_INSTANTIATE:                  
 59                 return keyctl_instantiate_key(    
 60                                                   
 61                                                   
 62         case KEYCTL_NEGATE:                       
 63                 return keyctl_negate_key(arg2,    
 64                                                   
 65         case KEYCTL_SET_REQKEY_KEYRING:           
 66                 return keyctl_set_reqkey_keyri    
 67                                                   
 68         case KEYCTL_SET_TIMEOUT:                  
 69                 return keyctl_set_timeout(arg2    
 70                                                   
 71         case KEYCTL_ASSUME_AUTHORITY:             
 72                 return keyctl_assume_authority    
 73                                                   
 74         case KEYCTL_GET_SECURITY:                 
 75                 return keyctl_get_security(arg    
 76                                                   
 77         case KEYCTL_SESSION_TO_PARENT:            
 78                 return keyctl_session_to_paren    
 79                                                   
 80         case KEYCTL_REJECT:                       
 81                 return keyctl_reject_key(arg2,    
 82                                                   
 83         case KEYCTL_INSTANTIATE_IOV:              
 84                 return keyctl_instantiate_key_    
 85                                                   
 86                                                   
 87         case KEYCTL_INVALIDATE:                   
 88                 return keyctl_invalidate_key(a    
 89                                                   
 90         case KEYCTL_GET_PERSISTENT:               
 91                 return keyctl_get_persistent(a    
 92                                                   
 93         case KEYCTL_DH_COMPUTE:                   
 94                 return compat_keyctl_dh_comput    
 95                                                   
 96                                                   
 97                                                   
 98         case KEYCTL_RESTRICT_KEYRING:             
 99                 return keyctl_restrict_keyring    
100                                                   
101                                                   
102         case KEYCTL_PKEY_QUERY:                   
103                 if (arg3 != 0)                    
104                         return -EINVAL;           
105                 return keyctl_pkey_query(arg2,    
106                                          compa    
107                                          compa    
108                                                   
109         case KEYCTL_PKEY_ENCRYPT:                 
110         case KEYCTL_PKEY_DECRYPT:                 
111         case KEYCTL_PKEY_SIGN:                    
112                 return keyctl_pkey_e_d_s(optio    
113                                          compa    
114                                          compa    
115                                                   
116         case KEYCTL_PKEY_VERIFY:                  
117                 return keyctl_pkey_verify(comp    
118                                           comp    
119                                                   
120         case KEYCTL_MOVE:                         
121                 return keyctl_keyring_move(arg    
122                                                   
123         case KEYCTL_CAPABILITIES:                 
124                 return keyctl_capabilities(com    
125                                                   
126         case KEYCTL_WATCH_KEY:                    
127                 return keyctl_watch_key(arg2,     
128                                                   
129         default:                                  
130                 return -EOPNOTSUPP;               
131         }                                         
132 }                                                 
133                                                   

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php