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
nexedi
linux
Commits
3f069ce5
Commit
3f069ce5
authored
Apr 16, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Annotate namespace system calls (mount, umount, pivot_root etc)
with user pointer annotations.
parent
a63df8c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
fs/namespace.c
fs/namespace.c
+7
-6
No files found.
fs/namespace.c
View file @
3f069ce5
...
...
@@ -367,7 +367,7 @@ static int do_umount(struct vfsmount *mnt, int flags)
* unixes. Our API is identical to OSF/1 to avoid making a mess of AMD
*/
asmlinkage
long
sys_umount
(
char
*
name
,
int
flags
)
asmlinkage
long
sys_umount
(
char
__user
*
name
,
int
flags
)
{
struct
nameidata
nd
;
int
retval
;
...
...
@@ -396,7 +396,7 @@ asmlinkage long sys_umount(char * name, int flags)
* The 2.0 compatible umount. No flags.
*/
asmlinkage
long
sys_oldumount
(
char
*
name
)
asmlinkage
long
sys_oldumount
(
char
__user
*
name
)
{
return
sys_umount
(
name
,
0
);
}
...
...
@@ -664,7 +664,7 @@ static int do_add_mount(struct nameidata *nd, char *type, int flags,
return
err
;
}
static
int
copy_mount_options
(
const
void
*
data
,
unsigned
long
*
where
)
static
int
copy_mount_options
(
const
void
__user
*
data
,
unsigned
long
*
where
)
{
int
i
;
unsigned
long
page
;
...
...
@@ -842,8 +842,9 @@ int copy_namespace(int flags, struct task_struct *tsk)
return
-
ENOMEM
;
}
asmlinkage
long
sys_mount
(
char
*
dev_name
,
char
*
dir_name
,
char
*
type
,
unsigned
long
flags
,
void
*
data
)
asmlinkage
long
sys_mount
(
char
__user
*
dev_name
,
char
__user
*
dir_name
,
char
__user
*
type
,
unsigned
long
flags
,
void
__user
*
data
)
{
int
retval
;
unsigned
long
data_page
;
...
...
@@ -963,7 +964,7 @@ static void chroot_fs_refs(struct nameidata *old_nd, struct nameidata *new_nd)
* first.
*/
asmlinkage
long
sys_pivot_root
(
const
char
*
new_root
,
const
cha
r
*
put_old
)
asmlinkage
long
sys_pivot_root
(
const
char
__user
*
new_root
,
const
char
__use
r
*
put_old
)
{
struct
vfsmount
*
tmp
;
struct
nameidata
new_nd
,
old_nd
,
parent_nd
,
root_parent
,
user_nd
;
...
...
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