• Home
  • Raw
  • Download

Lines Matching refs:rc

53 	int rc;  in ecryptfs_acquire_free_msg_ctx()  local
61 rc = -ENOMEM; in ecryptfs_acquire_free_msg_ctx()
68 rc = 0; in ecryptfs_acquire_free_msg_ctx()
72 rc = -ENOMEM; in ecryptfs_acquire_free_msg_ctx()
74 return rc; in ecryptfs_acquire_free_msg_ctx()
121 int rc; in ecryptfs_find_daemon_by_euid() local
127 rc = 0; in ecryptfs_find_daemon_by_euid()
131 rc = -EINVAL; in ecryptfs_find_daemon_by_euid()
133 return rc; in ecryptfs_find_daemon_by_euid()
156 int rc; in ecryptfs_send_raw_message() local
158 rc = ecryptfs_send_message_locked(NULL, 0, msg_type, &msg_ctx); in ecryptfs_send_raw_message()
159 if (rc) { in ecryptfs_send_raw_message()
161 "message to ecryptfsd; rc = [%d]\n", __func__, rc); in ecryptfs_send_raw_message()
172 return rc; in ecryptfs_send_raw_message()
191 int rc = 0; in ecryptfs_spawn_daemon() local
195 rc = -ENOMEM; in ecryptfs_spawn_daemon()
211 return rc; in ecryptfs_spawn_daemon()
232 int rc; in ecryptfs_process_helo() local
235 rc = ecryptfs_find_daemon_by_euid(&old_daemon, euid, user_ns); in ecryptfs_process_helo()
236 if (rc != 0) { in ecryptfs_process_helo()
240 rc = ecryptfs_send_raw_message(ECRYPTFS_MSG_QUIT, old_daemon); in ecryptfs_process_helo()
241 if (rc) in ecryptfs_process_helo()
244 old_daemon->pid, rc); in ecryptfs_process_helo()
248 rc = ecryptfs_spawn_daemon(&new_daemon, euid, user_ns, pid); in ecryptfs_process_helo()
249 if (rc) in ecryptfs_process_helo()
252 "[0x%p]; rc = [%d]\n", __func__, euid, pid, rc); in ecryptfs_process_helo()
254 return rc; in ecryptfs_process_helo()
266 int rc = 0; in ecryptfs_exorcise_daemon() local
271 rc = -EBUSY; in ecryptfs_exorcise_daemon()
297 return rc; in ecryptfs_exorcise_daemon()
315 int rc; in ecryptfs_process_quit() local
318 rc = ecryptfs_find_daemon_by_euid(&daemon, euid, user_ns); in ecryptfs_process_quit()
319 if (rc || !daemon) { in ecryptfs_process_quit()
320 rc = -EINVAL; in ecryptfs_process_quit()
325 rc = ecryptfs_exorcise_daemon(daemon); in ecryptfs_process_quit()
328 return rc; in ecryptfs_process_quit()
365 int rc; in ecryptfs_process_response() local
368 rc = -EINVAL; in ecryptfs_process_response()
381 rc = -EBADMSG; in ecryptfs_process_response()
390 rc = ecryptfs_find_daemon_by_euid(&daemon, ctx_euid, tsk_user_ns); in ecryptfs_process_response()
393 if (rc) { in ecryptfs_process_response()
394 rc = -EBADMSG; in ecryptfs_process_response()
402 rc = -EBADMSG; in ecryptfs_process_response()
409 rc = -EBADMSG; in ecryptfs_process_response()
416 rc = -EBADMSG; in ecryptfs_process_response()
423 rc = -EINVAL; in ecryptfs_process_response()
428 rc = -EINVAL; in ecryptfs_process_response()
437 rc = -ENOMEM; in ecryptfs_process_response()
444 rc = 0; in ecryptfs_process_response()
450 return rc; in ecryptfs_process_response()
469 int rc; in ecryptfs_send_message_locked() local
471 rc = ecryptfs_find_daemon_by_euid(&daemon, euid, current_user_ns()); in ecryptfs_send_message_locked()
472 if (rc || !daemon) { in ecryptfs_send_message_locked()
473 rc = -ENOTCONN; in ecryptfs_send_message_locked()
479 rc = ecryptfs_acquire_free_msg_ctx(msg_ctx); in ecryptfs_send_message_locked()
480 if (rc) { in ecryptfs_send_message_locked()
489 rc = ecryptfs_send_miscdev(data, data_len, *msg_ctx, msg_type, 0, in ecryptfs_send_message_locked()
491 if (rc) in ecryptfs_send_message_locked()
493 "userspace daemon; rc = [%d]\n", __func__, rc); in ecryptfs_send_message_locked()
495 return rc; in ecryptfs_send_message_locked()
511 int rc; in ecryptfs_send_message() local
514 rc = ecryptfs_send_message_locked(data, data_len, ECRYPTFS_MSG_REQUEST, in ecryptfs_send_message()
517 return rc; in ecryptfs_send_message()
535 int rc = 0; in ecryptfs_wait_for_response() local
547 rc = -ENOMSG; in ecryptfs_wait_for_response()
555 return rc; in ecryptfs_wait_for_response()
561 int rc = 0; in ecryptfs_init_messaging() local
577 rc = -ENOMEM; in ecryptfs_init_messaging()
589 rc = -ENOMEM; in ecryptfs_init_messaging()
611 rc = ecryptfs_init_ecryptfs_miscdev(); in ecryptfs_init_messaging()
612 if (rc) in ecryptfs_init_messaging()
615 return rc; in ecryptfs_init_messaging()
640 int rc; in ecryptfs_release_messaging() local
645 rc = ecryptfs_exorcise_daemon(daemon); in ecryptfs_release_messaging()
646 if (rc) in ecryptfs_release_messaging()
651 __func__, rc); in ecryptfs_release_messaging()