Re: [dev] [quark] Performance issues

2019-09-25 Thread Laslo Hunhold
On Wed, 25 Sep 2019 17:03:06 +0200 Markus Wichmann wrote: Dear Markus, > You might not, but a library you use might. I remember musl testing > for open FDs 0, 1, and 2 and opening /dev/null to make up for missing > FDs. And crashing (deliberately) if that fails. But then, that only > happens for

Re: [dev] [quark] Performance issues

2019-09-25 Thread Laslo Hunhold
On Wed, 25 Sep 2019 12:05:40 -0700 Anselm Garbe wrote: Dear Anselm, > My thinking is different, I'd rather discourage running quark as root > at all, if it detects uid==0 it should spit out a warning. The only > reason for root privileges would be port 80. Yes chroot() would > require this as we

Re: [dev] [quark] Performance issues

2019-09-25 Thread Laslo Hunhold
On Wed, 25 Sep 2019 17:26:32 +0200 Hiltjo Posthuma wrote: Dear Hiltjo, > Yes and to add to it: > Of course unveil and pledge also don't need (initial) root > permissions, which makes locking down basic programs very easy. that's what I like about them. Sure, there are good reasons not to allow

Re: [dev] [quark] Performance issues

2019-09-25 Thread Anselm Garbe
Hi Laslo, On Tue, 24 Sep 2019 at 23:22, Laslo Hunhold wrote: > On Tue, 24 Sep 2019 11:17:09 -0700 > Anselm Garbe wrote: > > - Always run as current user, if root is used chroot() to current > > directory. > > chroot() should never be optional. unveil() might bring the same > effect, but the unve

Re: [dev] Setting keyboard shortcut for clicking and moving mouse

2019-09-25 Thread Piotr Oleskiewicz
Hi Mark, I'm not sure this is implemented in dwm. You can take a look at the wmp executable from the wmutils project (https://github.com/wmutils/core) and map it in your config.h by spawning wmp from there. Best wishes, Piotr

Re: [dev] Setting keyboard shortcut for clicking and moving mouse

2019-09-25 Thread C.J. Wagenius
Have a look at  https://linuxreviews.org/HOWTO_use_the_numeric_keyboard_keys_as_mouse_in_XOrg /cjw 25 sep. 2019 18:30 av c...@riseup.net: > Hello, > Does anyone know or have sample config.h codes on how to set keybo

[dev] Setting keyboard shortcut for clicking and moving mouse

2019-09-25 Thread CSO
Hello, Does anyone know or have sample config.h codes on how to set keyboard shutcut for left mouse click, middle mouse click, right mouse click, moving mouse in web broswer to right, up, left, down direction? After setting these keyboard shortcut DWM config.h file, we probably no longer need co

Re: [dev] [quark] Performance issues

2019-09-25 Thread Markus Wichmann
On Wed, Sep 25, 2019 at 04:32:45PM +0200, Laslo Hunhold wrote: > please excuse the ignorant question, but why would you want to access > /dev/null? The problem with /dev/urandom is well-known, which is why > OpenBSD has arc4random(3). > You might not, but a library you use might. I remember musl t

Re: [dev] [quark] Performance issues

2019-09-25 Thread Hiltjo Posthuma
On Wed, Sep 25, 2019 at 04:32:45PM +0200, Laslo Hunhold wrote: > On Wed, 25 Sep 2019 16:06:52 +0200 > Markus Wichmann wrote: > > Dear Markus, > > > chroot() has several detrimental effects, most importantly making it > > impossible to access /dev/null and /dev/urandom. Unless, of course, > > mea

Re: [dev] [quark] Performance issues

2019-09-25 Thread Laslo Hunhold
On Wed, 25 Sep 2019 16:06:52 +0200 Markus Wichmann wrote: Dear Markus, > chroot() has several detrimental effects, most importantly making it > impossible to access /dev/null and /dev/urandom. Unless, of course, > measures are taken to replicate these devices underneath the new root. please exc

Re: [dev] [quark] Performance issues

2019-09-25 Thread Markus Wichmann
On Wed, Sep 25, 2019 at 08:20:52AM +0200, Laslo Hunhold wrote: > chroot() should never be optional. unveil() might bring the same > effect, but the unveil()-wrapper in quark doesn't do anything on Linux. > chroot() has several detrimental effects, most importantly making it impossible to access /d