Re: Malloc config became global sysctl in 6.5

2019-04-27 Thread Vincent Legoll
On Sat, Apr 27, 2019 at 3:32 PM Igor Podlesny  wrote:
> On Sat, 27 Apr 2019 at 18:09, Marc Espie  wrote:
> > Man, you have some really strange delusions about how to harden things.
>
> %  man malloc.conf | grep -i security
>  S   Enable all options suitable for security auditing.
>
> Oh, those hypocrite wankers here and there..

Looks like auditing and hardening are not exactly the same thing.

-- 
Vincent Legoll



Re: migrate python script from sudo to doas

2018-10-30 Thread Vincent Legoll
Hello,

On Tue, Oct 30, 2018 at 12:33 PM Markus Rosjat  wrote:
>   exit = subprocess.check_call(['doas', 'useradd', '-u %s' % user_id,
> '-g =uid',
> '-s /sbin/nologin',
> '-d %s' % mb_parent_dir,
> user_name])

Maybe you should try like the following:

cmd = ['doas', 'useradd',
  '-u', user_id,
  '-g', '=uid',
  '-s', '/sbin/nologin',
  '-d', mb_parent_dir,
  user_name]
exit = subprocess.check_call(cmd)



Re: How to copy n bytes from stdin to stdout?

2018-06-21 Thread Vincent Legoll
Hello,

The man page did not say bs has to be a power of 2.

On a very old macppc openbsd box:

vince@mini:~$ dd count=1 bs=123456789 < /dev/zero > zero.bin
1+0 records in
1+0 records out
123456789 bytes transferred in 9.833 secs (12554493 bytes/sec)

On a much more recent core i7 linux:

vince@dell:~$ dd count=1 bs=123456789 < /dev/zero > zero.bin
1+0 records in
1+0 records out
123456789 bytes (123 MB, 118 MiB) copied, 0,0703818 s, 1,8 GB/s


This may not work with huge bs though...


-- 
Vincent Legoll