1
linux/arch
Jeff Layton 91a27b2a75 vfs: define struct filename and have getname() return it
getname() is intended to copy pathname strings from userspace into a
kernel buffer. The result is just a string in kernel space. It would
however be quite helpful to be able to attach some ancillary info to
the string.

For instance, we could attach some audit-related info to reduce the
amount of audit-related processing needed. When auditing is enabled,
we could also call getname() on the string more than once and not
need to recopy it from userspace.

This patchset converts the getname()/putname() interfaces to return
a struct instead of a string. For now, the struct just tracks the
string in kernel space and the original userland pointer for it.

Later, we'll add other information to the struct as it becomes
convenient.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2012-10-12 20:14:55 -04:00
..
alpha vfs: define struct filename and have getname() return it 2012-10-12 20:14:55 -04:00
arm Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal 2012-10-12 10:49:08 +09:00
arm64 vfs: define struct filename and have getname() return it 2012-10-12 20:14:55 -04:00
avr32 vfs: define struct filename and have getname() return it 2012-10-12 20:14:55 -04:00
blackfin vfs: define struct filename and have getname() return it 2012-10-12 20:14:55 -04:00
c6x Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal 2012-10-12 10:49:08 +09:00
cris vfs: define struct filename and have getname() return it 2012-10-12 20:14:55 -04:00
frv Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal 2012-10-12 10:49:08 +09:00
h8300 vfs: define struct filename and have getname() return it 2012-10-12 20:14:55 -04:00
hexagon vfs: define struct filename and have getname() return it 2012-10-12 20:14:55 -04:00
ia64 vfs: define struct filename and have getname() return it 2012-10-12 20:14:55 -04:00
m32r vfs: define struct filename and have getname() return it 2012-10-12 20:14:55 -04:00
m68k Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal 2012-10-12 10:49:08 +09:00
microblaze vfs: define struct filename and have getname() return it 2012-10-12 20:14:55 -04:00
mips vfs: define struct filename and have getname() return it 2012-10-12 20:14:55 -04:00
mn10300 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal 2012-10-12 10:49:08 +09:00
openrisc vfs: define struct filename and have getname() return it 2012-10-12 20:14:55 -04:00
parisc vfs: define struct filename and have getname() return it 2012-10-12 20:14:55 -04:00
powerpc Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal 2012-10-12 10:49:08 +09:00
s390 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal 2012-10-12 10:49:08 +09:00
score vfs: define struct filename and have getname() return it 2012-10-12 20:14:55 -04:00
sh vfs: define struct filename and have getname() return it 2012-10-12 20:14:55 -04:00
sparc vfs: define struct filename and have getname() return it 2012-10-12 20:14:55 -04:00
tile vfs: define struct filename and have getname() return it 2012-10-12 20:14:55 -04:00
um Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal 2012-10-12 10:49:08 +09:00
unicore32 vfs: define struct filename and have getname() return it 2012-10-12 20:14:55 -04:00
x86 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal 2012-10-12 10:49:08 +09:00
xtensa vfs: define struct filename and have getname() return it 2012-10-12 20:14:55 -04:00
.gitignore
Kconfig Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal 2012-10-10 12:02:25 +09:00