Re: Employers, Jobs and OpenBSD

2018-07-15 Thread Jacqueline Jolicoeur
> Spot the candidate that is aware of common standards, is brave enough to come 
> forward saying that the test is flowed (we ask to write /var stuff inside 
> /usr), and returns the POSIX-compliant solution, citing the standard.

What if they are brave enough to decide to work elsewhere? A place
of employment without intentional flaws in interview questions for
example.



Re: newaliases vs makemap

2018-07-15 Thread Joshua Taylor Eppinette

On Sun, Jul 15, 2018 at 05:59:58PM -0700, Scott Vanderbilt wrote:

In /etc/mail/aliases, there is the following note:

#   >>The program "newaliases" must be run after
#   >> NOTE >>  this file is updated for any changes to
#   >>show through to smtpd.


I found this note confusing, because I was able to make changes and see them 
reflected without running newaliases(8). However, I believe this is because 
you only need to run newaliases(8)/makemap(8) if you are using a db table.


--
Joshua Taylor Eppinette 
https://jteppinette.com
0xFCEE7F833CE7D0D9



newaliases vs makemap

2018-07-15 Thread Scott Vanderbilt

In /etc/mail/aliases, there is the following note:

#   >>The program "newaliases" must be run after
#   >> NOTE >>  this file is updated for any changes to
#   >>show through to smtpd.

Yet the man page for newaliases(8) says:

    Note: this utility is provided for sendmail compatibility. The 
preferred way of rebuilding the database is withmakemap(8) 
:


# makemap -t aliases /etc/mail/aliases

Taking the note in the man page at face value, I would expect that the 
note in /etc/mail/aliases is now out-of-date, is it not? Or am I 
overlooking something?


Thanks.




rying to get meta-data configured for cloud-image VMM instances

2018-07-15 Thread Ax0n
I'm hoping someone on-list has actually gotten this to work and can point
out where I'm going wrong.

I've been trying for months off and on to get this to work. I have a
feeling I just don't understand the documentation for meta-data (
https://github.com/reyk/meta-data ) though I see at least one httpd.conf
anachronism in the documentation. "Strip" isn't allowed in the "root"
definition of httpd.conf, so httpd won't even start with this chunk of
config:

server "meta-data" {
listen on 169.254.169.254 port 80
fastcgi socket "/run/httpd.sock"
root { "/", strip 1 }
}

I've removed ", strip 1 " from the httpd.conf, so my whole config looks
like this. N.B. This may be my actual problem, but I don't know how to
solve it.

ext_addr="*"
server "default" {
root "/htdocs/"
directory auto index
listen on $ext_addr port 80
}

# Include MIME types instead of the built-in ones
types {
include "/usr/share/misc/mime.types"
}

server "meta-data" {
listen on 169.254.169.254 port 80
fastcgi socket "/run/httpd.sock"
root { "/" }
}

I've otherwise installed meta-data as the instructions say, and started it
with this command-line:

doas kfcgi -r -n 2 -u www -p / -- /usr/local/libexec/meta-data

The meta-data directory structure is as follows:
[axon@transient ~]$ find /home/vm/meta-data/ -type f
/home/vm/meta-data/vmmbuntu/instance-id
/home/vm/meta-data/vmmbuntu/username
/home/vm/meta-data/vmmbuntu/public-keys/0/openssh-key

Where instance-id contains "vm1", username contains "puffy" and the
openssh-key is the public key for this laptop I'm running on.

I downloaded xenial-server-cloudimg-amd64-disk1.img and converted it to raw
with the qemu-img utility. I also made a 10GB image that I intended to
install some stuff permanently to (ubuntu.img)

I then started the vm like this:

doas vmctl start vmmubuntu -d xenial-server-cloudimg-amd64-disk1.raw -d
ubuntu.img -n local -m 2G -c
Connected to /dev/ttyp2 (speed 115200)
SeaBIOS (version 1.11.0p0-OpenBSD-vmm)


   [0.00] Initializing
