db_process.c 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659
  1. /* -*- mode:c; c-file-style:"k&r"; c-basic-offset: 4; tab-width:4; indent-tabs-mode:nil; mode:auto-fill; fill-column:78; -*- */
  2. /* vim: set ts=4 sw=4 et tw=78 fo=cqt wm=0: */
  3. /* Copyright (C) 2014 OSCAR lab, Stony Brook University
  4. This file is part of Graphene Library OS.
  5. Graphene Library OS is free software: you can redistribute it and/or
  6. modify it under the terms of the GNU General Public License
  7. as published by the Free Software Foundation, either version 3 of the
  8. License, or (at your option) any later version.
  9. Graphene Library OS is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  15. /*
  16. * db_process.c
  17. *
  18. * This source file contains functions to create a child process and terminate
  19. * the running process. Child does not inherit any objects or memory from its
  20. * parent pricess. A Parent process may not modify the execution of its
  21. * children. It can wait for a child to exit using its handle. Also, parent and
  22. * child may communicate through I/O streams provided by the parent to the child
  23. * at creation.
  24. */
  25. #include "pal_defs.h"
  26. #include "pal_linux_defs.h"
  27. #include "pal.h"
  28. #include "pal_internal.h"
  29. #include "pal_linux.h"
  30. #include "pal_debug.h"
  31. #include "pal_error.h"
  32. #include "pal_security.h"
  33. #include "graphene.h"
  34. #include "graphene-ipc.h"
  35. #include "api.h"
  36. #include <linux/sched.h>
  37. #include <linux/types.h>
  38. typedef __kernel_pid_t pid_t;
  39. #include <asm/fcntl.h>
  40. #include <sys/socket.h>
  41. #include <asm/errno.h>
  42. #ifndef SEEK_SET
  43. # define SEEK_SET 0
  44. #endif
  45. static inline int create_process_handle (PAL_HANDLE * parent,
  46. PAL_HANDLE * child)
  47. {
  48. PAL_HANDLE phdl = NULL, chdl = NULL;
  49. int fds[6] = { -1, -1, -1, -1, -1, -1 };
  50. int ret;
  51. if (IS_ERR((ret = INLINE_SYSCALL(pipe2, 2, &fds[0], O_CLOEXEC))) ||
  52. IS_ERR((ret = INLINE_SYSCALL(pipe2, 2, &fds[2], O_CLOEXEC))) ||
  53. IS_ERR((ret = INLINE_SYSCALL(socketpair, 4, AF_UNIX,
  54. SOCK_STREAM|SOCK_CLOEXEC,
  55. 0, &fds[4])))) {
  56. ret = -PAL_ERROR_DENIED;
  57. goto out;
  58. }
  59. int proc_fds[2][3] = {
  60. { fds[0], fds[3], fds[4] },
  61. { fds[2], fds[1], fds[5] },
  62. };
  63. phdl = malloc(HANDLE_SIZE(process));
  64. if (!phdl) {
  65. ret = -PAL_ERROR_NOMEM;
  66. goto out;
  67. }
  68. SET_HANDLE_TYPE(phdl, process);
  69. phdl->__in.flags |= RFD(0)|WFD(1)|RFD(2)|WFD(2)|WRITEABLE(1)|WRITEABLE(2);
  70. phdl->process.stream_in = proc_fds[0][0];
  71. phdl->process.stream_out = proc_fds[0][1];
  72. phdl->process.cargo = proc_fds[0][2];
  73. phdl->process.pid = linux_state.pid;
  74. phdl->process.nonblocking = PAL_FALSE;
  75. chdl = malloc(HANDLE_SIZE(process));
  76. if (!chdl) {
  77. ret = -PAL_ERROR_NOMEM;
  78. goto out;
  79. }
  80. SET_HANDLE_TYPE(chdl, process);
  81. chdl->__in.flags |= RFD(0)|WFD(1)|RFD(2)|WFD(2)|WRITEABLE(1)|WRITEABLE(2);
  82. chdl->process.stream_in = proc_fds[1][0];
  83. chdl->process.stream_out = proc_fds[1][1];
  84. chdl->process.cargo = proc_fds[1][2];
  85. chdl->process.pid = 0; /* unknown yet */
  86. chdl->process.nonblocking = PAL_FALSE;
  87. *parent = phdl;
  88. *child = chdl;
  89. ret = 0;
  90. out:
  91. if (ret < 0) {
  92. if (phdl)
  93. _DkObjectClose(phdl);
  94. if (chdl)
  95. _DkObjectClose(chdl);
  96. for (int i = 0 ; i < 6 ; i++)
  97. if (fds[i] != -1)
  98. INLINE_SYSCALL(close, 1, fds[i]);
  99. }
  100. return ret;
  101. }
  102. struct proc_param {
  103. PAL_HANDLE parent;
  104. PAL_HANDLE exec;
  105. PAL_HANDLE manifest;
  106. const char ** argv;
  107. };
  108. struct proc_args {
  109. PAL_NUM parent_process_id;
  110. struct pal_sec pal_sec;
  111. #if PROFILING == 1
  112. unsigned long process_create_time;
  113. #endif
  114. unsigned long memory_quota;
  115. unsigned int parent_data_size;
  116. unsigned int exec_data_size;
  117. unsigned int manifest_data_size;
  118. };
  119. static int child_process (void * param)
  120. {
  121. struct proc_param * proc_param = param;
  122. int ret;
  123. INLINE_SYSCALL(close, 1, PROC_INIT_FD);
  124. ret = INLINE_SYSCALL(dup2, 2, proc_param->parent->process.stream_in,
  125. PROC_INIT_FD);
  126. if (IS_ERR(ret))
  127. goto failed;
  128. if (proc_param->parent)
  129. handle_set_cloexec(proc_param->parent, false);
  130. if (proc_param->exec)
  131. handle_set_cloexec(proc_param->exec, false);
  132. if (proc_param->manifest)
  133. handle_set_cloexec(proc_param->manifest, false);
  134. INLINE_SYSCALL(execve, 3, PAL_LOADER, proc_param->argv,
  135. linux_state.environ);
  136. ret = -PAL_ERROR_DENIED;
  137. failed:
  138. /* fail is it gets here */
  139. return ret;
  140. }
  141. int _DkProcessCreate (PAL_HANDLE * handle,
  142. const char * uri, int flags, const char ** args)
  143. {
  144. PAL_HANDLE exec = NULL, exec_file = NULL;
  145. PAL_HANDLE parent_handle = NULL, child_handle = NULL;
  146. int ret;
  147. #if PROFILING == 1
  148. unsigned long before_create = _DkSystemTimeQuery();
  149. #endif
  150. /* step 1: open uri and check whether it is an executable */
  151. if (uri) {
  152. if ((ret = _DkStreamOpen(&exec, uri, PAL_ACCESS_RDONLY, 0, 0, 0)) < 0)
  153. return ret;
  154. ret = _DkStreamFile(exec, &exec_file);
  155. if (ret < 0)
  156. goto out;
  157. _DkObjectClose(exec);
  158. exec = NULL;
  159. if (check_elf_object(exec_file) < 0) {
  160. ret = -PAL_ERROR_INVAL;
  161. goto out;
  162. }
  163. handle_set_cloexec(exec_file, true);
  164. }
  165. /* step 2: create parant and child process handle */
  166. struct proc_param param;
  167. ret = create_process_handle(&parent_handle, &child_handle);
  168. if (ret < 0)
  169. goto out;
  170. param.parent = parent_handle;
  171. param.exec = exec_file;
  172. param.manifest = pal_state.manifest_handle;
  173. /* step 3: compose process parameter */
  174. int parent_datasz = 0, exec_datasz = 0, manifest_datasz = 0;
  175. void * parent_data = NULL;
  176. void * exec_data = NULL;
  177. void * manifest_data = NULL;
  178. ret = handle_serialize(parent_handle, &parent_data);
  179. if (ret < 0)
  180. goto out;
  181. parent_datasz = ret;
  182. if (exec_file) {
  183. ret = handle_serialize(exec_file, &exec_data);
  184. if (ret < 0) {
  185. free(parent_data);
  186. goto out;
  187. }
  188. exec_datasz = ret;
  189. }
  190. if (pal_state.manifest_handle) {
  191. ret = handle_serialize(pal_state.manifest_handle, &manifest_data);
  192. if (ret < 0) {
  193. free(parent_data);
  194. free(exec_data);
  195. goto out;
  196. }
  197. manifest_datasz = ret;
  198. }
  199. unsigned int datasz = parent_datasz + exec_datasz + manifest_datasz;
  200. struct proc_args * proc_args =
  201. __alloca(sizeof(struct proc_args) + datasz);
  202. proc_args->parent_process_id = linux_state.parent_process_id;
  203. memcpy(&proc_args->pal_sec, &pal_sec, sizeof(struct pal_sec));
  204. proc_args->pal_sec._dl_debug_state = NULL;
  205. proc_args->pal_sec._r_debug = NULL;
  206. proc_args->memory_quota = linux_state.memory_quota;
  207. void * data = (void *) (proc_args + 1);
  208. memcpy(data, parent_data, parent_datasz);
  209. data += (proc_args->parent_data_size = parent_datasz);
  210. free(parent_data);
  211. if (exec_data) {
  212. memcpy(data, exec_data, exec_datasz);
  213. data += (proc_args->exec_data_size = exec_datasz);
  214. free(exec_data);
  215. } else {
  216. proc_args->exec_data_size = 0;
  217. }
  218. if (manifest_data) {
  219. memcpy(data, manifest_data, manifest_datasz);
  220. data += (proc_args->manifest_data_size = manifest_datasz);
  221. free(manifest_data);
  222. } else {
  223. proc_args->manifest_data_size = 0;
  224. }
  225. /* step 4: create a child thread which will execve in the future */
  226. /* the first arguement must be the PAL */
  227. int argc = 0;
  228. if (args)
  229. for (; args[argc] ; argc++);
  230. param.argv = __alloca(sizeof(const char *) * (argc + 2));
  231. param.argv[0] = PAL_LOADER;
  232. if (args)
  233. memcpy(&param.argv[1], args, sizeof(const char *) * argc);
  234. param.argv[argc + 1] = NULL;
  235. #if PROFILING == 1
  236. proc_args->process_create_time = before_create;
  237. #endif
  238. ret = ARCH_VFORK();
  239. int child_ret = 0;
  240. if (IS_ERR(ret)) {
  241. ret = -PAL_ERROR_DENIED;
  242. goto out;
  243. }
  244. if (!ret) {
  245. child_ret = child_process(&param);
  246. return 0;
  247. }
  248. if (child_ret < 0) {
  249. ret = child_ret;
  250. goto out;
  251. }
  252. proc_args->pal_sec.current_pid = ret;
  253. child_handle->process.pid = ret;
  254. /* step 4: send parameters over the process handle */
  255. ret = INLINE_SYSCALL(write, 3,
  256. child_handle->process.stream_out,
  257. proc_args,
  258. sizeof(struct proc_args) + datasz);
  259. if (IS_ERR(ret) ||
  260. ret < sizeof(struct proc_args) + datasz) {
  261. ret = -PAL_ERROR_DENIED;
  262. goto out;
  263. }
  264. *handle = child_handle;
  265. ret = 0;
  266. out:
  267. if (parent_handle)
  268. _DkObjectClose(parent_handle);
  269. if (exec)
  270. _DkObjectClose(exec);
  271. if (exec_file)
  272. _DkObjectClose(exec_file);
  273. if (ret < 0) {
  274. if (child_handle)
  275. _DkObjectClose(child_handle);
  276. }
  277. return ret;
  278. }
  279. void init_child_process (PAL_HANDLE * parent_handle,
  280. PAL_HANDLE * exec_handle,
  281. PAL_HANDLE * manifest_handle)
  282. {
  283. int ret = 0;
  284. /* try to do a very large reading, so it doesn't have to be read for the
  285. second time */
  286. struct proc_args * proc_args = __alloca(sizeof(struct proc_args));
  287. struct proc_args * new_proc_args;
  288. int bytes = INLINE_SYSCALL(read, 3, PROC_INIT_FD, proc_args,
  289. sizeof(*proc_args));
  290. if (IS_ERR(bytes)) {
  291. if (ERRNO(bytes) != EBADF)
  292. init_fail(PAL_ERROR_DENIED, "communication fail with parent");
  293. /* in the first process */
  294. /* occupy PROC_INIT_FD so no one will use it */
  295. INLINE_SYSCALL(dup2, 2, 0, PROC_INIT_FD);
  296. return;
  297. }
  298. /* a child must have parent handle and an executable */
  299. if (!proc_args->parent_data_size)
  300. init_fail(PAL_ERROR_INVAL, "invalid process created");
  301. int datasz = proc_args->parent_data_size + proc_args->exec_data_size +
  302. proc_args->manifest_data_size;
  303. if (!datasz)
  304. goto no_data;
  305. new_proc_args = __alloca(sizeof(*proc_args) + datasz);
  306. memcpy(new_proc_args, proc_args, sizeof(*proc_args));
  307. proc_args = new_proc_args;
  308. void * data = (void *) (proc_args + 1);
  309. bytes = INLINE_SYSCALL(read, 3, PROC_INIT_FD, data, datasz);
  310. if (IS_ERR(bytes))
  311. init_fail(PAL_ERROR_DENIED, "communication fail with parent");
  312. /* now deserialize the parent_handle */
  313. PAL_HANDLE parent = NULL;
  314. ret = handle_deserialize(&parent, data, proc_args->parent_data_size);
  315. if (ret < 0)
  316. init_fail(-ret, "cannot deseilaize parent process handle");
  317. data += proc_args->parent_data_size;
  318. *parent_handle = parent;
  319. /* occupy PROC_INIT_FD so no one will use it */
  320. INLINE_SYSCALL(dup2, 2, 0, PROC_INIT_FD);
  321. /* deserialize the executable handle */
  322. if (proc_args->exec_data_size) {
  323. PAL_HANDLE exec = NULL;
  324. ret = handle_deserialize(&exec, data,
  325. proc_args->exec_data_size);
  326. if (ret < 0)
  327. init_fail(-ret, "cannot deserialize executable handle");
  328. data += proc_args->exec_data_size;
  329. *exec_handle = exec;
  330. }
  331. /* deserialize the manifest handle, if there is one */
  332. if (proc_args->manifest_data_size) {
  333. PAL_HANDLE manifest = NULL;
  334. ret = handle_deserialize(&manifest, data,
  335. proc_args->manifest_data_size);
  336. if (ret < 0)
  337. init_fail(-ret, "cannot deserialize manifest handle");
  338. data += proc_args->manifest_data_size;
  339. *manifest_handle = manifest;
  340. }
  341. no_data:
  342. linux_state.parent_process_id = proc_args->parent_process_id;
  343. linux_state.memory_quota = proc_args->memory_quota;
  344. #if PROFILING == 1
  345. pal_state.process_create_time = proc_args->process_create_time;
  346. #endif
  347. memcpy(&pal_sec, &proc_args->pal_sec, sizeof(struct pal_sec));
  348. }
  349. void _DkProcessExit (int exitcode)
  350. {
  351. INLINE_SYSCALL(exit_group, 1, exitcode);
  352. }
  353. int ioctl_set_graphene (struct config_store * config, int ndefault,
  354. const struct graphene_user_policy * default_policies);
  355. static int set_graphene_task (const char * uri, int flags)
  356. {
  357. PAL_HANDLE handle = NULL;
  358. int ret;
  359. if ((ret = _DkStreamOpen(&handle, uri, PAL_ACCESS_RDONLY, 0, 0, 0)) < 0)
  360. return ret;
  361. PAL_STREAM_ATTR attr;
  362. if ((ret = _DkStreamAttributesQuerybyHandle(handle, &attr)) < 0)
  363. goto out;
  364. void * addr = NULL;
  365. size_t size = attr.pending_size;
  366. if ((ret = _DkStreamMap(handle, &addr, PAL_PROT_READ, 0,
  367. ALLOC_ALIGNUP(size))) < 0)
  368. goto out;
  369. struct config_store sandbox_config;
  370. sandbox_config.raw_data = addr;
  371. sandbox_config.raw_size = size;
  372. sandbox_config.malloc = malloc;
  373. sandbox_config.free = free;
  374. if ((ret = read_config(&sandbox_config, NULL, NULL)) < 0)
  375. goto out_mem;
  376. struct graphene_user_policy policies[5], * p = policies;
  377. if (!memcmp(uri, "file:", 5)) {
  378. p->type = GRAPHENE_FS_PATH | GRAPHENE_FS_READ;
  379. p->value = &uri[5];
  380. p++;
  381. }
  382. if (flags & PAL_SANDBOX_PIPE) {
  383. p->type = GRAPHENE_UNIX_PREFIX;
  384. p->value = &pal_sec.pipe_prefix;
  385. p++;
  386. p->type = GRAPHENE_MCAST_PORT;
  387. p->value = &pal_sec.mcast_port;
  388. p++;
  389. }
  390. p->type = GRAPHENE_FS_PATH | GRAPHENE_FS_READ;
  391. p->value = "/proc/meminfo";
  392. p++;
  393. ret = ioctl_set_graphene(&sandbox_config, p - policies, policies);
  394. if (ret < 0)
  395. goto out_mem;
  396. pal_state.manifest = uri;
  397. _DkObjectClose(pal_state.manifest_handle);
  398. pal_state.manifest_handle = handle;
  399. free_config(&sandbox_config);
  400. out_mem:
  401. _DkStreamUnmap(sandbox_config.raw_data,
  402. ALLOC_ALIGNUP(sandbox_config.raw_size));
  403. out:
  404. _DkObjectClose(handle);
  405. return ret;
  406. }
  407. int _DkProcessSandboxCreate (const char * manifest, int flags)
  408. {
  409. return set_graphene_task(manifest, flags);
  410. }
  411. static int proc_read (PAL_HANDLE handle, int offset, int count,
  412. void * buffer)
  413. {
  414. int bytes = INLINE_SYSCALL(read, 3, handle->process.stream_in, buffer,
  415. count);
  416. if (IS_ERR(bytes))
  417. switch(ERRNO(bytes)) {
  418. case EWOULDBLOCK:
  419. return-PAL_ERROR_TRYAGAIN;
  420. case EINTR:
  421. return -PAL_ERROR_INTERRUPTED;
  422. default:
  423. return -PAL_ERROR_DENIED;
  424. }
  425. return bytes;
  426. }
  427. static int proc_write (PAL_HANDLE handle, int offset, int count,
  428. const void * buffer)
  429. {
  430. int bytes = INLINE_SYSCALL(write, 3, handle->process.stream_out, buffer,
  431. count);
  432. if (IS_ERR(bytes))
  433. switch(ERRNO(bytes)) {
  434. case EWOULDBLOCK:
  435. handle->__in.flags &= ~WRITEABLE(1);
  436. return-PAL_ERROR_TRYAGAIN;
  437. case EINTR:
  438. return -PAL_ERROR_INTERRUPTED;
  439. default:
  440. return -PAL_ERROR_DENIED;
  441. }
  442. if (bytes == count)
  443. handle->__in.flags |= WRITEABLE(1);
  444. else
  445. handle->__in.flags &= ~WRITEABLE(1);
  446. return bytes;
  447. }
  448. static int proc_close (PAL_HANDLE handle)
  449. {
  450. if (handle->process.stream_in != PAL_IDX_POISON) {
  451. INLINE_SYSCALL(close, 1, handle->process.stream_in);
  452. handle->process.stream_in = PAL_IDX_POISON;
  453. }
  454. if (handle->process.stream_out != PAL_IDX_POISON) {
  455. INLINE_SYSCALL(close, 1, handle->process.stream_out);
  456. handle->process.stream_out = PAL_IDX_POISON;
  457. }
  458. if (handle->process.cargo != PAL_IDX_POISON) {
  459. INLINE_SYSCALL(close, 1, handle->process.cargo);
  460. handle->process.cargo = PAL_IDX_POISON;
  461. }
  462. return 0;
  463. }
  464. static int proc_delete (PAL_HANDLE handle, int access)
  465. {
  466. int shutdown;
  467. switch (access) {
  468. case 0:
  469. shutdown = SHUT_RDWR;
  470. break;
  471. case PAL_DELETE_RD:
  472. shutdown = SHUT_RD;
  473. break;
  474. case PAL_DELETE_WR:
  475. shutdown = SHUT_WR;
  476. break;
  477. default:
  478. return -PAL_ERROR_INVAL;
  479. }
  480. if (access != PAL_DELETE_WR &&
  481. handle->process.stream_in != PAL_IDX_POISON) {
  482. INLINE_SYSCALL(close, 1, handle->process.stream_in);
  483. handle->process.stream_in = PAL_IDX_POISON;
  484. }
  485. if (access != PAL_DELETE_RD &&
  486. handle->process.stream_out != PAL_IDX_POISON) {
  487. INLINE_SYSCALL(close, 1, handle->process.stream_out);
  488. handle->process.stream_out = PAL_IDX_POISON;
  489. }
  490. if (handle->process.cargo != PAL_IDX_POISON)
  491. INLINE_SYSCALL(shutdown, 2, handle->process.cargo, shutdown);
  492. return 0;
  493. }
  494. #ifndef FIONREAD
  495. # define FIONREAD 0x541B
  496. #endif
  497. static int proc_attrquerybyhdl (PAL_HANDLE handle, PAL_STREAM_ATTR * attr)
  498. {
  499. int ret, val;
  500. if (handle->process.stream_in == PAL_IDX_POISON)
  501. return -PAL_ERROR_BADHANDLE;
  502. ret = INLINE_SYSCALL(ioctl, 3, handle->process.stream_in, FIONREAD, &val);
  503. if (IS_ERR(ret))
  504. return unix_to_pal_error(ERRNO(ret));
  505. attr->handle_type = pal_type_process;
  506. attr->nonblocking = handle->process.nonblocking;
  507. attr->disconnected = handle->__in.flags & (ERROR(0)|ERROR(1));
  508. attr->readable = !!val;
  509. attr->writeable = handle->__in.flags & WRITEABLE(1);
  510. attr->runnable = PAL_FALSE;
  511. attr->pending_size = val;
  512. return 0;
  513. }
  514. static int proc_attrsetbyhdl (PAL_HANDLE handle, PAL_STREAM_ATTR * attr)
  515. {
  516. if (handle->process.stream_in == PAL_IDX_POISON)
  517. return -PAL_ERROR_BADHANDLE;
  518. int ret;
  519. if (attr->nonblocking != handle->process.nonblocking) {
  520. ret = INLINE_SYSCALL(fcntl, 3, handle->process.stream_in, F_SETFL,
  521. handle->process.nonblocking ? O_NONBLOCK : 0);
  522. if (IS_ERR(ret))
  523. return unix_to_pal_error(ERRNO(ret));
  524. handle->process.nonblocking = attr->nonblocking;
  525. }
  526. return 0;
  527. }
  528. struct handle_ops proc_ops = {
  529. .read = &proc_read,
  530. .write = &proc_write,
  531. .close = &proc_close,
  532. .delete = &proc_delete,
  533. .attrquerybyhdl = &proc_attrquerybyhdl,
  534. .attrsetbyhdl = &proc_attrsetbyhdl,
  535. };