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
dcfb2843
Commit
dcfb2843
authored
Aug 23, 2003
by
Ulrich Drepper
Committed by
Stephen Hemminger
Aug 23, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Check tgid not pid in scm_check_creds().
parent
3109c4eb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
net/core/scm.c
net/core/scm.c
+1
-1
No files found.
net/core/scm.c
View file @
dcfb2843
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
static
__inline__
int
scm_check_creds
(
struct
ucred
*
creds
)
static
__inline__
int
scm_check_creds
(
struct
ucred
*
creds
)
{
{
if
((
creds
->
pid
==
current
->
p
id
||
capable
(
CAP_SYS_ADMIN
))
&&
if
((
creds
->
pid
==
current
->
tg
id
||
capable
(
CAP_SYS_ADMIN
))
&&
((
creds
->
uid
==
current
->
uid
||
creds
->
uid
==
current
->
euid
||
((
creds
->
uid
==
current
->
uid
||
creds
->
uid
==
current
->
euid
||
creds
->
uid
==
current
->
suid
)
||
capable
(
CAP_SETUID
))
&&
creds
->
uid
==
current
->
suid
)
||
capable
(
CAP_SETUID
))
&&
((
creds
->
gid
==
current
->
gid
||
creds
->
gid
==
current
->
egid
||
((
creds
->
gid
==
current
->
gid
||
creds
->
gid
==
current
->
egid
||
...
...
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