cgroup subsys cpuset
[0.00] Initializing cgroup subsys cpu
[0.00] Initializing cgroup subsys cpuacct
[0.00] Linux version 4.4.0-130-generic (buildd@lgw01-amd64-039)
(gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9) ) #156-Ubuntu
SMP Thu Jun 14 08:53:28 UTC 2018 (Ubuntu 4.4.0-130.156-generic 4.4.134)
[0.00] Command line: BOOT_IMAGE=/boot/vmlinuz-4.4.0-130-generic
root=LABEL=cloudimg-rootfs ro console=tty1 console=ttyS0
[0.00] KERNEL supported cpus:
[0.00]   Intel GenuineIntel
[0.00]   AMD AuthenticAMD
[0.00]   Centaur CentaurHauls
[0.00] Disabled fast string operations
[0.00] x86/fpu: Legacy x87 FPU detected.
[0.00] x86/fpu: Using 'eager' FPU context switches.
[0.00] e820: BIOS-provided physical RAM map:
[0.00] BIOS-e820: [mem 0x-0x0009f7ff] usable
[0.00] BIOS-e820: [mem 0x0009f800-0x0009]
reserved
[0.00] BIOS-e820: [mem 0x000f-0x000f]
reserved
[0.00] BIOS-e820: [mem 0x0010-0x7fffbfff] usable
[0.00] BIOS-e820: [mem 0x7fffc000-0x7fff]
reserved
[0.00] BIOS-e820: [mem 0xfffc-0x]
reserved
[0.00] NX (Execute Disable) protection: active
[0.00] SMBIOS 2.4 present.
[0.00] e820: last_pfn = 0x7fffc max_arch_pfn = 0x4
[0.00] MTRR: Disabled
[0.00] x86/PAT: MTRRs disabled, skipping PAT initialization too.
[0.00] x86/PAT: Configuration [0-7]: WB  WT  UC- UC  WB  WT  UC-
UC
[0.00] Scanning 1 areas for low memory corruption
[0.00] RAMDISK: [mem 0x36aa4000-0x37549fff]
[0.00] ACPI: Early table checksum verification disabled
[0.00] ACPI BIOS Error (bug): A valid RSDP was not found
(20150930/tbxfroot-243)
[0.00] No NUMA configuration found
[0.00] Faking a node at [mem 0x-0x7fffbfff]
[0.00] NODE_DATA(0) allocated [mem 0x7fff7000-0x7fffbfff]
[0.00] Zone ranges:
[0.00]   DMA  [mem 0x1000-0x00ff]
[0.00]   DMA32[mem 0x0100-0x7fffbfff]
[0.00]   Normal   empty
[0.00]   Device   empty
[0.00] Movable zone start for each node
[0.00] Early memory node ranges
[0.00]   node   0: [mem 0x1000-0x0009efff]
[0.00]   node   0: [mem 0x0010-0x7fffbfff]
[0.00] Initmem setup node 0 [mem 0x1000-
0x7fffbfff]
[0.00] SFI: Simple Firmware Interface v0.81
http://simplefirmware.org
[0.00] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
[0.00] No local APIC present
[0.00] APIC: disable apic facility
[0.00] APIC: switched to apic NOOP
[0.00] PM: Register

pf(4) queuing and interfaces

2018-07-15 Thread David Higgs
My wireless AP puts traffic from each WiFi network (trusted, guests,
etc.) into a separate VLAN, which are then picked up by my OpenBSD
router and filtered appropriately via pf rules.

In other words:
  em1 is for untagged traffic to the AP itself
  vlan100 has parent em1 and is for my "trusted" WLAN
  vlan200 also has parent em1 and is for my "guest" WLAN

pf.conf includes the following line:
  queue wlan_q on em1 bandwidth 50M max 50M flows 1024 qlimit 1024 default

When I specify only the queuing rule as shown above, is traffic sent
on vlanXXX also receive this queuing policy?

