plan9fox/sys/man
cinap_lenrek 0b33b3b8ad kernel: implement per file descriptor OCEXEC flag, reject ORCLOSE when opening /fd, /srv and /shr
The OCEXEC flag used to be maintained per channel,
making it shared between all the file desciptors.

This has a unexpected side effects with regard to
channel passing drivers such as devdup (/fd),
devsrv (/srv) and devshr (/shr).

For example, opening a /srv file with OCEXEC
makes it impossible to be remounted by exportfs
as it internally does a exec() to mount and
re-export it. There is no way to reset the flag.

This change makes the OCEXEC flag per file descriptor,
so a open with the OCEXEC flag only affects the fd
group of the calling process, and not the channel
itself.

On rfork(RFFDG), the per file descriptor flags get
copied.

On dup(), the per file descriptor flags are reset.

The second modification is that /fd, /srv and /shr
should reject the ORCLOSE flag, as the files that
are returned have already been opend.
2020-12-13 16:04:09 +01:00
..
1 sega(1): fix keys (thanks bigato) 2020-12-08 21:20:13 +01:00
2 kernel: implement per file descriptor OCEXEC flag, reject ORCLOSE when opening /fd, /srv and /shr 2020-12-13 16:04:09 +01:00
3 mouse(3): blankS, setS to follow the convention (thanks umbraticus) 2020-12-08 10:34:10 +01:00
4 ptrap: implement filtering on plumb attributes 2020-12-06 21:52:01 +01:00
5 /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
6 image(6): fix typo 2020-02-04 21:32:33 +01:00
7 /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
8 plan9.ini(8): document *nomtrr= and order the table 2020-12-08 17:16:12 +01:00
9 man(9): remove accidentally commited indices 2020-05-24 00:26:11 +02:00
fonts
index.html
mkfile /sys/man/9: more pages added 2020-01-04 18:02:54 +01:00
preface.html
preface3.html
preface4.html