浏览代码

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()
Linus Torvalds 7 年之前
父节点
当前提交
275327851e
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      fs/proc/base.c
  2. 1 1
      fs/proc/internal.h

+ 1 - 1
fs/proc/base.c

@@ -1682,7 +1682,7 @@ const struct inode_operations proc_pid_link_inode_operations = {
 
 
 /* building an inode */
 /* 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)
 		     kuid_t *ruid, kgid_t *rgid)
 {
 {
 	/* Depending on the state of dumpable compute who should own a
 	/* Depending on the state of dumpable compute who should own a

+ 1 - 1
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);
 	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);
 		     kuid_t *ruid, kgid_t *rgid);
 
 
 unsigned name_to_int(const struct qstr *qstr);
 unsigned name_to_int(const struct qstr *qstr);