If not, should I divide the physical bandwidth between logical
interfaces?  Does FQ-CoDel work correctly if they are each assigned
the full physical bandwidth?  Or should I be dividing one or both of
the configurable interface rates?

And lastly, if I define a queue as below - does this expand into two
different queues with the same name or one queue with bandwidth shared
between two interfaces?  Running "pfctl -vsq" indicates the former,
but I'd like to be sure.

  queue some_q on { em2, em3 } bandwidth 95M max 95M flows 1024 qlimit
1024 default

Thanks.

--david



Stockholm anoncvs rsync mirror not updating

2018-07-15 Thread Andreas Kusalananda Kähäri
The anoncvs rsync mirror at

rsync://anoncvs.eu.openbsd.org/OpenBSD-cvs/

seems to have stopped updating.  This has happened before when the
cvsync (?) on the mirror fails or gets stuck.

I sent a message to the maintainer this morning, but I thought I'd just
mention it here too.

Andreas


--
Andreas Kusalananda Kähäri,
National Bioinformatics Infrastructure Sweden (NBIS),
Uppsala University, Sweden.








När du har kontakt med oss på Uppsala universitet med e-post så innebär det att 
vi behandlar dina personuppgifter. För att läsa mer om hur vi gör det kan du 
läsa här: http://www.uu.se/om-uu/dataskydd-personuppgifter/

E-mailing Uppsala University means that we will process your personal data. For 
more information on how this is performed, please read here: 
http://www.uu.se/om-uu/dataskydd-personuppgifter/



Re: Employers, Jobs and OpenBSD

2018-07-15 Thread Rupert Gallagher
Spot the candidate that is aware of common standards, is brave enough to come 
forward saying that the test is flowed (we ask to write /var stuff inside 
/usr), and returns the POSIX-compliant solution, citing the standard.

On Sun, Jul 15, 2018 at 18:31, Bodie  wrote:

> On 15.7.2018 17:12, Rupert Gallagher wrote: > If someone is cocky about a 
> certain unix-like OS on their CV but is > unable to adhere to the standards 
> while also using other unix-like > OSs, they are shown the door where they 
> came from. > > A test example that comes to mind is writing /var content into 
> /usr. > Many people in this list would not get a job. > What is a purpose of 
> such test and what is expected to be proved by this operation? Just curious, 
> nothing more. > On Sat, Jul 14, 2018 at 04:05, Man Hobby wrote: > >> Hi, What 
> is the opinion of employers about OpenBSD? There is reason >> for to learn 
> use OpenBSD to find job? If not, why? If there is not >> reason for to learn 
> use OpenBSD to find job, why use OpenBSD? @gmail.com>


Re: Employers, Jobs and OpenBSD

2018-07-15 Thread Bodie




On 15.7.2018 17:12, Rupert Gallagher wrote:

If someone is cocky about a certain unix-like OS on their CV but is
unable to adhere to the standards while also using other unix-like
OSs, they are shown the door where they came from.

A test example that comes to mind is writing /var content into /usr.
Many people in this list would not get a job.



What is a purpose of such test and what is expected to be proved by this 
operation? Just curious, nothing more.



On Sat, Jul 14, 2018 at 04:05, Man Hobby  wrote:

Hi, What is the opinion of employers about OpenBSD? There is reason 
for to learn use OpenBSD to find job? If not, why? If there is not 
reason for to learn use OpenBSD to find job, why use OpenBSD?




Re: Employers, Jobs and OpenBSD

2018-07-15 Thread Rupert Gallagher
If someone is cocky about a certain unix-like OS on their CV but is unable to 
adhere to the standards while also using other unix-like OSs, they are shown 
the door where they came from.

A test example that comes to mind is writing /var content into /usr. Many 
people in this list would not get a job.

On Sat, Jul 14, 2018 at 04:05, Man Hobby  wrote:

> Hi, What is the opinion of employers about OpenBSD? There is reason for to 
> learn use OpenBSD to find job? If not, why? If there is not reason for to 
> learn use OpenBSD to find job, why use OpenBSD?