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
31358bf7
Commit
31358bf7
authored
Oct 17, 2002
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LSM: change all usages of security_ops->ptrace() to security_ptrace()
parent
e6ebd8d6
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
13 additions
and
26 deletions
+13
-26
arch/arm/kernel/ptrace.c
arch/arm/kernel/ptrace.c
+1
-2
arch/i386/kernel/ptrace.c
arch/i386/kernel/ptrace.c
+1
-2
arch/ia64/kernel/ptrace.c
arch/ia64/kernel/ptrace.c
+1
-2
arch/ppc/kernel/ptrace.c
arch/ppc/kernel/ptrace.c
+1
-2
arch/ppc64/kernel/ptrace.c
arch/ppc64/kernel/ptrace.c
+1
-2
arch/ppc64/kernel/ptrace32.c
arch/ppc64/kernel/ptrace32.c
+1
-2
arch/s390/kernel/ptrace.c
arch/s390/kernel/ptrace.c
+1
-2
arch/s390x/kernel/ptrace.c
arch/s390x/kernel/ptrace.c
+1
-2
arch/sparc/kernel/ptrace.c
arch/sparc/kernel/ptrace.c
+1
-2
arch/sparc64/kernel/ptrace.c
arch/sparc64/kernel/ptrace.c
+1
-2
arch/um/kernel/ptrace.c
arch/um/kernel/ptrace.c
+1
-2
arch/x86_64/kernel/ptrace.c
arch/x86_64/kernel/ptrace.c
+1
-2
kernel/ptrace.c
kernel/ptrace.c
+1
-2
No files found.
arch/arm/kernel/ptrace.c
View file @
31358bf7
...
...
@@ -719,8 +719,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
/* are we already being traced? */
if
(
current
->
ptrace
&
PT_PTRACED
)
goto
out
;
ret
=
security_ops
->
ptrace
(
current
->
parent
,
current
);
if
(
ret
)
if
((
ret
=
security_ptrace
(
current
->
parent
,
current
)))
goto
out
;
/* set the ptrace bit in the process flags. */
current
->
ptrace
|=
PT_PTRACED
;
...
...
arch/i386/kernel/ptrace.c
View file @
31358bf7
...
...
@@ -160,8 +160,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
/* are we already being traced? */
if
(
current
->
ptrace
&
PT_PTRACED
)
goto
out
;
ret
=
security_ops
->
ptrace
(
current
->
parent
,
current
);
if
(
ret
)
if
((
ret
=
security_ptrace
(
current
->
parent
,
current
)))
goto
out
;
/* set the ptrace bit in the process flags. */
current
->
ptrace
|=
PT_PTRACED
;
...
...
arch/ia64/kernel/ptrace.c
View file @
31358bf7
...
...
@@ -1101,8 +1101,7 @@ sys_ptrace (long request, pid_t pid, unsigned long addr, unsigned long data,
/* are we already being traced? */
if
(
current
->
ptrace
&
PT_PTRACED
)
goto
out
;
ret
=
security_ops
->
ptrace
(
current
->
parent
,
current
);
if
(
ret
)
if
((
ret
=
security_ptrace
(
current
->
parent
,
current
)))
goto
out
;
current
->
ptrace
|=
PT_PTRACED
;
ret
=
0
;
...
...
arch/ppc/kernel/ptrace.c
View file @
31358bf7
...
...
@@ -166,8 +166,7 @@ int sys_ptrace(long request, long pid, long addr, long data)
/* are we already being traced? */
if
(
current
->
ptrace
&
PT_PTRACED
)
goto
out
;
ret
=
security_ops
->
ptrace
(
current
->
parent
,
current
);
if
(
ret
)
if
((
ret
=
security_ptrace
(
current
->
parent
,
current
)))
goto
out
;
/* set the ptrace bit in the process flags. */
current
->
ptrace
|=
PT_PTRACED
;
...
...
arch/ppc64/kernel/ptrace.c
View file @
31358bf7
...
...
@@ -59,8 +59,7 @@ int sys_ptrace(long request, long pid, long addr, long data)
/* are we already being traced? */
if
(
current
->
ptrace
&
PT_PTRACED
)
goto
out
;
ret
=
security_ops
->
ptrace
(
current
->
parent
,
current
);
if
(
ret
)
if
((
ret
=
security_ptrace
(
current
->
parent
,
current
)))
goto
out
;
/* set the ptrace bit in the process flags. */
current
->
ptrace
|=
PT_PTRACED
;
...
...
arch/ppc64/kernel/ptrace32.c
View file @
31358bf7
...
...
@@ -48,8 +48,7 @@ int sys32_ptrace(long request, long pid, unsigned long addr, unsigned long data)
/* are we already being traced? */
if
(
current
->
ptrace
&
PT_PTRACED
)
goto
out
;
ret
=
security_ops
->
ptrace
(
current
->
parent
,
current
);
if
(
ret
)
if
((
ret
=
security_ptrace
(
current
->
parent
,
current
)))
goto
out
;
/* set the ptrace bit in the process flags. */
current
->
ptrace
|=
PT_PTRACED
;
...
...
arch/s390/kernel/ptrace.c
View file @
31358bf7
...
...
@@ -330,8 +330,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
ret
=
-
EPERM
;
if
(
current
->
ptrace
&
PT_PTRACED
)
goto
out
;
ret
=
security_ops
->
ptrace
(
current
->
parent
,
current
);
if
(
ret
)
if
((
ret
=
security_ptrace
(
current
->
parent
,
current
)))
goto
out
;
/* set the ptrace bit in the process flags. */
current
->
ptrace
|=
PT_PTRACED
;
...
...
arch/s390x/kernel/ptrace.c
View file @
31358bf7
...
...
@@ -569,8 +569,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
ret
=
-
EPERM
;
if
(
current
->
ptrace
&
PT_PTRACED
)
goto
out
;
ret
=
security_ops
->
ptrace
(
current
->
parent
,
current
);
if
(
ret
)
if
((
ret
=
security_ptrace
(
current
->
parent
,
current
)))
goto
out
;
/* set the ptrace bit in the process flags. */
current
->
ptrace
|=
PT_PTRACED
;
...
...
arch/sparc/kernel/ptrace.c
View file @
31358bf7
...
...
@@ -291,8 +291,7 @@ asmlinkage void do_ptrace(struct pt_regs *regs)
pt_error_return
(
regs
,
EPERM
);
goto
out
;
}
ret
=
security_ops
->
ptrace
(
current
->
parent
,
current
);
if
(
ret
)
{
if
((
ret
=
security_ptrace
(
current
->
parent
,
current
)))
{
pt_error_return
(
regs
,
-
ret
);
goto
out
;
}
...
...
arch/sparc64/kernel/ptrace.c
View file @
31358bf7
...
...
@@ -140,8 +140,7 @@ asmlinkage void do_ptrace(struct pt_regs *regs)
pt_error_return
(
regs
,
EPERM
);
goto
out
;
}
ret
=
security_ops
->
ptrace
(
current
->
parent
,
current
);
if
(
ret
)
{
if
((
ret
=
security_ptrace
(
current
->
parent
,
current
)))
{
pt_error_return
(
regs
,
-
ret
);
goto
out
;
}
...
...
arch/um/kernel/ptrace.c
View file @
31358bf7
...
...
@@ -33,8 +33,7 @@ int sys_ptrace(long request, long pid, long addr, long data)
if
(
current
->
ptrace
&
PT_PTRACED
)
goto
out
;
ret
=
security_ops
->
ptrace
(
current
->
parent
,
current
);
if
(
ret
)
if
((
ret
=
security_ptrace
(
current
->
parent
,
current
)))
goto
out
;
/* set the ptrace bit in the process flags. */
...
...
arch/x86_64/kernel/ptrace.c
View file @
31358bf7
...
...
@@ -178,8 +178,7 @@ asmlinkage long sys_ptrace(long request, long pid, long addr, long data)
/* are we already being traced? */
if
(
current
->
ptrace
&
PT_PTRACED
)
goto
out
;
ret
=
security_ops
->
ptrace
(
current
->
parent
,
current
);
if
(
ret
)
if
((
ret
=
security_ptrace
(
current
->
parent
,
current
)))
goto
out
;
/* set the ptrace bit in the process flags. */
current
->
ptrace
|=
PT_PTRACED
;
...
...
kernel/ptrace.c
View file @
31358bf7
...
...
@@ -101,8 +101,7 @@ int ptrace_attach(struct task_struct *task)
/* the same process cannot be attached many times */
if
(
task
->
ptrace
&
PT_PTRACED
)
goto
bad
;
retval
=
security_ops
->
ptrace
(
current
,
task
);
if
(
retval
)
if
((
retval
=
security_ptrace
(
current
,
task
)))
goto
bad
;
/* Go */
...
...
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