Commit d40c2f29 authored by Linus Torvalds's avatar Linus Torvalds
Browse files
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/selinux-2.6:
  selinux: handle files opened with flags 3 by checking ioctl permission
parents 6be9f7b2 0794c66d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1630,6 +1630,12 @@ static inline u32 file_to_av(struct file *file)
		else
			av |= FILE__WRITE;
	}
	if (!av) {
		/*
		 * Special file opened with flags 3 for ioctl-only use.
		 */
		av = FILE__IOCTL;
	}

	return av;
}