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
6e9acb58
Commit
6e9acb58
authored
Nov 26, 2002
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LSM: change if statements into something more readable for the arch/* files.
parent
62561c77
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
28 additions
and
14 deletions
+28
-14
arch/arm/kernel/ptrace.c
arch/arm/kernel/ptrace.c
+2
-1
arch/i386/kernel/ptrace.c
arch/i386/kernel/ptrace.c
+2
-1
arch/ia64/kernel/ptrace.c
arch/ia64/kernel/ptrace.c
+2
-1
arch/ppc/kernel/ptrace.c
arch/ppc/kernel/ptrace.c
+2
-1
arch/ppc64/kernel/ptrace.c
arch/ppc64/kernel/ptrace.c
+2
-1
arch/ppc64/kernel/ptrace32.c
arch/ppc64/kernel/ptrace32.c
+2
-1
arch/ppc64/kernel/sys_ppc32.c
arch/ppc64/kernel/sys_ppc32.c
+2
-1
arch/s390/kernel/ptrace.c
arch/s390/kernel/ptrace.c
+2
-1
arch/s390x/kernel/ptrace.c
arch/s390x/kernel/ptrace.c
+2
-1
arch/sparc/kernel/ptrace.c
arch/sparc/kernel/ptrace.c
+2
-1
arch/sparc64/kernel/ptrace.c
arch/sparc64/kernel/ptrace.c
+2
-1
arch/sparc64/kernel/sys_sparc32.c
arch/sparc64/kernel/sys_sparc32.c
+2
-1
arch/um/kernel/ptrace.c
arch/um/kernel/ptrace.c
+2
-1
arch/x86_64/kernel/ptrace.c
arch/x86_64/kernel/ptrace.c
+2
-1
No files found.
arch/arm/kernel/ptrace.c
View file @
6e9acb58
...
...
@@ -711,7 +711,8 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
/* are we already being traced? */
if
(
current
->
ptrace
&
PT_PTRACED
)
goto
out
;
if
((
ret
=
security_ptrace
(
current
->
parent
,
current
)))
ret
=
security_ptrace
(
current
->
parent
,
current
);
if
(
ret
)
goto
out
;
/* set the ptrace bit in the process flags. */
current
->
ptrace
|=
PT_PTRACED
;
...
...
arch/i386/kernel/ptrace.c
View file @
6e9acb58
...
...
@@ -160,7 +160,8 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
/* are we already being traced? */
if
(
current
->
ptrace
&
PT_PTRACED
)
goto
out
;
if
((
ret
=
security_ptrace
(
current
->
parent
,
current
)))
ret
=
security_ptrace
(
current
->
parent
,
current
);
if
(
ret
)
goto
out
;
/* set the ptrace bit in the process flags. */
current
->
ptrace
|=
PT_PTRACED
;
...
...
arch/ia64/kernel/ptrace.c
View file @
6e9acb58
...
...
@@ -1101,7 +1101,8 @@ 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
;
if
((
ret
=
security_ptrace
(
current
->
parent
,
current
)))
ret
=
security_ptrace
(
current
->
parent
,
current
);
if
(
ret
)
goto
out
;
current
->
ptrace
|=
PT_PTRACED
;
ret
=
0
;
...
...
arch/ppc/kernel/ptrace.c
View file @
6e9acb58
...
...
@@ -166,7 +166,8 @@ int sys_ptrace(long request, long pid, long addr, long data)
/* are we already being traced? */
if
(
current
->
ptrace
&
PT_PTRACED
)
goto
out
;
if
((
ret
=
security_ptrace
(
current
->
parent
,
current
)))
ret
=
security_ptrace
(
current
->
parent
,
current
);
if
(
ret
)
goto
out
;
/* set the ptrace bit in the process flags. */
current
->
ptrace
|=
PT_PTRACED
;
...
...
arch/ppc64/kernel/ptrace.c
View file @
6e9acb58
...
...
@@ -59,7 +59,8 @@ int sys_ptrace(long request, long pid, long addr, long data)
/* are we already being traced? */
if
(
current
->
ptrace
&
PT_PTRACED
)
goto
out
;
if
((
ret
=
security_ptrace
(
current
->
parent
,
current
)))
ret
=
security_ptrace
(
current
->
parent
,
current
);
if
(
ret
)
goto
out
;
/* set the ptrace bit in the process flags. */
current
->
ptrace
|=
PT_PTRACED
;
...
...
arch/ppc64/kernel/ptrace32.c
View file @
6e9acb58
...
...
@@ -48,7 +48,8 @@ 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
;
if
((
ret
=
security_ptrace
(
current
->
parent
,
current
)))
ret
=
security_ptrace
(
current
->
parent
,
current
);
if
(
ret
)
goto
out
;
/* set the ptrace bit in the process flags. */
current
->
ptrace
|=
PT_PTRACED
;
...
...
arch/ppc64/kernel/sys_ppc32.c
View file @
6e9acb58
...
...
@@ -3521,7 +3521,8 @@ static int do_execve32(char * filename, u32 * argv, u32 * envp, struct pt_regs *
if
((
retval
=
bprm
.
envc
)
<
0
)
goto
out_mm
;
if
((
retval
=
security_bprm_alloc
(
&
bprm
)))
retval
=
security_bprm_alloc
(
&
bprm
);
if
(
retval
)
goto
out
;
retval
=
prepare_binprm
(
&
bprm
);
...
...
arch/s390/kernel/ptrace.c
View file @
6e9acb58
...
...
@@ -323,7 +323,8 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
ret
=
-
EPERM
;
if
(
current
->
ptrace
&
PT_PTRACED
)
goto
out
;
if
((
ret
=
security_ptrace
(
current
->
parent
,
current
)))
ret
=
security_ptrace
(
current
->
parent
,
current
);
if
(
ret
)
goto
out
;
/* set the ptrace bit in the process flags. */
current
->
ptrace
|=
PT_PTRACED
;
...
...
arch/s390x/kernel/ptrace.c
View file @
6e9acb58
...
...
@@ -563,7 +563,8 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
ret
=
-
EPERM
;
if
(
current
->
ptrace
&
PT_PTRACED
)
goto
out
;
if
((
ret
=
security_ptrace
(
current
->
parent
,
current
)))
ret
=
security_ptrace
(
current
->
parent
,
current
);
if
(
ret
)
goto
out
;
/* set the ptrace bit in the process flags. */
current
->
ptrace
|=
PT_PTRACED
;
...
...
arch/sparc/kernel/ptrace.c
View file @
6e9acb58
...
...
@@ -291,7 +291,8 @@ asmlinkage void do_ptrace(struct pt_regs *regs)
pt_error_return
(
regs
,
EPERM
);
goto
out
;
}
if
((
ret
=
security_ptrace
(
current
->
parent
,
current
)))
{
ret
=
security_ptrace
(
current
->
parent
,
current
);
if
(
ret
)
{
pt_error_return
(
regs
,
-
ret
);
goto
out
;
}
...
...
arch/sparc64/kernel/ptrace.c
View file @
6e9acb58
...
...
@@ -140,7 +140,8 @@ asmlinkage void do_ptrace(struct pt_regs *regs)
pt_error_return
(
regs
,
EPERM
);
goto
out
;
}
if
((
ret
=
security_ptrace
(
current
->
parent
,
current
)))
{
ret
=
security_ptrace
(
current
->
parent
,
current
);
if
(
ret
)
{
pt_error_return
(
regs
,
-
ret
);
goto
out
;
}
...
...
arch/sparc64/kernel/sys_sparc32.c
View file @
6e9acb58
...
...
@@ -3026,7 +3026,8 @@ do_execve32(char * filename, u32 * argv, u32 * envp, struct pt_regs * regs)
if
((
retval
=
bprm
.
envc
)
<
0
)
goto
out_mm
;
if
((
retval
=
security_bprm_alloc
(
&
bprm
)))
retval
=
security_bprm_alloc
(
&
bprm
);
if
(
retval
)
goto
out
;
retval
=
prepare_binprm
(
&
bprm
);
...
...
arch/um/kernel/ptrace.c
View file @
6e9acb58
...
...
@@ -33,7 +33,8 @@ int sys_ptrace(long request, long pid, long addr, long data)
if
(
current
->
ptrace
&
PT_PTRACED
)
goto
out
;
if
((
ret
=
security_ptrace
(
current
->
parent
,
current
)))
ret
=
security_ptrace
(
current
->
parent
,
current
);
if
(
ret
)
goto
out
;
/* set the ptrace bit in the process flags. */
...
...
arch/x86_64/kernel/ptrace.c
View file @
6e9acb58
...
...
@@ -178,7 +178,8 @@ asmlinkage long sys_ptrace(long request, long pid, long addr, long data)
/* are we already being traced? */
if
(
current
->
ptrace
&
PT_PTRACED
)
goto
out
;
if
((
ret
=
security_ptrace
(
current
->
parent
,
current
)))
ret
=
security_ptrace
(
current
->
parent
,
current
);
if
(
ret
)
goto
out
;
/* set the ptrace bit in the process flags. */
current
->
ptrace
|=
PT_PTRACED
;
...
...
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