projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ptrace: use fsuid, fsgid, effective creds for fs access checks
[deliverable/linux.git]
/
fs
/
proc
/
namespaces.c
diff --git
a/fs/proc/namespaces.c
b/fs/proc/namespaces.c
index 1dece8781f91687307155c38a4c85a3ffba5c6b9..276f12431dbfccdeb4add56a226c07d6062af38b 100644
(file)
--- a/
fs/proc/namespaces.c
+++ b/
fs/proc/namespaces.c
@@
-46,7
+46,7
@@
static const char *proc_ns_get_link(struct dentry *dentry,
if (!task)
return error;
if (!task)
return error;
- if (ptrace_may_access(task, PTRACE_MODE_READ)) {
+ if (ptrace_may_access(task, PTRACE_MODE_READ
_FSCREDS
)) {
error = ns_get_path(&ns_path, task, ns_ops);
if (!error)
nd_jump_link(&ns_path);
error = ns_get_path(&ns_path, task, ns_ops);
if (!error)
nd_jump_link(&ns_path);
@@
-67,7
+67,7
@@
static int proc_ns_readlink(struct dentry *dentry, char __user *buffer, int bufl
if (!task)
return res;
if (!task)
return res;
- if (ptrace_may_access(task, PTRACE_MODE_READ)) {
+ if (ptrace_may_access(task, PTRACE_MODE_READ
_FSCREDS
)) {
res = ns_get_name(name, sizeof(name), task, ns_ops);
if (res >= 0)
res = readlink_copy(buffer, buflen, name);
res = ns_get_name(name, sizeof(name), task, ns_ops);
if (res >= 0)
res = readlink_copy(buffer, buflen, name);
This page took
0.029162 seconds
and
5
git commands to generate.