OpenBSD/xenocara pYqsdDE — xserver/os privsep.c
xserver's priv proc is responsible for opening devices in O_RDWR mode and send their fds over to the parent proc. Knowing this then we already have a list of all possible devices that might be opened in the future, in struct okdev allowed_devices[], and we just need to traverse them and unveil(2) each one with read/write permissions. positive feedback from semarie@, OK matthieu@
Version | Delta | File | |
---|---|---|---|
1.30 | +5 | -1 | xserver/os/privsep.c |
+5 | -1 | 1 files |