A process should be able to examine itself.
This commit is contained in:
parent
c7d695c879
commit
b5a0bd9494
@ -95,12 +95,13 @@ struct pfsnode {
|
||||
* Evaluates to 1 if access is allowed.
|
||||
*/
|
||||
#define CHECKIO(p1, p2) \
|
||||
(PRISON_CHECK(p1, p2) && \
|
||||
((p1) == (p2) || \
|
||||
(PRISON_CHECK(p1, p2) && \
|
||||
((((p1)->p_cred->pc_ucred->cr_uid == (p2)->p_cred->p_ruid) && \
|
||||
((p1)->p_cred->p_ruid == (p2)->p_cred->p_ruid) && \
|
||||
((p1)->p_cred->p_svuid == (p2)->p_cred->p_ruid) && \
|
||||
((p2)->p_flag & P_SUGID) == 0) || \
|
||||
(suser_xxx(0, (p1), PRISON_ROOT) == 0)))
|
||||
(suser_xxx(0, (p1), PRISON_ROOT) == 0))))
|
||||
|
||||
#define PROCFS_FILENO(pid, type) \
|
||||
(((type) < Pproc) ? \
|
||||
|
@ -95,12 +95,13 @@ struct pfsnode {
|
||||
* Evaluates to 1 if access is allowed.
|
||||
*/
|
||||
#define CHECKIO(p1, p2) \
|
||||
(PRISON_CHECK(p1, p2) && \
|
||||
((p1) == (p2) || \
|
||||
(PRISON_CHECK(p1, p2) && \
|
||||
((((p1)->p_cred->pc_ucred->cr_uid == (p2)->p_cred->p_ruid) && \
|
||||
((p1)->p_cred->p_ruid == (p2)->p_cred->p_ruid) && \
|
||||
((p1)->p_cred->p_svuid == (p2)->p_cred->p_ruid) && \
|
||||
((p2)->p_flag & P_SUGID) == 0) || \
|
||||
(suser_xxx(0, (p1), PRISON_ROOT) == 0)))
|
||||
(suser_xxx(0, (p1), PRISON_ROOT) == 0))))
|
||||
|
||||
#define PROCFS_FILENO(pid, type) \
|
||||
(((type) < Pproc) ? \
|
||||
|
Loading…
Reference in New Issue
Block a user