Re: [dev] pledge(2) patches

2016-05-18 Thread ilabdsf
On Wed, May 18, 2016 at 02:46:16PM -0700, Evan Gates wrote: > > #ifndef __OpenBSD__ > > int pledge(const char *promises, const char *paths[]) { return 0; } > > #endif > > Why the full function instead of > > #define pledge(x,y) 0 > > (perhaps to enforce correct types?) When using such trick

Re: [dev] pledge(2) patches

2016-05-18 Thread Evan Gates
> #ifndef __OpenBSD__ > int pledge(const char *promises, const char *paths[]) { return 0; } > #endif Why the full function instead of #define pledge(x,y) 0 (perhaps to enforce correct types?) -emg

Re: [dev] pledge(2) patches

2016-05-18 Thread FRIGN
On Wed, 18 May 2016 18:50:15 +0200 Kamil Cholewiński wrote: Hey Kamil, > Included are pledge(2) diffs for dwm, dmenu, st and slock. I've been > testing these for a week now (both stress-tests and normal usage), and I > have no ill effects to report. I would never welcome this, but I'm glad to m

Re: [dev] opportunities for dwm docs to suck even less

2016-05-18 Thread Hiltjo Posthuma
On Wed, May 18, 2016 at 10:05:30AM -0800, Britton Kerin wrote: > On Tue, May 17, 2016 at 11:54 PM, FRIGN wrote: > > On Tue, 17 May 2016 16:12:31 -0800 > > Britton Kerin wrote: > > > > Hey Britton, > > > >> There are a couple problems: > > > > then fix them god damn it! Suckless is a group of peop

Re: [dev] pledge(2) patches

2016-05-18 Thread Hiltjo Posthuma
On Wed, May 18, 2016 at 06:50:15PM +0200, Kamil Cholewiński wrote: > Hi folks, > > This is purely OpenBSD-specific; had a brief look at SecComp and > promptly ran away. > > Included are pledge(2) diffs for dwm, dmenu, st and slock. I've been > testing these for a week now (both stress-tests and n

Re: [dev] pledge(2) patches

2016-05-18 Thread Kamil Cholewiński
On Wed, 18 May 2016, Marc André Tanner wrote: > Independent of whether the functionality is desired, you probably want > to implement it along the lines of: > > #ifndef __OpenBSD__ > int pledge(const char *promises, const char *paths[]) { return 0; } > #endif > > This way you won't clutter all

Re: [dev] pledge(2) patches

2016-05-18 Thread Marc André Tanner
On Wed, May 18, 2016 at 06:50:15PM +0200, Kamil Cholewiński wrote: > +#if defined(__OpenBSD__) > + if (pledge("stdio rpath dns unix prot_exec proc exec", NULL) < 0) { > + die("pledge\n"); > + } > +#endif Independent of whether the functionality is desired, you probably want to

Re: [dev] opportunities for dwm docs to suck even less

2016-05-18 Thread Britton Kerin
On Tue, May 17, 2016 at 11:54 PM, FRIGN wrote: > On Tue, 17 May 2016 16:12:31 -0800 > Britton Kerin wrote: > > Hey Britton, > >> There are a couple problems: > > then fix them god damn it! Suckless is a group of people who take > matters into their own hands. Clone the dwm/wiki repos, fix the > w

Re: [dev] opportunities for dwm docs to suck even less

2016-05-18 Thread Britton Kerin
On Tue, May 17, 2016 at 11:48 PM, Staven wrote: > On Tue, May 17, 2016 at 04:12:31PM -0800, Britton Kerin wrote: >> The into page that did get me going was: >> http://rhunter.org/blog/2012/04/17/dwm-a-tutorial-for-beginners/ > > I was always under the impression that dwm was simply not meant for >

Re: [dev] [slock] PAM support

2016-05-18 Thread Eric Pruitt
On Mon, May 16, 2016 at 03:58:02PM -0700, Eric Pruitt wrote: > On Mon, May 16, 2016 at 09:51:08PM +0200, Jan Christoph Ebersbach wrote: > > > On the system I'm using that relies on PAM, my account doesn't have an > > > entry in the local /etc/passwd file. Disabling getpw and related bits > > > make

Re: [dev] [sup] Bring the simple user privilege escalation tool back home?

2016-05-18 Thread Marc André Tanner
On Tue, May 17, 2016 at 08:54:19AM +0200, Anselm R Garbe wrote: > On 16 May 2016 at 23:22, Marc André Tanner wrote: > > On Tue, May 10, 2016 at 01:27:40PM +0200, FRIGN wrote: > >> I think the vis editor alone is enough bloat in the suckless > >> repositories. > > > > I don't know what vis has to d

[dev] pledge(2) patches

2016-05-18 Thread Kamil Cholewiński
Hi folks, This is purely OpenBSD-specific; had a brief look at SecComp and promptly ran away. Included are pledge(2) diffs for dwm, dmenu, st and slock. I've been testing these for a week now (both stress-tests and normal usage), and I have no ill effects to report. - st has been tortured with c

Re: [dev] opportunities for dwm docs to suck even less

2016-05-18 Thread FRIGN
On Tue, 17 May 2016 16:12:31 -0800 Britton Kerin wrote: Hey Britton, > There are a couple problems: then fix them god damn it! Suckless is a group of people who take matters into their own hands. Clone the dwm/wiki repos, fix the wording and submit a patch. I'm positive you can make valuable c

Re: [dev] opportunities for dwm docs to suck even less

2016-05-18 Thread Staven
On Tue, May 17, 2016 at 04:12:31PM -0800, Britton Kerin wrote: > The into page that did get me going was: > http://rhunter.org/blog/2012/04/17/dwm-a-tutorial-for-beginners/ I was always under the impression that dwm was simply not meant for the sort of people who don't know what a "terminal emulat