mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
A process should be able to examine itself.
This commit is contained in:
parent
2e0caf2b17
commit
13baacebcb
2 changed files with 6 additions and 4 deletions
|
|
@ -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 a new issue