]> git.lizzy.rs Git - plan9front.git/log
plan9front.git
3 years agoplumber: don't leak srvfd file descriptor into sub processes
cinap_lenrek [Mon, 28 Dec 2020 20:00:15 +0000 (21:00 +0100)]
plumber: don't leak srvfd file descriptor into sub processes

Put OCEXEC flag on the srvfd so it wont be leaked
on sub-processes we spawn from plumb rules.

3 years agoplumb: fix wrong click attribute offset (thanks umbraticus)
Sigrid [Mon, 28 Dec 2020 11:24:47 +0000 (12:24 +0100)]
plumb: fix wrong click attribute offset (thanks umbraticus)

3 years agokbmap: avoid division by zero when window becomes too small
cinap_lenrek [Sun, 27 Dec 2020 22:39:28 +0000 (23:39 +0100)]
kbmap: avoid division by zero when window becomes too small

3 years agoaux/vga: remove panning, add screen tilting support
cinap_lenrek [Sun, 27 Dec 2020 22:10:39 +0000 (23:10 +0100)]
aux/vga: remove panning, add screen tilting support

3 years agodevvga: implement screen tilting, remove panning and overlays
cinap_lenrek [Sun, 27 Dec 2020 22:08:59 +0000 (23:08 +0100)]
devvga: implement screen tilting, remove panning and overlays

Tilting allows using left/right rotated or invetrted display orientation.
This can be changed at runtime such as: echo tilt right > /dev/vgactl
This removes the old panning and vga overlays as they are only implemented
with some ancient vga controllers.

3 years agolibauth: re-implement procsetuser() to use /proc instead of #c/user
cinap_lenrek [Wed, 23 Dec 2020 12:10:30 +0000 (13:10 +0100)]
libauth: re-implement procsetuser() to use /proc instead of #c/user

3 years agodevproc: allow anyone to change user of its own processes to "none"
cinap_lenrek [Wed, 23 Dec 2020 12:09:31 +0000 (13:09 +0100)]
devproc: allow anyone to change user of its own processes to "none"

3 years agolibvorbis: 1.3.5 → 1.3.7 (fixes a bunch of CVE and other small issues)
Sigrid [Wed, 23 Dec 2020 11:18:07 +0000 (12:18 +0100)]
libvorbis: 1.3.5 → 1.3.7 (fixes a bunch of CVE and other small issues)

3 years agoape: re-implement getlogin() by stating /proc/$pid/status
cinap_lenrek [Wed, 23 Dec 2020 01:32:13 +0000 (02:32 +0100)]
ape: re-implement getlogin() by stating /proc/$pid/status

3 years agolibc: re-implement getuser() by stating /proc/$pid/status
cinap_lenrek [Wed, 23 Dec 2020 01:31:28 +0000 (02:31 +0100)]
libc: re-implement getuser() by stating /proc/$pid/status

The idea is to avoid the magic files that contain
per process information in devcons when possible.
It will make it easier to deprecate them in the future.

3 years agofax, psfax, vwhois: use $user instead of /dev/user
cinap_lenrek [Wed, 23 Dec 2020 00:44:44 +0000 (01:44 +0100)]
fax, psfax, vwhois: use $user instead of /dev/user

3 years agoB: dont pollute the environment
cinap_lenrek [Wed, 23 Dec 2020 00:44:10 +0000 (01:44 +0100)]
B: dont pollute the environment

3 years agokill, slay, broke: dont pollute environment, use $user
cinap_lenrek [Wed, 23 Dec 2020 00:43:29 +0000 (01:43 +0100)]
kill, slay, broke: dont pollute environment, use $user

3 years agoKill: don't pollute environment
cinap_lenrek [Wed, 23 Dec 2020 00:42:52 +0000 (01:42 +0100)]
Kill: don't pollute environment

