kern: devproc: forbid open(OWRITE) of notes in Broken proceses
This commit is contained in:
parent
c48d0e46ec
commit
7f1ba356f1
|
@ -403,6 +403,8 @@ procopen(Chan *c, unsigned long omode)
|
|||
case Qnote:
|
||||
if(p->privatemem)
|
||||
error(Eperm);
|
||||
if(p->state < Ready && omode != OREAD && omode != OSTAT)
|
||||
error(Eperm);
|
||||
break;
|
||||
|
||||
case Qmem:
|
||||
|
|
Loading…
Reference in New Issue