android_kernel_google_msm/arch
Jeff Layton 3df0a6646d 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.

Change-Id: Ib690c3dd4d56624f0ddb081e1c1d4f23c2dd0cd1
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2018-12-07 22:28:48 +04:00
..
alpha vfs: define struct filename and have getname() return it 2018-12-07 22:28:48 +04:00
arm vfs: define struct filename and have getname() return it 2018-12-07 22:28:48 +04:00
avr32 vfs: define struct filename and have getname() return it 2018-12-07 22:28:48 +04:00
blackfin vfs: define struct filename and have getname() return it 2018-12-07 22:28:48 +04:00
c6x C6x: time: Ensure consistency in __init 2015-09-18 09:20:25 +08:00
cris vfs: define struct filename and have getname() return it 2018-12-07 22:28:48 +04:00
frv Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
h8300 vfs: define struct filename and have getname() return it 2018-12-07 22:28:48 +04:00
hexagon vfs: define struct filename and have getname() return it 2018-12-07 22:28:48 +04:00
ia64 vfs: define struct filename and have getname() return it 2018-12-07 22:28:48 +04:00
m32r vfs: define struct filename and have getname() return it 2018-12-07 22:28:48 +04:00
m68k netfilter: remove xt_NOTRACK 2018-12-07 22:04:24 +04:00
microblaze vfs: define struct filename and have getname() return it 2018-12-07 22:28:48 +04:00
mips vfs: define struct filename and have getname() return it 2018-12-07 22:28:48 +04:00
mn10300 Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
openrisc vfs: define struct filename and have getname() return it 2018-12-07 22:28:48 +04:00
parisc vfs: define struct filename and have getname() return it 2018-12-07 22:28:48 +04:00
powerpc new helper: done_path_create() 2018-12-07 22:28:48 +04:00
s390 Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
score vfs: define struct filename and have getname() return it 2018-12-07 22:28:48 +04:00
sh vfs: define struct filename and have getname() return it 2018-12-07 22:28:48 +04:00
sparc vfs: define struct filename and have getname() return it 2018-12-07 22:28:48 +04:00
tile vfs: define struct filename and have getname() return it 2018-12-07 22:28:48 +04:00
um Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
unicore32 vfs: define struct filename and have getname() return it 2018-12-07 22:28:48 +04:00
x86 BACKPORT: FROMLIST: mm: ASLR: use get_random_long() 2017-12-27 22:50:17 +03:00
xtensa vfs: define struct filename and have getname() return it 2018-12-07 22:28:48 +04:00
.gitignore
Kconfig FROMLIST: mm: mmap: Add new /proc tunable for mmap_base ASLR. 2016-10-29 23:12:40 +08:00