]> git.hungrycats.org Git - linux/commit
[PATCH] prohibit slash in proc directory entry names
authorNathan Lynch <nathanl@austin.ibm.com>
Sat, 8 Jan 2005 05:41:01 +0000 (21:41 -0800)
committerLinus Torvalds <torvalds@evo.osdl.org>
Sat, 8 Jan 2005 05:41:01 +0000 (21:41 -0800)
commit25620d2c7f50120e7b5f7c56d56938e56e47e4ea
tree3ac5509c34a69f8f465f97f3a28ae7dbf5a25324
parent099ddb5374d6145b409686e973d84e6d8e2113df
[PATCH] prohibit slash in proc directory entry names

proc_create() needs to check that the name of an entry to be created does
not contain a '/' character.

To test, I hacked the ibmveth driver to try to call request_irq with a
bogus "foo/bar" devname.  The creation of the /proc/irq/1234/xxx entry
silently fails, as intended.  Perhaps the irq code should be made to check
for the failure.

Signed-off-by: Nathan Lynch <nathanl@austin.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/proc/generic.c