projects/linux·commit 8fd01d6c

Export dump_{write,seek} to binary loader modules

8fd01d6c · Linus Torvalds <[email protected]> · 2010-10-14 19:15:28 -07:00

If you build aout support as a module, you'll want these exported.

Reported-by: Tetsuo Handa <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
8fd01d6cfbf75465d84a4e533ed70c5f57b3ff51
Parents
cd07202c

Changes

1 files changed · +2 −0

FileStatusAddDelContent
fs/exec.cmodified+2−0View file

fs/exec.c

View file
diff --git a/fs/exec.c b/fs/exec.c
index 03278c9..6d2b6f9 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -2024,6 +2024,7 @@ int dump_write(struct file *file, const void *addr, int nr)
{
return access_ok(VERIFY_READ, addr, nr) && file->f_op->write(file, addr, nr, &file->f_pos) == nr;
}
+EXPORT_SYMBOL(dump_write);
int dump_seek(struct file *file, loff_t off)
{
@@ -2052,3 +2053,4 @@ int dump_seek(struct file *file, loff_t off)
}
return ret;
}
+EXPORT_SYMBOL(dump_seek);