Skip to content

Commit 5669688

Browse files
committed
eCryptfs: Remove unused messaging declarations and function
These are no longer needed. Signed-off-by: Tyler Hicks <tyhicks@canonical.com> Cc: Sasha Levin <levinsasha928@gmail.com>
1 parent 069ddcd commit 5669688

2 files changed

Lines changed: 0 additions & 37 deletions

File tree

‎fs/ecryptfs/ecryptfs_kernel.h‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,6 @@ struct ecryptfs_msg_ctx {
385385
struct mutex mux;
386386
};
387387

388-
struct ecryptfs_daemon;
389-
390388
struct ecryptfs_daemon {
391389
#define ECRYPTFS_DAEMON_IN_READ 0x00000001
392390
#define ECRYPTFS_DAEMON_IN_POLL 0x00000002
@@ -621,10 +619,6 @@ int
621619
ecryptfs_setxattr(struct dentry *dentry, const char *name, const void *value,
622620
size_t size, int flags);
623621
int ecryptfs_read_xattr_region(char *page_virt, struct inode *ecryptfs_inode);
624-
int ecryptfs_process_helo(uid_t euid, struct user_namespace *user_ns,
625-
struct pid *pid);
626-
int ecryptfs_process_quit(uid_t euid, struct user_namespace *user_ns,
627-
struct pid *pid);
628622
int ecryptfs_process_response(struct ecryptfs_message *msg, uid_t euid,
629623
struct user_namespace *user_ns, struct pid *pid,
630624
u32 seq);

‎fs/ecryptfs/messaging.c‎

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -215,37 +215,6 @@ int ecryptfs_exorcise_daemon(struct ecryptfs_daemon *daemon)
215215
return rc;
216216
}
217217

218-
/**
219-
* ecryptfs_process_quit
220-
* @euid: The user ID owner of the message
221-
* @user_ns: The namespace in which @euid applies
222-
* @pid: The process ID for the userspace program that sent the
223-
* message
224-
*
225-
* Deletes the corresponding daemon for the given euid and pid, if
226-
* it is the registered that is requesting the deletion. Returns zero
227-
* after deleting the desired daemon; non-zero otherwise.
228-
*/
229-
int ecryptfs_process_quit(uid_t euid, struct user_namespace *user_ns,
230-
struct pid *pid)
231-
{
232-
struct ecryptfs_daemon *daemon;
233-
int rc;
234-
235-
mutex_lock(&ecryptfs_daemon_hash_mux);
236-
rc = ecryptfs_find_daemon_by_euid(&daemon, euid, user_ns);
237-
if (rc || !daemon) {
238-
rc = -EINVAL;
239-
printk(KERN_ERR "Received request from user [%d] to "
240-
"unregister unrecognized daemon [0x%p]\n", euid, pid);
241-
goto out_unlock;
242-
}
243-
rc = ecryptfs_exorcise_daemon(daemon);
244-
out_unlock:
245-
mutex_unlock(&ecryptfs_daemon_hash_mux);
246-
return rc;
247-
}
248-
249218
/**
250219
* ecryptfs_process_reponse
251220
* @msg: The ecryptfs message received; the caller should sanity check

0 commit comments

Comments
 (0)