3 years agostart, stop: avoid null list in concatenation witout arguments, use $user
cinap_lenrek [Wed, 23 Dec 2020 00:41:52 +0000 (01:41 +0100)]
start, stop: avoid null list in concatenation witout arguments, use $user

3 years agonusbrc: delect lenovo camera
cinap_lenrek [Wed, 23 Dec 2020 00:23:09 +0000 (01:23 +0100)]
nusbrc: delect lenovo camera

3 years agokw: use ethermii.c from port/ (thanks stuart)
cinap_lenrek [Tue, 22 Dec 2020 21:17:44 +0000 (22:17 +0100)]
kw: use ethermii.c from port/ (thanks stuart)

3 years agoaout2uimage: fix missing \n in usage print (thanks james)
cinap_lenrek [Tue, 22 Dec 2020 18:33:49 +0000 (19:33 +0100)]
aout2uimage: fix missing \n in usage print (thanks james)

3 years agoupasfs(4): fix small typos (thanks igor)
cinap_lenrek [Tue, 22 Dec 2020 16:44:26 +0000 (17:44 +0100)]
upasfs(4): fix small typos (thanks igor)

3 years agokbdfs: fix mistake, remove leftover static user variable (thanks umbraticus and igor)
cinap_lenrek [Tue, 22 Dec 2020 15:36:45 +0000 (16:36 +0100)]
kbdfs: fix mistake, remove leftover static user variable (thanks umbraticus and igor)

3 years agokernel: avoid palloc lock during mmurelease()
cinap_lenrek [Tue, 22 Dec 2020 15:29:55 +0000 (16:29 +0100)]
kernel: avoid palloc lock during mmurelease()

Previously, mmurelease() was always called with
palloc spinlock held.

This is unneccesary for some mmurelease()
implementations as they wont release pages
to the palloc pool.

This change removes pagechainhead() and
pagechaindone() and replaces them with just
freepages() call, which aquires the palloc
lock internally as needed.

freepages() avoids holding the palloc lock
while walking the linked list of pages,
avoding some lock contention.

3 years agomerge
cinap_lenrek [Mon, 21 Dec 2020 23:47:53 +0000 (00:47 +0100)]
merge

3 years agorio(4): list window states in order (thanks umbracticus)
Alex Musolino [Mon, 21 Dec 2020 23:41:03 +0000 (10:11 +1030)]
rio(4): list window states in order (thanks umbracticus)

3 years agokernel: make addbroken() static, remove misleading Proc* argument
cinap_lenrek [Mon, 21 Dec 2020 21:03:46 +0000 (22:03 +0100)]
kernel: make addbroken() static, remove misleading Proc* argument

3 years agomerge
cinap_lenrek [Mon, 21 Dec 2020 14:06:04 +0000 (15:06 +0100)]
merge

3 years agopc, xen: move fpu setup/fork/save/restore handlers to pc/fpu.c
cinap_lenrek [Mon, 21 Dec 2020 14:04:48 +0000 (15:04 +0100)]
pc, xen: move fpu setup/fork/save/restore handlers to pc/fpu.c

3 years agohpost: fix usage text
Alex Musolino [Mon, 21 Dec 2020 13:46:26 +0000 (00:16 +1030)]
hpost: fix usage text

3 years agokernel: update procsave() comment, we'r not holding up->rlock anymore
cinap_lenrek [Mon, 21 Dec 2020 13:41:10 +0000 (14:41 +0100)]
kernel: update procsave() comment, we'r not holding up->rlock anymore

3 years agondb/dns: handle dnskey RR's (thanks moody)
cinap_lenrek [Sun, 20 Dec 2020 22:08:11 +0000 (23:08 +0100)]
ndb/dns: handle dnskey RR's (thanks moody)

On 12/18/20, Jacob Moody wrote:
> Hello,
>
> I recently ran in to some issues with pointing an unbound server towards a
> 9front dns server as its upstream.
> The parsing seemed to fail when ndb/dns received a DNSKEY RR from it's own
> upstream source on behalf of unbound.
> This patch catches and stores the DNSKEY from the upstream server to prevent
> this.

