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
2dc559c8
Commit
2dc559c8
authored
Jul 27, 2002
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Add security framework hooks (ptrace and syscall)
parent
b8d99b4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
arch/arm/kernel/calls.S
arch/arm/kernel/calls.S
+1
-1
arch/arm/kernel/ptrace.c
arch/arm/kernel/ptrace.c
+4
-0
No files found.
arch/arm/kernel/calls.S
View file @
2dc559c8
...
@@ -237,7 +237,7 @@ __syscall_start:
...
@@ -237,7 +237,7 @@ __syscall_start:
/*
220
*/
.
long
sys_madvise
/*
220
*/
.
long
sys_madvise
.
long
sys_fcntl64
.
long
sys_fcntl64
.
long
sys_ni_syscall
/*
TUX
*/
.
long
sys_ni_syscall
/*
TUX
*/
.
long
sys_
ni_syscall
/*
Security
*/
.
long
sys_
security
.
long
sys_gettid
.
long
sys_gettid
/*
225
*/
.
long
sys_readahead
/*
225
*/
.
long
sys_readahead
.
long
sys_setxattr
.
long
sys_setxattr
...
...
arch/arm/kernel/ptrace.c
View file @
2dc559c8
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
#include <linux/smp_lock.h>
#include <linux/smp_lock.h>
#include <linux/ptrace.h>
#include <linux/ptrace.h>
#include <linux/user.h>
#include <linux/user.h>
#include <linux/security.h>
#include <asm/uaccess.h>
#include <asm/uaccess.h>
#include <asm/pgtable.h>
#include <asm/pgtable.h>
...
@@ -655,6 +656,9 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
...
@@ -655,6 +656,9 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
/* are we already being traced? */
/* are we already being traced? */
if
(
current
->
ptrace
&
PT_PTRACED
)
if
(
current
->
ptrace
&
PT_PTRACED
)
goto
out
;
goto
out
;
ret
=
security_ops
->
ptrace
(
current
->
parent
,
current
);
if
(
ret
)
goto
out
;
/* set the ptrace bit in the process flags. */
/* set the ptrace bit in the process flags. */
current
->
ptrace
|=
PT_PTRACED
;
current
->
ptrace
|=
PT_PTRACED
;
ret
=
0
;
ret
=
0
;
...
...
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