Dmitry V. Levin | 38a34c9 | 2015-12-17 17:56:48 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2014-2015 Dmitry V. Levin <ldv@altlinux.org> |
| 3 | * All rights reserved. |
| 4 | * |
| 5 | * Redistribution and use in source and binary forms, with or without |
| 6 | * modification, are permitted provided that the following conditions |
| 7 | * are met: |
| 8 | * 1. Redistributions of source code must retain the above copyright |
| 9 | * notice, this list of conditions and the following disclaimer. |
| 10 | * 2. Redistributions in binary form must reproduce the above copyright |
| 11 | * notice, this list of conditions and the following disclaimer in the |
| 12 | * documentation and/or other materials provided with the distribution. |
| 13 | * 3. The name of the author may not be used to endorse or promote products |
| 14 | * derived from this software without specific prior written permission. |
| 15 | * |
| 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
| 17 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
| 18 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
| 19 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, |
| 20 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
| 21 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 22 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 23 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 25 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 | */ |
| 27 | |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 28 | #include "defs.h" |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 29 | |
| 30 | typedef int32_t key_serial_t; |
| 31 | |
Dmitry V. Levin | 0ed617b | 2014-04-25 23:30:54 +0000 | [diff] [blame] | 32 | #include "xlat/key_spec.h" |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 33 | |
| 34 | static void |
| 35 | print_keyring_serial_number(key_serial_t id) |
| 36 | { |
| 37 | const char *str = xlookup(key_spec, id); |
| 38 | |
| 39 | if (str) |
| 40 | tprints(str); |
| 41 | else |
| 42 | tprintf("%d", id); |
| 43 | } |
| 44 | |
Dmitry V. Levin | a0bd374 | 2015-04-07 01:36:50 +0000 | [diff] [blame] | 45 | SYS_FUNC(add_key) |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 46 | { |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 47 | /* type */ |
| 48 | printstr(tcp, tcp->u_arg[0], -1); |
| 49 | /* description */ |
| 50 | tprints(", "); |
| 51 | printstr(tcp, tcp->u_arg[1], -1); |
| 52 | /* payload */ |
| 53 | tprints(", "); |
| 54 | printstr(tcp, tcp->u_arg[2], tcp->u_arg[3]); |
| 55 | /* payload length */ |
| 56 | tprintf(", %lu, ", tcp->u_arg[3]); |
| 57 | /* keyring serial number */ |
| 58 | print_keyring_serial_number(tcp->u_arg[4]); |
| 59 | |
| 60 | return RVAL_DECODED; |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 61 | } |
| 62 | |
Dmitry V. Levin | a0bd374 | 2015-04-07 01:36:50 +0000 | [diff] [blame] | 63 | SYS_FUNC(request_key) |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 64 | { |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 65 | /* type */ |
| 66 | printstr(tcp, tcp->u_arg[0], -1); |
| 67 | /* description */ |
| 68 | tprints(", "); |
| 69 | printstr(tcp, tcp->u_arg[1], -1); |
| 70 | /* callout_info */ |
| 71 | tprints(", "); |
| 72 | printstr(tcp, tcp->u_arg[2], -1); |
| 73 | /* keyring serial number */ |
| 74 | tprints(", "); |
| 75 | print_keyring_serial_number(tcp->u_arg[3]); |
| 76 | |
| 77 | return RVAL_DECODED; |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 78 | } |
| 79 | |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 80 | static void |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 81 | keyctl_get_keyring_id(struct tcb *tcp, key_serial_t id, int create) |
| 82 | { |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 83 | print_keyring_serial_number(id); |
| 84 | tprintf(", %d", create); |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 85 | } |
| 86 | |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 87 | static void |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 88 | keyctl_update_key(struct tcb *tcp, key_serial_t id, long addr, long len) |
| 89 | { |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 90 | print_keyring_serial_number(id); |
| 91 | tprints(", "); |
| 92 | printstr(tcp, addr, len); |
| 93 | tprintf(", %lu", len); |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 94 | } |
| 95 | |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 96 | static void |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 97 | keyctl_handle_key_key(struct tcb *tcp, key_serial_t id1, key_serial_t id2) |
| 98 | { |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 99 | print_keyring_serial_number(id1); |
| 100 | tprints(", "); |
| 101 | print_keyring_serial_number(id2); |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 102 | } |
| 103 | |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 104 | static void |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 105 | keyctl_read_key(struct tcb *tcp, key_serial_t id, long addr, long len) |
| 106 | { |
| 107 | if (entering(tcp)) { |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 108 | print_keyring_serial_number(id); |
| 109 | tprints(", "); |
| 110 | } else { |
Dmitry V. Levin | 5f6ca3d | 2015-07-20 00:26:23 +0000 | [diff] [blame] | 111 | if (syserror(tcp)) |
| 112 | printaddr(addr); |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 113 | else { |
| 114 | long rval = tcp->u_rval > len ? |
| 115 | len : (tcp->u_rval ? -1 : 0); |
| 116 | printstr(tcp, addr, rval); |
| 117 | } |
| 118 | tprintf(", %lu", len); |
| 119 | } |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 120 | } |
| 121 | |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 122 | static void |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 123 | keyctl_keyring_search(struct tcb *tcp, key_serial_t id1, long addr1, |
| 124 | long addr2, key_serial_t id2) |
| 125 | { |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 126 | print_keyring_serial_number(id1); |
| 127 | tprints(", "); |
| 128 | printstr(tcp, addr1, -1); |
| 129 | tprints(", "); |
| 130 | printstr(tcp, addr2, -1); |
| 131 | tprints(", "); |
| 132 | print_keyring_serial_number(id2); |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 133 | } |
| 134 | |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 135 | static void |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 136 | keyctl_chown_key(struct tcb *tcp, key_serial_t id, int user, int group) |
| 137 | { |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 138 | print_keyring_serial_number(id); |
| 139 | tprintf(", %d, %d", user, group); |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 140 | } |
| 141 | |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 142 | static void |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 143 | keyctl_instantiate_key(struct tcb *tcp, key_serial_t id1, long addr, |
| 144 | long len, key_serial_t id2) |
| 145 | { |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 146 | print_keyring_serial_number(id1); |
| 147 | tprints(", "); |
| 148 | printstr(tcp, addr, len); |
| 149 | tprintf(", %lu, ", len); |
| 150 | print_keyring_serial_number(id2); |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 151 | } |
| 152 | |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 153 | static void |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 154 | keyctl_instantiate_key_iov(struct tcb *tcp, key_serial_t id1, |
| 155 | long addr, long len, key_serial_t id2) |
| 156 | { |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 157 | print_keyring_serial_number(id1); |
| 158 | tprints(", "); |
| 159 | tprint_iov(tcp, len, addr, 1); |
| 160 | tprintf(", %lu, ", len); |
| 161 | print_keyring_serial_number(id2); |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 162 | } |
| 163 | |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 164 | static void |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 165 | keyctl_negate_key(struct tcb *tcp, key_serial_t id1, unsigned timeout, |
| 166 | key_serial_t id2) |
| 167 | { |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 168 | print_keyring_serial_number(id1); |
| 169 | tprintf(", %u, ", timeout); |
| 170 | print_keyring_serial_number(id2); |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 171 | } |
| 172 | |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 173 | static void |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 174 | keyctl_reject_key(struct tcb *tcp, key_serial_t id1, unsigned timeout, |
| 175 | unsigned error, key_serial_t id2) |
| 176 | { |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 177 | print_keyring_serial_number(id1); |
| 178 | tprintf(", %u, %u, ", timeout, error); |
| 179 | print_keyring_serial_number(id2); |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 180 | } |
| 181 | |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 182 | static void |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 183 | keyctl_set_timeout(struct tcb *tcp, key_serial_t id, unsigned timeout) |
| 184 | { |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 185 | print_keyring_serial_number(id); |
| 186 | tprintf(", %u", timeout); |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 187 | } |
| 188 | |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 189 | static void |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 190 | keyctl_get_persistent(struct tcb *tcp, int uid, key_serial_t id) |
| 191 | { |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 192 | tprintf("%d, ", uid); |
| 193 | print_keyring_serial_number(id); |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 194 | } |
| 195 | |
Dmitry V. Levin | 0ed617b | 2014-04-25 23:30:54 +0000 | [diff] [blame] | 196 | #include "xlat/key_perms.h" |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 197 | |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 198 | static void |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 199 | keyctl_setperm_key(struct tcb *tcp, key_serial_t id, uint32_t perm) |
| 200 | { |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 201 | print_keyring_serial_number(id); |
| 202 | tprints(", "); |
| 203 | printflags(key_perms, perm, "KEY_???"); |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 204 | } |
| 205 | |
Dmitry V. Levin | 0ed617b | 2014-04-25 23:30:54 +0000 | [diff] [blame] | 206 | #include "xlat/key_reqkeys.h" |
Dmitry V. Levin | 0ed617b | 2014-04-25 23:30:54 +0000 | [diff] [blame] | 207 | #include "xlat/keyctl_commands.h" |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 208 | |
Dmitry V. Levin | a0bd374 | 2015-04-07 01:36:50 +0000 | [diff] [blame] | 209 | SYS_FUNC(keyctl) |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 210 | { |
| 211 | int cmd = tcp->u_arg[0]; |
| 212 | |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 213 | if (entering(tcp)) { |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 214 | printxval(keyctl_commands, cmd, "KEYCTL_???"); |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 215 | tprints(", "); |
| 216 | } |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 217 | |
| 218 | switch (cmd) { |
| 219 | case KEYCTL_GET_KEYRING_ID: |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 220 | keyctl_get_keyring_id(tcp, tcp->u_arg[1], tcp->u_arg[2]); |
| 221 | break; |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 222 | |
| 223 | case KEYCTL_JOIN_SESSION_KEYRING: |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 224 | printstr(tcp, tcp->u_arg[1], -1); |
| 225 | break; |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 226 | |
| 227 | case KEYCTL_UPDATE: |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 228 | keyctl_update_key(tcp, tcp->u_arg[1], |
| 229 | tcp->u_arg[2], tcp->u_arg[3]); |
| 230 | break; |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 231 | |
| 232 | case KEYCTL_REVOKE: |
| 233 | case KEYCTL_CLEAR: |
| 234 | case KEYCTL_INVALIDATE: |
| 235 | case KEYCTL_ASSUME_AUTHORITY: |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 236 | print_keyring_serial_number(tcp->u_arg[1]); |
| 237 | break; |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 238 | |
| 239 | case KEYCTL_LINK: |
| 240 | case KEYCTL_UNLINK: |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 241 | keyctl_handle_key_key(tcp, tcp->u_arg[1], tcp->u_arg[2]); |
| 242 | break; |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 243 | |
| 244 | case KEYCTL_DESCRIBE: |
| 245 | case KEYCTL_READ: |
| 246 | case KEYCTL_GET_SECURITY: |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 247 | keyctl_read_key(tcp, tcp->u_arg[1], |
| 248 | tcp->u_arg[2], tcp->u_arg[3]); |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 249 | return 0; |
| 250 | |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 251 | case KEYCTL_SEARCH: |
| 252 | keyctl_keyring_search(tcp, tcp->u_arg[1], tcp->u_arg[2], |
| 253 | tcp->u_arg[3], tcp->u_arg[4]); |
| 254 | break; |
| 255 | |
| 256 | case KEYCTL_CHOWN: |
| 257 | keyctl_chown_key(tcp, tcp->u_arg[1], |
| 258 | tcp->u_arg[2], tcp->u_arg[3]); |
| 259 | break; |
| 260 | |
| 261 | case KEYCTL_SETPERM: |
| 262 | keyctl_setperm_key(tcp, tcp->u_arg[1], tcp->u_arg[2]); |
| 263 | break; |
| 264 | |
| 265 | case KEYCTL_INSTANTIATE: |
| 266 | keyctl_instantiate_key(tcp, tcp->u_arg[1], tcp->u_arg[2], |
| 267 | tcp->u_arg[3], tcp->u_arg[4]); |
| 268 | break; |
| 269 | |
| 270 | case KEYCTL_NEGATE: |
| 271 | keyctl_negate_key(tcp, tcp->u_arg[1], |
| 272 | tcp->u_arg[2], tcp->u_arg[3]); |
| 273 | break; |
| 274 | |
| 275 | case KEYCTL_SET_REQKEY_KEYRING: |
| 276 | printxval(key_reqkeys, tcp->u_arg[1], "KEY_REQKEY_DEFL_???"); |
| 277 | break; |
| 278 | |
| 279 | case KEYCTL_SET_TIMEOUT: |
| 280 | keyctl_set_timeout(tcp, tcp->u_arg[1], tcp->u_arg[2]); |
| 281 | break; |
| 282 | |
| 283 | case KEYCTL_SESSION_TO_PARENT: |
| 284 | break; |
| 285 | |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 286 | case KEYCTL_REJECT: |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 287 | keyctl_reject_key(tcp, tcp->u_arg[1], tcp->u_arg[2], |
| 288 | tcp->u_arg[3], tcp->u_arg[4]); |
| 289 | break; |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 290 | |
| 291 | case KEYCTL_INSTANTIATE_IOV: |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 292 | keyctl_instantiate_key_iov(tcp, tcp->u_arg[1], |
| 293 | tcp->u_arg[2], tcp->u_arg[3], |
| 294 | tcp->u_arg[4]); |
| 295 | break; |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 296 | |
| 297 | case KEYCTL_GET_PERSISTENT: |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 298 | keyctl_get_persistent(tcp, tcp->u_arg[1], tcp->u_arg[2]); |
| 299 | break; |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 300 | |
| 301 | default: |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 302 | tprintf("%#lx, %#lx, %#lx, %#lx", |
| 303 | tcp->u_arg[1], tcp->u_arg[2], |
| 304 | tcp->u_arg[3], tcp->u_arg[4]); |
| 305 | break; |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 306 | } |
| 307 | |
Dmitry V. Levin | 4eef291 | 2015-07-20 00:48:49 +0000 | [diff] [blame] | 308 | return RVAL_DECODED; |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 309 | } |