3 years agokernel: handle tos and per process pcycle counters in port/
cinap_lenrek [Sun, 20 Dec 2020 21:34:41 +0000 (22:34 +0100)]
kernel: handle tos and per process pcycle counters in port/

we might as well handle the per process cycle
counter in the portable part instead of duplicating the code
in every arch and have inconsistent implementations.

we now have a portable kenter() and kexit() function,
that is ment to be used in trap/syscall from user,
which updates the counters.

some kernels missed initializing Mach.cyclefreq.

3 years ago[12kq]l: remove unix compat code for cputime()
cinap_lenrek [Sat, 19 Dec 2020 18:15:02 +0000 (19:15 +0100)]
[12kq]l: remove unix compat code for cputime()

3 years agolibthread: remove unused _times() function
cinap_lenrek [Sat, 19 Dec 2020 17:47:17 +0000 (18:47 +0100)]
libthread: remove unused _times() function

3 years agokernel: remove Proc* argument from procsetuser() function
cinap_lenrek [Sat, 19 Dec 2020 17:07:12 +0000 (18:07 +0100)]
kernel: remove Proc* argument from procsetuser() function

3 years agolibauth: change programs to use the new procsetuser() function
cinap_lenrek [Sat, 19 Dec 2020 17:02:37 +0000 (18:02 +0100)]
libauth: change programs to use the new procsetuser() function

3 years agolibauth: add procsetuser() function to change user id of the calling process
cinap_lenrek [Sat, 19 Dec 2020 16:46:55 +0000 (17:46 +0100)]
libauth: add procsetuser() function to change user id of the calling process

Provide a central function to change the user id
of the calling process.

This is mostly used by programs to become the none
user, followed by a call to newns().

3 years agoaux/kbdfs: use getuser() from libc
cinap_lenrek [Sat, 19 Dec 2020 14:52:41 +0000 (15:52 +0100)]
aux/kbdfs: use getuser() from libc

3 years agoacme: use global user string variable instead of getuser()
cinap_lenrek [Sat, 19 Dec 2020 14:50:30 +0000 (15:50 +0100)]
acme: use global user string variable instead of getuser()

3 years agoacme: use getuser() in fsinit()
cinap_lenrek [Sat, 19 Dec 2020 14:36:07 +0000 (15:36 +0100)]
acme: use getuser() in fsinit()

3 years agolibc: implement getppid() reading /proc/$pid/ppid instead of /dev/ppid
cinap_lenrek [Sat, 19 Dec 2020 14:15:38 +0000 (15:15 +0100)]
libc: implement getppid() reading /proc/$pid/ppid instead of /dev/ppid

The devcons driver is really the wrong place to
serve per process information.

3 years agodevsons: remove #c/pgrpid
cinap_lenrek [Sat, 19 Dec 2020 13:59:19 +0000 (14:59 +0100)]
devsons: remove #c/pgrpid

The process group id is essentially a unique id
of the namespace but it was never well documented
nor is it used by any program.

3 years agog: initialize files env var
Sigrid [Sat, 19 Dec 2020 12:33:11 +0000 (13:33 +0100)]
g: initialize files env var

3 years agovt: rfork environment varibles (thanks fshahriar)
Ori Bernstein [Sat, 19 Dec 2020 03:23:48 +0000 (19:23 -0800)]
vt: rfork environment varibles (thanks fshahriar)

vt sets several environment variables ($TERM, $COLS, $LINES)
after exiting. This change rforks the environment so that this
detritus doesn't get left behind.

3 years agostrndup: don't assume buffer is terminated
Ori Bernstein [Fri, 18 Dec 2020 15:16:29 +0000 (07:16 -0800)]
strndup: don't assume buffer is terminated

