Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'work.whack-a-mole' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs

Pull mode_t whack-a-mole from Al Viro:
"For all internal uses we want umode_t, which is arch-independent;
mode_t (or __kernel_mode_t, for that matter) is wrong outside of
userland ABI.

Unfortunately, that crap keeps coming back and needs to be put down
from time to time..."

* 'work.whack-a-mole' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
mode_t whack-a-mole: task_dump_owner()

+2 -2
+1 -1
fs/proc/base.c
··· 1682 1682 1683 1683 /* building an inode */ 1684 1684 1685 - void task_dump_owner(struct task_struct *task, mode_t mode, 1685 + void task_dump_owner(struct task_struct *task, umode_t mode, 1686 1686 kuid_t *ruid, kgid_t *rgid) 1687 1687 { 1688 1688 /* Depending on the state of dumpable compute who should own a
+1 -1
fs/proc/internal.h
··· 100 100 return get_pid_task(proc_pid(inode), PIDTYPE_PID); 101 101 } 102 102 103 - void task_dump_owner(struct task_struct *task, mode_t mode, 103 + void task_dump_owner(struct task_struct *task, umode_t mode, 104 104 kuid_t *ruid, kgid_t *rgid); 105 105 106 106 unsigned name_to_int(const struct qstr *qstr);