diff options
| author | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-08-27 06:16:20 +0200 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-08-27 06:16:20 +0200 |
| commit | d9fec3c70aebe9e9139429235b881bf5b32dbe41 (patch) | |
| tree | 1c5aadcecee46f50968a4fb1ada922886dca46d2 /lib | |
| parent | d25ca13ed8acdf609329055ef9c36d0f3fae9503 (diff) | |
| download | plan9front-d9fec3c70aebe9e9139429235b881bf5b32dbe41.tar.xz | |
kernel: prohibit changing cache attributes (SG_CACHED|SG_DEVICE) in segattach(), set SG_RONLY in data2txt()
the user should not be able to change the cache
attributes for a segment in segattach() as this
can cause the same memory to be mapped with
conflicting attributes in the cache.
SG_TEXT should always be mapped with SG_RONLY
attribute. so fix data2txt() to follow the rules.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
