Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
1566681d
Commit
1566681d
authored
Oct 01, 2003
by
Arnaldo Carvalho de Melo
Committed by
Linus Torvalds
Oct 01, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
o kernel/ksyms.c: move relevant EXPORT_SYMBOLs to fs/exec.c
parent
9bc5fe23
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
19 deletions
+26
-19
fs/exec.c
fs/exec.c
+26
-0
kernel/ksyms.c
kernel/ksyms.c
+0
-19
No files found.
fs/exec.c
View file @
1566681d
...
@@ -83,6 +83,8 @@ int register_binfmt(struct linux_binfmt * fmt)
...
@@ -83,6 +83,8 @@ int register_binfmt(struct linux_binfmt * fmt)
return
0
;
return
0
;
}
}
EXPORT_SYMBOL
(
register_binfmt
);
int
unregister_binfmt
(
struct
linux_binfmt
*
fmt
)
int
unregister_binfmt
(
struct
linux_binfmt
*
fmt
)
{
{
struct
linux_binfmt
**
tmp
=
&
formats
;
struct
linux_binfmt
**
tmp
=
&
formats
;
...
@@ -100,6 +102,8 @@ int unregister_binfmt(struct linux_binfmt * fmt)
...
@@ -100,6 +102,8 @@ int unregister_binfmt(struct linux_binfmt * fmt)
return
-
EINVAL
;
return
-
EINVAL
;
}
}
EXPORT_SYMBOL
(
unregister_binfmt
);
static
inline
void
put_binfmt
(
struct
linux_binfmt
*
fmt
)
static
inline
void
put_binfmt
(
struct
linux_binfmt
*
fmt
)
{
{
module_put
(
fmt
->
module
);
module_put
(
fmt
->
module
);
...
@@ -281,6 +285,8 @@ int copy_strings_kernel(int argc,char ** argv, struct linux_binprm *bprm)
...
@@ -281,6 +285,8 @@ int copy_strings_kernel(int argc,char ** argv, struct linux_binprm *bprm)
return
r
;
return
r
;
}
}
EXPORT_SYMBOL
(
copy_strings_kernel
);
#ifdef CONFIG_MMU
#ifdef CONFIG_MMU
/*
/*
* This routine is used to map in a page into an address space: needed by
* This routine is used to map in a page into an address space: needed by
...
@@ -443,6 +449,8 @@ int setup_arg_pages(struct linux_binprm *bprm)
...
@@ -443,6 +449,8 @@ int setup_arg_pages(struct linux_binprm *bprm)
return
0
;
return
0
;
}
}
EXPORT_SYMBOL
(
setup_arg_pages
);
#define free_arg_pages(bprm) do { } while (0)
#define free_arg_pages(bprm) do { } while (0)
#else
#else
...
@@ -493,6 +501,8 @@ struct file *open_exec(const char *name)
...
@@ -493,6 +501,8 @@ struct file *open_exec(const char *name)
goto
out
;
goto
out
;
}
}
EXPORT_SYMBOL
(
open_exec
);
int
kernel_read
(
struct
file
*
file
,
unsigned
long
offset
,
int
kernel_read
(
struct
file
*
file
,
unsigned
long
offset
,
char
*
addr
,
unsigned
long
count
)
char
*
addr
,
unsigned
long
count
)
{
{
...
@@ -508,6 +518,8 @@ int kernel_read(struct file *file, unsigned long offset,
...
@@ -508,6 +518,8 @@ int kernel_read(struct file *file, unsigned long offset,
return
result
;
return
result
;
}
}
EXPORT_SYMBOL
(
kernel_read
);
static
int
exec_mmap
(
struct
mm_struct
*
mm
)
static
int
exec_mmap
(
struct
mm_struct
*
mm
)
{
{
struct
task_struct
*
tsk
;
struct
task_struct
*
tsk
;
...
@@ -822,6 +834,8 @@ int flush_old_exec(struct linux_binprm * bprm)
...
@@ -822,6 +834,8 @@ int flush_old_exec(struct linux_binprm * bprm)
return
retval
;
return
retval
;
}
}
EXPORT_SYMBOL
(
flush_old_exec
);
/*
/*
* We mustn't allow tracing of suid binaries, unless
* We mustn't allow tracing of suid binaries, unless
* the tracer has the capability to trace anything..
* the tracer has the capability to trace anything..
...
@@ -878,6 +892,8 @@ int prepare_binprm(struct linux_binprm *bprm)
...
@@ -878,6 +892,8 @@ int prepare_binprm(struct linux_binprm *bprm)
return
kernel_read
(
bprm
->
file
,
0
,
bprm
->
buf
,
BINPRM_BUF_SIZE
);
return
kernel_read
(
bprm
->
file
,
0
,
bprm
->
buf
,
BINPRM_BUF_SIZE
);
}
}
EXPORT_SYMBOL
(
prepare_binprm
);
/*
/*
* This function is used to produce the new IDs and capabilities
* This function is used to produce the new IDs and capabilities
* from the old ones and the file's capabilities.
* from the old ones and the file's capabilities.
...
@@ -918,6 +934,8 @@ void compute_creds(struct linux_binprm *bprm)
...
@@ -918,6 +934,8 @@ void compute_creds(struct linux_binprm *bprm)
security_bprm_compute_creds
(
bprm
);
security_bprm_compute_creds
(
bprm
);
}
}
EXPORT_SYMBOL
(
compute_creds
);
void
remove_arg_zero
(
struct
linux_binprm
*
bprm
)
void
remove_arg_zero
(
struct
linux_binprm
*
bprm
)
{
{
if
(
bprm
->
argc
)
{
if
(
bprm
->
argc
)
{
...
@@ -942,6 +960,8 @@ void remove_arg_zero(struct linux_binprm *bprm)
...
@@ -942,6 +960,8 @@ void remove_arg_zero(struct linux_binprm *bprm)
}
}
}
}
EXPORT_SYMBOL
(
remove_arg_zero
);
/*
/*
* cycle the list of binary formats handler, until one recognizes the image
* cycle the list of binary formats handler, until one recognizes the image
*/
*/
...
@@ -1037,6 +1057,8 @@ int search_binary_handler(struct linux_binprm *bprm,struct pt_regs *regs)
...
@@ -1037,6 +1057,8 @@ int search_binary_handler(struct linux_binprm *bprm,struct pt_regs *regs)
return
retval
;
return
retval
;
}
}
EXPORT_SYMBOL
(
search_binary_handler
);
/*
/*
* sys_execve() executes a new program.
* sys_execve() executes a new program.
*/
*/
...
@@ -1133,6 +1155,8 @@ int do_execve(char * filename,
...
@@ -1133,6 +1155,8 @@ int do_execve(char * filename,
return
retval
;
return
retval
;
}
}
EXPORT_SYMBOL
(
do_execve
);
int
set_binfmt
(
struct
linux_binfmt
*
new
)
int
set_binfmt
(
struct
linux_binfmt
*
new
)
{
{
struct
linux_binfmt
*
old
=
current
->
binfmt
;
struct
linux_binfmt
*
old
=
current
->
binfmt
;
...
@@ -1147,6 +1171,8 @@ int set_binfmt(struct linux_binfmt *new)
...
@@ -1147,6 +1171,8 @@ int set_binfmt(struct linux_binfmt *new)
return
0
;
return
0
;
}
}
EXPORT_SYMBOL
(
set_binfmt
);
#define CORENAME_MAX_SIZE 64
#define CORENAME_MAX_SIZE 64
/* format_corename will inspect the pattern parameter, and output a
/* format_corename will inspect the pattern parameter, and output a
...
...
kernel/ksyms.c
View file @
1566681d
...
@@ -221,15 +221,6 @@ EXPORT_SYMBOL(unregister_filesystem);
...
@@ -221,15 +221,6 @@ EXPORT_SYMBOL(unregister_filesystem);
EXPORT_SYMBOL
(
__mntput
);
EXPORT_SYMBOL
(
__mntput
);
EXPORT_SYMBOL
(
may_umount
);
EXPORT_SYMBOL
(
may_umount
);
/* executable format registration */
EXPORT_SYMBOL
(
register_binfmt
);
EXPORT_SYMBOL
(
unregister_binfmt
);
EXPORT_SYMBOL
(
search_binary_handler
);
EXPORT_SYMBOL
(
prepare_binprm
);
EXPORT_SYMBOL
(
compute_creds
);
EXPORT_SYMBOL
(
remove_arg_zero
);
EXPORT_SYMBOL
(
set_binfmt
);
/* interrupt handling */
/* interrupt handling */
EXPORT_SYMBOL
(
request_irq
);
EXPORT_SYMBOL
(
request_irq
);
EXPORT_SYMBOL
(
free_irq
);
EXPORT_SYMBOL
(
free_irq
);
...
@@ -333,16 +324,6 @@ EXPORT_SYMBOL(single_open);
...
@@ -333,16 +324,6 @@ EXPORT_SYMBOL(single_open);
EXPORT_SYMBOL
(
single_release
);
EXPORT_SYMBOL
(
single_release
);
EXPORT_SYMBOL
(
seq_release_private
);
EXPORT_SYMBOL
(
seq_release_private
);
/* Program loader interfaces */
#ifdef CONFIG_MMU
EXPORT_SYMBOL
(
setup_arg_pages
);
#endif
EXPORT_SYMBOL
(
copy_strings_kernel
);
EXPORT_SYMBOL
(
do_execve
);
EXPORT_SYMBOL
(
flush_old_exec
);
EXPORT_SYMBOL
(
kernel_read
);
EXPORT_SYMBOL
(
open_exec
);
/* Miscellaneous access points */
/* Miscellaneous access points */
EXPORT_SYMBOL
(
si_meminfo
);
EXPORT_SYMBOL
(
si_meminfo
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment