summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-09-30 20:45:42 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2017-09-30 20:45:42 +0200
commitc6eb50d2790478d8b5841379b9502812a5e5feb3 (patch)
tree05a9dec6be5344b4449ca6b2835b2b108ab11025 /fs
parentLinux 4.14-rc1 (diff)
downloadlinux-c6eb50d2790478d8b5841379b9502812a5e5feb3.tar.xz
linux-c6eb50d2790478d8b5841379b9502812a5e5feb3.zip
mode_t whack-a-mole: task_dump_owner()
should be umode_t... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/proc/base.c2
-rw-r--r--fs/proc/internal.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c
index ad3b0762cc3e..0a17e52a3d18 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -1681,7 +1681,7 @@ const struct inode_operations proc_pid_link_inode_operations = {
/* building an inode */
-void task_dump_owner(struct task_struct *task, mode_t mode,
+void task_dump_owner(struct task_struct *task, umode_t mode,
kuid_t *ruid, kgid_t *rgid)
{
/* Depending on the state of dumpable compute who should own a
diff --git a/fs/proc/internal.h b/fs/proc/internal.h
index a34195e92b20..5bc75e56a8de 100644
--- a/fs/proc/internal.h
+++ b/fs/proc/internal.h
@@ -100,7 +100,7 @@ static inline struct task_struct *get_proc_task(struct inode *inode)
return get_pid_task(proc_pid(inode), PIDTYPE_PID);
}
-void task_dump_owner(struct task_struct *task, mode_t mode,
+void task_dump_owner(struct task_struct *task, umode_t mode,
kuid_t *ruid, kgid_t *rgid);
static inline unsigned name_to_int(const struct qstr *qstr)