/** * ecryptfs_miscdev_helo * @euid: effective user id of miscdevess sending helo packet * @user_ns: The namespace in which @euid applies * @pid: miscdevess id of miscdevess sending helo packet * * Returns zero on success; non-zero otherwise */ static int ecryptfs_miscdev_helo(uid_t euid, struct user_namespace *user_ns, struct pid *pid) { int rc; rc = ecryptfs_process_helo(ECRYPTFS_TRANSPORT_MISCDEV, euid, user_ns, pid); if (rc) printk(KERN_WARNING "Error processing HELO; rc = [%d]\n", rc); return rc; }
/** * ecryptfs_process_nl_helo * @skb: The socket buffer containing the nlmsghdr in HELO state * * Gets uid and pid of the skb and adds the values to the daemon id * hash. Returns zero after adding a new daemon id to the hash list; * non-zero otherwise. */ static int ecryptfs_process_nl_helo(struct sk_buff *skb) { int rc; rc = ecryptfs_process_helo(ECRYPTFS_TRANSPORT_NETLINK, NETLINK_CREDS(skb)->uid, NETLINK_CREDS(skb)->pid); if (rc) printk(KERN_WARNING "Error processing HELO; rc = [%d]\n", rc); return rc; }