Using strlen in strndup will walk past the first
n bytes up to the terminator, which may not be
present. This is not what we want.

While we're here, do some cleanups.

3 years agokbmap: add Turkish keymap (thanks Kemal)
kvik [Fri, 18 Dec 2020 14:15:49 +0000 (15:15 +0100)]
kbmap: add Turkish keymap (thanks Kemal)

3 years agohpost: support custom headers (thanks julienxx)
Ori Bernstein [Fri, 18 Dec 2020 04:26:38 +0000 (20:26 -0800)]
hpost: support custom headers (thanks julienxx)

hget supports adding custom headers with -r;
it makes sense for hpost to do the same, both
because custom headers are more likely necessary
with POSTs, and for consistency.

3 years agolibap: add strndup
Ori Bernstein [Fri, 18 Dec 2020 03:20:04 +0000 (19:20 -0800)]
libap: add strndup

strndup is part of POSIX.1, so APE should provide it.
This patch adds it, so need to patch it out of fewer
programs going forward.

3 years agoether2114x: make sure pci bar0 is I/O
cinap_lenrek [Thu, 17 Dec 2020 20:02:11 +0000 (21:02 +0100)]
ether2114x: make sure pci bar0 is I/O

3 years agoether2114x: vetting the driver for pc64
cinap_lenrek [Thu, 17 Dec 2020 19:55:59 +0000 (20:55 +0100)]
ether2114x: vetting the driver for pc64

the tulip driver is used in microsofts hypver-v
as the legacy ethernet adapter for pxe booting.

to make the driver work on pc64, we need to
store the Block* pointers in a separate array
instead of stuffing them into buffer address 2
of the hardware descriptor.

also, enable the driver in the pc64 kernel.

3 years agopc: set exit status depending on errors
Sigrid [Tue, 15 Dec 2020 13:37:36 +0000 (14:37 +0100)]
pc: set exit status depending on errors

3 years agopc: treat EOF gracefully, allowing easier use within sam command language
Sigrid [Tue, 15 Dec 2020 13:25:59 +0000 (14:25 +0100)]
pc: treat EOF gracefully, allowing easier use within sam command language

3 years agomerge
Alex Musolino [Tue, 15 Dec 2020 10:25:41 +0000 (20:55 +1030)]
merge

3 years agoico: avoid potential nil pointer dereferences
Alex Musolino [Tue, 15 Dec 2020 10:15:26 +0000 (20:45 +1030)]
ico: avoid potential nil pointer dereferences

Bgeticon can fail, leaving the Icon img pointers nil.

3 years agoico: fix interpretation of 0 widths/heights
Alex Musolino [Tue, 15 Dec 2020 10:14:11 +0000 (20:44 +1030)]
ico: fix interpretation of 0 widths/heights

3 years agoiostats: dup 9p pipe to both fd 0 and fd 1 for exportfs
cinap_lenrek [Sun, 13 Dec 2020 19:23:03 +0000 (20:23 +0100)]
iostats: dup 9p pipe to both fd 0 and fd 1 for exportfs

3 years agocpu(1): refer to oexportfs(4)
cinap_lenrek [Sun, 13 Dec 2020 19:11:44 +0000 (20:11 +0100)]
cpu(1): refer to oexportfs(4)

3 years agoimport(4): refer to oexportfs(4)
cinap_lenrek [Sun, 13 Dec 2020 19:11:30 +0000 (20:11 +0100)]
import(4): refer to oexportfs(4)

3 years agooexportfs: move legacy code for cpu and import to separate program
cinap_lenrek [Sun, 13 Dec 2020 19:09:03 +0000 (20:09 +0100)]
oexportfs: move legacy code for cpu and import to separate program

The initial protocol handling in exportfs for
cpu and import services is a huge mess.

Saparate the code out into its own program with
its own oexportfs(4) manpage.

