https://github.com/torvalds/linux
Revision 0794c66d49885a2f615618ce4940434b5b067d84 authored by Stephen Smalley on 17 March 2008, 12:55:18 UTC, committed by James Morris on 02 April 2008, 05:05:52 UTC
Handle files opened with flags 3 by checking ioctl permission.

Default to returning FILE__IOCTL from file_to_av() if the f_mode has neither
FMODE_READ nor FMODE_WRITE, and thus check ioctl permission on exec or
transfer, thereby validating such descriptors early as with normal r/w
descriptors and catching leaks of them prior to attempted usage.

Signed-off-by:  Stephen Smalley <sds@tycho.nsa.gov>
Acked-by: Eric Paris <eparis@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
1 parent 0e81a8a
History
Tip revision: 0794c66d49885a2f615618ce4940434b5b067d84 authored by Stephen Smalley on 17 March 2008, 12:55:18 UTC
selinux: handle files opened with flags 3 by checking ioctl permission
Tip revision: 0794c66
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
usr
virt
.gitignore -rw-r--r-- 644 bytes
.mailmap -rw-r--r-- 3.6 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 90.4 KB
Kbuild -rw-r--r-- 1.6 KB
MAINTAINERS -rw-r--r-- 94.9 KB
Makefile -rw-r--r-- 52.8 KB
README -rw-r--r-- 16.5 KB
REPORTING-BUGS -rw-r--r-- 3.1 KB

README

back to top