3 years agokernel: implement per file descriptor OCEXEC flag, reject ORCLOSE when opening /fd...
cinap_lenrek [Sun, 13 Dec 2020 15:04:09 +0000 (16:04 +0100)]
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.

3 years agosdiahci: assume 64-bit PCIWADDR()
cinap_lenrek [Sat, 12 Dec 2020 17:16:06 +0000 (18:16 +0100)]
sdiahci: assume 64-bit PCIWADDR()

3 years agosdiahci: enable pci busmaster before ahciconfigdrive() (fix qemu crash)
cinap_lenrek [Sat, 12 Dec 2020 17:00:41 +0000 (18:00 +0100)]
sdiahci: enable pci busmaster before ahciconfigdrive() (fix qemu crash)

enable pci busmaster before set the fis-receive-enable
bit in the port command register.

not doing so triggers a crash in qemu like:

address_space_unmap: Assertion `mr != NULL' failed.

as qemu tries to process the dma command list as soon
as we set that flag and busmaster dma needs to be enabled
at this point.

3 years agomerge
cinap_lenrek [Fri, 11 Dec 2020 14:24:35 +0000 (15:24 +0100)]
merge

3 years agopc, pc64: make sure write combining is supported in MTRR's before setting it
cinap_lenrek [Fri, 11 Dec 2020 14:23:03 +0000 (15:23 +0100)]
pc, pc64: make sure write combining is supported in MTRR's before setting it

3 years agopc, pc64: ignore MTRR's when MTRRCap.vcnt and MTRRCap.fix are zero
cinap_lenrek [Fri, 11 Dec 2020 14:21:44 +0000 (15:21 +0100)]
pc, pc64: ignore MTRR's when MTRRCap.vcnt and MTRRCap.fix are zero

Bhyve returns 0 in MTRRCap register, so we
can use that instead on relying on cpuid only
to see if MTRR's are supported.

That way we can get rid of the sanity check
in memory.c.

3 years agoupdate Finnish kbmap: fix ¤ on shift+4 and add more AltGr variants
Sigrid [Fri, 11 Dec 2020 14:18:41 +0000 (15:18 +0100)]
update Finnish kbmap: fix ¤ on shift+4 and add more AltGr variants

3 years agovmx: clean up mksegment, memset only if segment existed (devsegment clears new ones)
Sigrid [Thu, 10 Dec 2020 11:19:45 +0000 (12:19 +0100)]
vmx: clean up mksegment, memset only if segment existed (devsegment clears new ones)

3 years agosrc: work on awk scripts too, see "src valley" (thanks phil9)
Sigrid [Thu, 10 Dec 2020 09:33:42 +0000 (10:33 +0100)]
src: work on awk scripts too, see "src valley" (thanks phil9)

3 years agopc, pc64: work around bhyve all uncached MTRR's
cinap_lenrek [Thu, 10 Dec 2020 00:47:19 +0000 (01:47 +0100)]
pc, pc64: work around bhyve all uncached MTRR's

3 years agomerge
cinap_lenrek [Wed, 9 Dec 2020 00:05:14 +0000 (01:05 +0100)]
merge

3 years agobackout OCEXEC changes when potentially opening /srv files
cinap_lenrek [Wed, 9 Dec 2020 00:04:03 +0000 (01:04 +0100)]
backout OCEXEC changes when potentially opening /srv files

Opening a /srv file sets the close-on-exec flag on the
shared channel breaking the exportfs openmount() hack.

The devsrv tries to prevent posting a channel with the
close-on-exec or remove-on-close flags. but nothing
currently prevents this poisoning on open.

Until this gets fixed in eigther exportfs or devsrv,
i'll back out the changes that could have potential side
effects like this.

3 years agosega(1): fix keys (thanks bigato)
kvik [Tue, 8 Dec 2020 20:20:13 +0000 (21:20 +0100)]
sega(1): fix keys (thanks bigato)

3 years agoplan9.ini(8): document *nomtrr= and order the table
cinap_lenrek [Tue, 8 Dec 2020 16:16:12 +0000 (17:16 +0100)]
plan9.ini(8): document *nomtrr= and order the table

3 years agopc, pc64: cleanup cpuidentify() and some comments
cinap_lenrek [Tue, 8 Dec 2020 15:58:41 +0000 (16:58 +0100)]
pc, pc64: cleanup cpuidentify() and some comments

3 years agopc, pc64: add *nomtrr= kernel parameter
cinap_lenrek [Tue, 8 Dec 2020 15:34:36 +0000 (16:34 +0100)]
pc, pc64: add *nomtrr= kernel parameter

3 years agopc64: preserve reserved bits in CR0/CR4 for amd64 in mtrr setstate()
cinap_lenrek [Tue, 8 Dec 2020 15:00:57 +0000 (16:00 +0100)]
pc64: preserve reserved bits in CR0/CR4 for amd64 in mtrr setstate()

On AMD64, CR0/CR4 are 64-bit registers, with
the upper half reserved. So use uintptr type
to store the register values to get 32 bit on 386
and 64 bit on AMD64.

3 years agovncv: backing out previous change, this needs another revision
cinap_lenrek [Tue, 8 Dec 2020 14:15:13 +0000 (15:15 +0100)]
vncv: backing out previous change, this needs another revision

3 years agovncv: do NOT map Kaltgr to meta, introduce Mod4 (Super) as an extra key to use instead
Sigrid [Tue, 8 Dec 2020 13:32:28 +0000 (14:32 +0100)]
vncv: do NOT map Kaltgr to meta, introduce Mod4 (Super) as an extra key to use instead

3 years agovmx(1): build vmxgdb by default, clean it up as well
Sigrid [Tue, 8 Dec 2020 12:18:10 +0000 (13:18 +0100)]
vmx(1): build vmxgdb by default, clean it up as well

3 years agovmx: nanosec(): fix non-interruptable temporary, assign fasthz only once after xstart
cinap_lenrek [Tue, 8 Dec 2020 12:04:52 +0000 (13:04 +0100)]
vmx: nanosec(): fix non-interruptable temporary, assign fasthz only once after xstart

3 years agopc: move ldmxcsr() prototype to fpu.c
cinap_lenrek [Tue, 8 Dec 2020 11:42:36 +0000 (12:42 +0100)]
pc: move ldmxcsr() prototype to fpu.c

3 years agovmx: add fmt checking, fix fmt errors, remove duplication for vmdebug
cinap_lenrek [Tue, 8 Dec 2020 11:40:28 +0000 (12:40 +0100)]
vmx: add fmt checking, fix fmt errors, remove duplication for vmdebug

3 years agonusb/kb: update button state if event was actually received, fix typos (thanks umbrat...
Sigrid [Tue, 8 Dec 2020 10:47:15 +0000 (11:47 +0100)]
nusb/kb: update button state if event was actually received, fix typos (thanks umbraticus)

3 years agodevmouse: remove redundant check
Sigrid [Tue, 8 Dec 2020 10:21:18 +0000 (11:21 +0100)]
devmouse: remove redundant check

3 years agomouse(3): blankS, setS to follow the convention (thanks umbraticus)
Sigrid [Tue, 8 Dec 2020 09:34:10 +0000 (10:34 +0100)]
mouse(3): blankS, setS to follow the convention (thanks umbraticus)

3 years agomouse(3): document "scrollswap" ctl message, fix style a bit (thanks umbraticus)
Sigrid [Tue, 8 Dec 2020 09:21:17 +0000 (10:21 +0100)]
mouse(3): document "scrollswap" ctl message, fix style a bit (thanks umbraticus)

3 years agovesa: make unsupported function not an error, set return status
Sigrid [Tue, 8 Dec 2020 09:08:49 +0000 (10:08 +0100)]
vesa: make unsupported function not an error, set return status

3 years agovmx: add -D option to enable debug messages, use vmdebug for non-fatal "errors"
Sigrid [Tue, 8 Dec 2020 09:01:44 +0000 (10:01 +0100)]
vmx: add -D option to enable debug messages, use vmdebug for non-fatal "errors"

3 years agovmx: add -v|-w flag to control window creation behaviour
cinap_lenrek [Mon, 7 Dec 2020 17:59:54 +0000 (18:59 +0100)]
vmx: add -v|-w flag to control window creation behaviour

The -v flag now does not create a new rio window,
while -w flag does (restores the old behaviour).

This allows vmx to run under vncs and is in general
mode aligned to other emulators and programs.

3 years agolibcomplete: open internal file-descriptor with OCEXEC flag
cinap_lenrek [Mon, 7 Dec 2020 16:18:33 +0000 (17:18 +0100)]
libcomplete: open internal file-descriptor with OCEXEC flag

3 years agolibsec: open internal file-descriptors with OCEXEC flag
cinap_lenrek [Mon, 7 Dec 2020 16:14:34 +0000 (17:14 +0100)]
libsec: open internal file-descriptors with OCEXEC flag

3 years agomerge
cinap_lenrek [Mon, 7 Dec 2020 15:48:19 +0000 (16:48 +0100)]
merge

3 years agolibauthsrv: open internal file-descriptors with OCEXEC flag
cinap_lenrek [Mon, 7 Dec 2020 15:47:06 +0000 (16:47 +0100)]
libauthsrv: open internal file-descriptors with OCEXEC flag

3 years agolibauth: open internal file-descriptors with OCEXEC flag
cinap_lenrek [Mon, 7 Dec 2020 15:46:34 +0000 (16:46 +0100)]
libauth: open internal file-descriptors with OCEXEC flag

3 years agoaux/kbdfs, kbmaps: enable Kmod4 for other layouts, not just neo2
Sigrid [Mon, 7 Dec 2020 15:42:56 +0000 (16:42 +0100)]
aux/kbdfs, kbmaps: enable Kmod4 for other layouts, not just neo2

3 years agolibdraw: open file-descriptor with OCEXEC flag in readcolmap()
cinap_lenrek [Mon, 7 Dec 2020 15:30:27 +0000 (16:30 +0100)]
libdraw: open file-descriptor with OCEXEC flag in readcolmap()

3 years agolibndb: open internal file-descriptors with OCEXEC flag
cinap_lenrek [Mon, 7 Dec 2020 14:15:02 +0000 (15:15 +0100)]
libndb: open internal file-descriptors with OCEXEC flag

3 years agolib9p: open internal file-descriptor with OCEXEC flag in getremotesys()
cinap_lenrek [Mon, 7 Dec 2020 13:54:27 +0000 (14:54 +0100)]
lib9p: open internal file-descriptor with OCEXEC flag in getremotesys()

3 years agolib9p: open /mnt/factotum/rpc with OCEXEC flag in auth9p()
cinap_lenrek [Mon, 7 Dec 2020 13:51:53 +0000 (14:51 +0100)]
lib9p: open /mnt/factotum/rpc with OCEXEC flag in auth9p()

3 years agolib9p: improve reqqueuecreate()
cinap_lenrek [Mon, 7 Dec 2020 13:49:12 +0000 (14:49 +0100)]
lib9p: improve reqqueuecreate()

- open /proc/n/ctl with OCEXEC flag
- format pid as ulong
- don't leak the fd

3 years agomerge
cinap_lenrek [Mon, 7 Dec 2020 13:33:51 +0000 (14:33 +0100)]
merge

3 years agolibdraw: open internal file-descriptors with OCEXEC flag
cinap_lenrek [Mon, 7 Dec 2020 13:32:34 +0000 (14:32 +0100)]
libdraw: open internal file-descriptors with OCEXEC flag