Re: mount_mfs: why chdir?

2025-04-04 Thread Michael van Elst
mo...@rodents-montreal.org (Mouse) writes: >> mount does a realpath() to resolve relative mount paths, not sure >> since when.. >You're talking about mount(8), not mount(2), right? Arguably mount_mfs >should do the same, for consistency if nothing else. mount(8) and the various mount_xxx progra

Re: mount_mfs: why chdir?

2025-03-30 Thread Michael van Elst
mo...@rodents-montreal.org (Mouse) writes: >Perhaps, but that's equally true of every other mount operation >(except, to a partial extent, union mounts). Why would mount_mfs get >special treatment? I don't see any chdir call in, for example, >mount_ffs. mount_ffs applies the mount system call a

Re: CVS commit: src/sbin/umount

2025-03-29 Thread Michael van Elst
dholland-t...@netbsd.org (David Holland) writes: >But that's a backwards argument anyway. The point is that a vnd is a >shim whose purpose is to work around a weakness in the system >interfaces. (Namely, that you can't mount a fs image in a regular >file.) It has no state, and no semantics of its

Re: rpc.statd dumps core, but continues

2025-03-17 Thread Michael van Elst
e...@math.uni-bonn.de (Edgar =?iso-8859-1?B?RnXf?=) writes: >> No idea why it segfaults, but the status information is kept in >> /var/db/statd.status. That's a db1 file and might be corrupt. >Any way to check the integrity? Maybe with the db command. But as long as there are no NFS file locks, y

Re: rpc.statd dumps core, but continues

2025-03-17 Thread Michael van Elst
e...@math.uni-bonn.de (Edgar =?iso-8859-1?B?RnXf?=) writes: >> so you're seeing not "continued to run" but "is running again"? >No. ps u shows the start time as 04Mar. rpc.statd runs on its own and doesn't get restarted automatically. It does fork() to notify clients about NFS server restarts. N

Re: `ls -1s` doesn't print "total"

2024-11-03 Thread Michael van Elst
mo...@rodents-montreal.org (Mouse) writes: >For what it's worth, it appears this behaviour is very longstanding. I >find that 1.4T and 5.2 behave identically in this respect and are >consistent with the "programmatic consumption versus human consumption" >interpretation. The change seems to be m

Re: Adding functions to libutil, part 2

2024-06-21 Thread Michael van Elst
rein...@dropje.13thmonkey.org (Reinoud Zandijk) writes: >> We have 'fsck' which resolves the device name and 'fsck_*' that gets passed >> the resolved name. >If they were never intended to be used separately then shouldn't they be in >libexec? Well, that's history for you :) >> We also have 'd

Re: Adding functions to libutil, part 2

2024-06-20 Thread Michael van Elst
rein...@netbsd.org (Reinoud Zandijk) writes: >that returns a canonical raw device name when passed a device name in one of >the following ways: > /dev/ld0 > name="UUID" > name="ROOT.x" > /dev/dk1 > /some/mountpoint > some/file/name That looks like many distinc

Re: Adding functions to libutil, part 1

2024-06-20 Thread Michael van Elst
rein...@netbsd.org (Reinoud Zandijk) writes: > int getdiskinfo(const char *s, int fd, const char *dt, struct disk_geom *geo, > struct dkwedge_info *dkw); > int getdisksize(const char *name, u_int *secsize, off_t *mediasize); There are kernel functions of the same name: int getdiskinfo(s

Re: Issues with lseek(2) on a block device

2024-02-24 Thread Michael van Elst
t...@panix.com (Thor Lancelot Simon) writes: >Probably not a good idea to start with lseek() because if you _do_ >encounter a tape device, seeking to SEEK_END could take you an extremely >long time. lseek() doesn't move the tape. But the open() or close() may trigger tape operations like loading

Re: Issues with lseek(2) on a block device

2024-02-22 Thread Michael van Elst
mlel...@serpens.de (Michael van Elst) writes: >But it also does not work for wedges or device mapper volumes >(zfs vol probably fail too) as these don't implement the >used internal ioctl for disk devices. At least that part >would be easy to fix, but of questionable value.

Re: Issues with lseek(2) on a block device

2024-02-21 Thread Michael van Elst
cryintotheblue...@gmail.com (Sad Clouds) writes: >Hello, for most operating systems determining the size of a block >device can be done with: >lseek(fd, 0, SEEK_END); >However, on NetBSD this does not seem to work. The disk size is only retrieved at open time and stored in the cached vnode. st

Re: Trivial program size inflation

2023-07-02 Thread Michael van Elst
mo...@rodents-montreal.org (Mouse) writes: >> Way more interesting than useless tech demo sizes would size >> inflation of a real world minimal program, when linked statically. >Why? If I'm looking at overhead size, I am most interested in just the >overhead size, which is exactly what a no-op p

Re: Trivial program size inflation

2023-07-01 Thread Michael van Elst
thor...@me.com (Jason Thorpe) writes: >Obviously this is not feasible to do with static binaries In the world of go, you skip libc and static binaries are the norm.

Re: Trivial program size inflation

2023-07-01 Thread Michael van Elst
mo...@rodents-montreal.org (Mouse) writes: > amd64, 9.0_STABLE (ftp.n.o): >textdata bss dec hex filename > 562318 29064 2176416 2767798 2a3bb6 main >> amd64, 9.0_STABLE: >>data bss dec hex filename >>2873 186 723131 c3b a.o

Re: Trivial program size inflation

2023-07-01 Thread Michael van Elst
mo...@rodents-montreal.org (Mouse) writes: >>> amd64, 9.0_STABLE (ftp.n.o): >>>textdata bss dec hex filename >>> 562318 29064 2176416 2767798 2a3bb6 main amd64, 9.0_STABLE: data bss dec hex filename 2873 186 723131 c3b a.out crt0 pull

Re: bl*cklist configuration, ssh only

2023-06-02 Thread Michael van Elst
ed or logged somewhere, but you could augment the helper script. Greetings, -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: bl*cklist configuration, ssh only

2023-06-01 Thread Michael van Elst
blocked by npf vs 53. blocklistctl dumps the policy database. npf doesn't implement that policy, but only specfic blocking rules. blocklistd adds npf rules when the policy is violated (e.g. the 3rd login failure) and removes rules when a timeout is reached. Greetings, --

Re: bl*cklist configuration, ssh only

2023-05-30 Thread Michael van Elst
ignat...@cs.uni-bonn.de writes: >Hello, >is there a minimal example how to configure bl*cklistd and npf to >block attacks on sshd? /etc/bl*cklistd.conf: # Bl*cklist rule # adr/mask:port typeproto owner namenfail disable [local] ssh stream tcp *

Re: inetd(8): continue or exit on error?

2023-05-29 Thread Michael van Elst
tlaro...@polynum.com writes: >If inetd is not running, if the administrator doesn't look at the logs, That's why people monitor services and logs and use manual or automated procedures to validate and deploy configuration changes. >At least, wouldn't it be worth to add a flag simply to parse and

Re: inetd(8): continue or exit on error?

2023-05-29 Thread Michael van Elst
tlaro...@polynum.com writes: >It seems to me, since these are services, that the failure to load a >config is critical enough (since the server may be then servicing what >was not intended to be serviced; the reverse is less problematic) >to exit at least on this error. inetd will service what is

Re: Rationale for some rules in style guide

2023-04-12 Thread Michael van Elst
jo...@bec.de (Joerg Sonnenberger) writes: >Which compiler from this century doesn't allocate stack space >independent from the source order? gcc with -O0 and -O1 allocates variables in source order. With our notoriously broken gdb, that can be helpful.

Re: jot: producing too much output?

2023-01-06 Thread Michael van Elst
mo...@rodents-montreal.org (Mouse) writes: >>> I'd tend to assume it is the code. >Well, then, there never can be any such thing as a bug in jot. The original code (see rev 1.1) seems to be more clear on how the parameters should be evaluated.

Re: sh(1) and ksh(1) default PATH

2022-08-14 Thread Michael van Elst
n...@netbsd.org (nia) writes: >There are a few remaining cases where the sh(1) defaults are Bad: It's not "Bad" but just does not fit your personal expectations. >1. We can't assume XDM. Lots of desktop environments have their own > preferred login manager which may have inconsistent behaviou

Re: disable HPN in sshd for the -10 branch?

2022-05-26 Thread Michael van Elst
On Thu, May 26, 2022 at 12:34:49AM +, David Holland wrote: > On Tue, May 24, 2022 at 06:57:23AM -0000, Michael van Elst wrote: > > Also consider that people believe their data is safe in the current > > virtualized world, just because someone calls "encryption&quo

Re: disable HPN in sshd for the -10 branch?

2022-05-23 Thread Michael van Elst
dholland-t...@netbsd.org (David Holland) writes: >(1) having an unencrypted option at all is one of the ways spooks like >to weaken cryptosystems; it creates ways to force/cause people to use >it when they didn't mean to. People have to be very clear in making that choice and they actually use it

Re: disable HPN in sshd for the -10 branch?

2022-05-23 Thread Michael van Elst
jnem...@cue.bc.ca (John Nemeth) writes: > I would say it is something that should be available as an >option (likely a command line option). ssh/scp has pretty much >completely replaced rsh/rcp (other than for people that go out of >their way to use those); however, there are many things that

Re: disable HPN in sshd for the -10 branch?

2022-05-03 Thread Michael van Elst
g...@lexort.com (Greg Troxel) writes: >I would say that doesn't really fit with what we want either, certainly >without somebody really trying. It breaks the rule that using ssh can >count on confidentiality and integrity and makes systems with ssh as a >component harder to reason about. Still,

Re: disable HPN in sshd for the -10 branch?

2022-05-03 Thread Michael van Elst
g...@lexort.com (Greg Troxel) writes: >I view HPN as not the standard approach; it hasn't been merged upstream >and PSC's agenda does not even seem to include merging any of it >upstream -- which I see as a huge clue. Looks more like upstream was never interested and PSC gave up. Part of the HPN

Re: Set USB device ownership based on vedorid/productid

2021-02-16 Thread Michael van Elst
0 in /dev. For ucom that's easy but for ugen that's more difficult. -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: vndconfig vs mount_cd9660

2021-01-04 Thread Michael van Elst
blocksize of the fake disklabel made up by vnd and thus 512. Maybe the >disc label creation code could be enhanced to detect this situation? The label always returns the sector size of the device, i.e. whatever you told vndconfig to present. -- -- Michael va

Re: vndconfig vs mount_cd9660

2020-12-29 Thread Michael van Elst
metry and the medium size. A ncylinders value of _zero_ means, it is deduced from the medium size. So "2048/1/1/0" would work better, but there is a bug in vnd(4) when doing that calculation :-/ -- -- Michael van Elst Inter

Re: vndconfig vs mount_cd9660

2020-12-28 Thread Michael van Elst
# (Cyl. 0 -483*) d:990512 0 unused 0 0# (Cyl. 0 -483*) but things also work if I change the (in-core) label to 4.2BSD instead of ISO9660. -- -- Michael van Elst Internet: mlel...@serpens.de

Re: EDID from multiple displays using ioctl(WSDISPLAYIO_GET_EDID)

2020-12-23 Thread Michael van Elst
On Wed, Dec 23, 2020 at 07:36:10AM +, RVP wrote: > On Wed, 23 Dec 2020, Michael van Elst wrote: > > > If you had multiple wsdisplay* instances, there would be some > > corresponding ttyE* that you could send the ioctl to. > > Hmm: wsdisplay0 at intelfb0; wsdisplay

Re: EDID from multiple displays using ioctl(WSDISPLAYIO_GET_EDID)

2020-12-22 Thread Michael van Elst
ions where X is not running/can't run and xrandr unavailable. The console only handles one display and that gets queried with WSDISPLAYIO_GET_EDID. If you had multiple wsdisplay* instances, there would be some corresponding ttyE* that you could send the ioctl to. -- --

Re: ftp -q 60 not working (well)

2020-11-30 Thread Michael van Elst
progress) { to enable a 1 Hz "timeout" that effectively disables the quit_time feature. -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: inetd Enhancements

2020-11-22 Thread Michael van Elst
.4T had per-service rate >limiting, in the form of a per-service maximum number of requests per >minute. Yes. The project milestone is a bit confusing, the rate-limit feature is pretty ancient and was always per-service. In any case, the suggested features will be more intrusive than a changed

Re: Proposal to drop MKCATPAGES

2020-10-25 Thread Michael van Elst
dholland-t...@netbsd.org (David Holland) writes: >Also, if we do have a platform where it's too slow and anyone actually >cares, We spend more for HTML pages without a viewer in base. -- -- Michael van Elst Internet: mlel...

Re: Proposal to drop MKCATPAGES

2020-10-25 Thread Michael van Elst
on small hardware (less than 32MB RAM). -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: ukbd incorrect fr keymap

2020-10-11 Thread Michael van Elst
with wsconsctl (also in wscons.conf). E.g. wsconsctl -k -w map+="keycode 49 = asterisk mu" Greetings, -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: style change: explicitly permit braces for single statements

2020-07-11 Thread Michael van Elst
that tags success and error paths differently or uses exceptions instead of error paths which have their very own problems. -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: getrandom and getentropy

2020-05-12 Thread Michael van Elst
tion to tell. Sadly everything is an emulated 20 year old computer nowadays. On the other side it can provide a virtiornd device to an emulation of a 25 year old OS which feels perfectly safe. -- -- Michael van Elst Internet: mlel...@serpens.de

Re: getrandom and getentropy

2020-05-11 Thread Michael van Elst
riastr...@netbsd.org (Taylor R Campbell) writes: >> Date: Mon, 11 May 2020 16:16:12 - (UTC) >> From: mlel...@serpens.de (Michael van Elst) >> >> Previously we could trust in random processes, whether the entropy >> estimation was scientific or not. We could also

Re: getrandom and getentropy

2020-05-11 Thread Michael van Elst
e just gave up and say, without a HWRNG (which we believe is perfect), it's the users problem to provide randomness. -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: getrandom and getentropy

2020-05-09 Thread Michael van Elst
should be the basis for an API decision, it should be thought about. Otherwise we just need the API that helps in running foreign (aka Linux) software and we don't have to talk about the quality. Greetings, -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: getrandom and getentropy

2020-05-09 Thread Michael van Elst
sible for getting the details right.) Like installing a system from read-only media or a system that crashed and starts again with the same seed. I'm wondering, how you can trust a god-sent file from persistent storage but not an unspecified random process? -- --

Re: Solving the syslogd problem

2020-02-03 Thread Michael van Elst
it's neither the whole world nor a contradiction. Even such systems split their data between different filesystems, for a reason. -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: Solving the syslogd problem

2020-01-30 Thread Michael van Elst
(with LOG_CONS). We could just treat this output like kernel messages and solve the "syslogd restart gap problem" with it too. -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: Solving the syslogd problem

2020-01-29 Thread Michael van Elst
If you only run throwaway VMs, your angle might be different. No problem to put everything into a single partition there because you just create a new VM from scratch. -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: patch - cgdconfig do_all mode gracefully ignore detached devices

2019-11-10 Thread Michael van Elst
n be overridden from the command line. So the check should happen a bit later until the final value is known that will be passed to configure_params(), probably after checking all the parameters. Greetings, -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: patch - cgdconfig do_all mode gracefully ignore detached devices

2019-11-09 Thread Michael van Elst
n't attached. Why? Whether you rely on magic (== non-standard interfaces with unspecified semantics) to skip the configuration or the configuration just fails silently shouldn't make a difference. Greetings, -- Michael van Elst Intern

Re: patch - cgdconfig do_all mode gracefully ignore detached devices

2019-11-09 Thread Michael van Elst
ufficient to just ignore ENXIO failures when trying to configure ? -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: wedge device to name

2019-09-19 Thread Michael van Elst
with a special flag, so details don't have to be spread over client programs. -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: wedge device to name

2019-09-18 Thread Michael van Elst
ms, open too. :) Greetings, -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: wedge device to name

2019-09-18 Thread Michael van Elst
output may come handy. There's nothing against an option making mount or df print wedge names and people can just use aliases in their profile. -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: wedge device to name

2019-09-18 Thread Michael van Elst
nd expect a device path. -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: stdio.h's P_tmpdir definition - make it /tmp?

2019-08-31 Thread Michael van Elst
rs TMPDIR. -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: stdio.h's P_tmpdir definition - make it /tmp?

2019-08-29 Thread Michael van Elst
rty has compat functions that should not be used. -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: NetBSD truss(1), coredumper(1) and performance bottlenecks

2019-05-24 Thread Michael van Elst
in this scenario. > Anyway I gave a tool, if someone is interested in experimenting and > feedbacking patches, feel free to do so. I will keep using them for > catching kernel stability problems of the ptrace(2) APIs. No question. Thanks for that. -- Michae

Re: NetBSD truss(1), coredumper(1) and performance bottlenecks

2019-05-24 Thread Michael van Elst
t misleading, a modern system does 100k gettimeofday calls in about a millisecond. I'm not sure whether the additional complexity would be justified. Another argument against this optimization is that tracing these non-syscalls is even more complex. Greetings, -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: NetBSD truss(1), coredumper(1) and performance bottlenecks

2019-05-23 Thread Michael van Elst
>current time. That's only a symptom. The real question is why it doesn't sleep. -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: Detecting keypress on console

2019-03-28 Thread Michael van Elst
", "wsmouse", "wskbd", "wsmux", "wsbell" }; static void usage(void) Greetings, -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: Detecting keypress on console

2019-03-28 Thread Michael van Elst
On Thu, Mar 28, 2019 at 04:33:00PM +, Emmanuel Dreyfus wrote: > On Thu, Mar 28, 2019 at 02:41:08PM -0000, Michael van Elst wrote: > > Maybe /dev/wsmux1 ? wsmux0 is mouse input. > > Same fate. Is it expect behavior that muxctl -f $i -l lists nothing > for any $i ? % sud

Re: Detecting keypress on console

2019-03-28 Thread Michael van Elst
ee the input. Maybe /dev/wsmux1 ? wsmux0 is mouse input. -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: colorls in base

2019-02-17 Thread Michael van Elst
come a default for other tools. Nobody can live without a console that has themes. -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: colorls in base

2019-02-16 Thread Michael van Elst
Next time it's not about colorized output but some other feature of "program found somewhere else". According to some we already have to replace 30% of NetBSD to make it usuable, a measly colorized ls won't be enough. -- --

Re: colorls in base

2019-02-16 Thread Michael van Elst
web site. -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: Re-establishing the "magic" of the special vars in sh(1)

2019-02-09 Thread Michael van Elst
unset for the lifetime of the shell? N.B. that would also be my preferred handling of all such variables. -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: Pressure sensors

2019-01-02 Thread Michael van Elst
(10e-1..10e-10 Pa) or graphite pressed into diamonds (6*10e+9 Pa) it looks sufficient. -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: Moving telnet/telnetd from base to pkgsrc

2018-12-14 Thread Michael van Elst
e than 13 years ago (with proper CVEs), both require careful preparation by the user to be triggered. Isn't that far from 'remote exploit' and 'everyone who can MITM can do that'? -- Michael van Elst Internet: mlel...@serpens.de

Re: Moving telnet/telnetd from base to pkgsrc

2018-12-14 Thread Michael van Elst
co...@sdf.org writes: >You know I'm writing this as telnet on netbsd is vulnerable to remote >exploits, and everyone that can MITM you can do that to you whenever you >'telnet to see if ports are open'? Obviously wrong. -- -- Michael

Re: Moving telnet/telnetd from base to pkgsrc

2018-12-14 Thread Michael van Elst
campbell+netbsd-tech-userle...@mumble.net (Taylor R Campbell) writes: >If the telnet client is remotely exploitable Is it? -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: Specifying root device in /etc/fstab

2018-10-02 Thread Michael van Elst
On Tue, Oct 02, 2018 at 11:05:56PM +0700, Robert Elz wrote: > Date:Tue, 2 Oct 2018 11:28:59 - (UTC) > From:mlel...@serpens.de (Michael van Elst) > Message-ID: > > | Can you please check, you are misquoting, reversing the sense what I > wrote.

Re: Specifying root device in /etc/fstab

2018-10-02 Thread Michael van Elst
k...@munnari.oz.au (Robert Elz) writes: >Date:Tue, 2 Oct 2018 05:13:13 - (UTC) >From:mlel...@serpens.de (Michael van Elst) >Message-ID: > | >Yes, that is what we need - but without knowing what the drive name is, as > | >that can vary.

Re: Specifying root device in /etc/fstab

2018-10-01 Thread Michael van Elst
e need - but without knowing what the drive name is, as >that can vary. But you are not asking for that. >The facility as designed seems like it does exactly what is needed, Indeed. Add an "intermediate" feature. -- -- Michael van Elst

Re: Specifying root device in /etc/fstab

2018-10-01 Thread Michael van Elst
onality needs to be added. -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: Specifying root device in /etc/fstab

2018-10-01 Thread Michael van Elst
ice name it doesn't help in this case. -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: Specifying root device in /etc/fstab

2018-10-01 Thread Michael van Elst
or not. Unlike with regular installations (sysinst...) the user has no means to configure this and apparently should not have to do it. -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: Specifying root device in /etc/fstab

2018-09-30 Thread Michael van Elst
not, that will always find the correct device. -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: Specifying root device in /etc/fstab

2018-09-30 Thread Michael van Elst
ystem). With wedges you would just reference them by name. N.B. resizing a wedge in use isn't impossible. A device mapper unit (aka LVM logical volume) is something similar. The functionality just needs to be implemented in the wedge driver. -- -- Michael va

Re: Specifying root device in /etc/fstab

2018-09-30 Thread Michael van Elst
rom kern_subr.c) also needs to be exposed a bit more. -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: Providing access to USB devices

2018-09-20 Thread Michael van Elst
ant privileges. -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: swapctl -l

2018-07-25 Thread Michael van Elst
e...@math.uni-bonn.de (Edgar =?iso-8859-1?B?RnXf?=) writes: >> Pages are only removed from swap when they are freed or accessed. >Ah, I see, thanks! >Can I find out which processes own pages that are paged out? Unfortunately not. -- -- Mich

Re: swapctl -l

2018-07-25 Thread Michael van Elst
0%0 -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: sh(1) BUGS entry query

2018-04-30 Thread Michael van Elst
oting but not a '*'. It also doesn't understand quotes on input: $ rm foo\ Display all 411 possibilities? (y or n) -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: Features missing in wscons/wsfont userland utilities

2018-04-02 Thread Michael van Elst
font is done in two stages (taken from the vcons commit message), e.g.: wsfontload -N foo /usr/share/wscons/fonts/flori.816 wsconsctl -dw font=foo -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: pgrep -x broken

2018-01-20 Thread Michael van Elst
On Sat, Jan 20, 2018 at 01:33:32AM +0100, Kamil Rytarowski wrote: > On 19.01.2018 21:24, Michael van Elst wrote: > > net...@precedence.co.uk (Stephen Borrill) writes: > > > >> 1) Revert above and always use p_comm (and note in man page) > >> 2) Use p_comm only i

Re: pgrep -x broken

2018-01-19 Thread Michael van Elst
ly be to use argv[0], except for -x where you want p_comm. -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: Shipping SSL certificates in the base system

2017-07-11 Thread Michael van Elst
ry/presentations/yuuki/2017_AsiaBSDCon/basepkg.pdf -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: randomness (crypto?) code example wanted please?

2017-06-25 Thread Michael van Elst
't provide anything beyond rand(), as you said, it does neither provide crypto strength nor does't it guarantee any statistical properties. If you don't want to use an obsolete interface, use random() instead. -- -- Michael van

Re: Changing disk image boot options without root privileges

2017-04-18 Thread Michael van Elst
lf and offset disk accesses accordingly. -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: strerror(0) POSIX compliance

2016-03-24 Thread Michael van Elst
errno to 0. > Success: it is not an error to call strerror with 0. Means that strerror(0) should not set errno=EINVAL. Doesn't say anything about the returned string. -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: strerror(0) POSIX compliance

2016-03-24 Thread Michael van Elst
tionable. It should return a phrase that is easily identified as the errno==0 value. -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."

Re: pidfile_lock(3)

2016-03-24 Thread Michael van Elst
r...@marples.name (Roy Marples) writes: >If it doesn't work on NFS and you care so much, please spend your time >fixing NFS If you want to change things you should not try to pass your responsibility to someone else. -- -- Michael van Elst Int

Re: pidfile_lock(3)

2016-03-24 Thread Michael van Elst
r...@marples.name (Roy Marples) writes: >See here: >http://mail-index.netbsd.org/tech-userlevel/2016/03/21/msg009799.html ... handling crashing programs reliably isn't a worthwhile goal to me. -- -- Michael van Elst Internet: mlel...

Re: pidfile_lock(3)

2016-03-21 Thread Michael van Elst
r isn't reliable. But I've seen this used, e.g. by HA cluster frameworks. Anything else shouldn't use a pidfile at all but run some kind of monitor process that just waits for the daemon process to exit. -- -- Michael van El

Re: pidfile_lock(3)

2016-03-20 Thread Michael van Elst
r...@marples.name (Roy Marples) writes: >Saying that, I'm not really bothered about any remote lock on a remote fs, >just as long as it can lock correctly on the host. Why would you think NFS root to be not on the host? -- -- Michael van Elst Int

Re: pidfile_lock(3)

2016-03-20 Thread Michael van Elst
r...@marples.name (Roy Marples) writes: >So I've created pidfile_lock (patch attached) to address these problems. Does it work on NFS root? -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may

Re: removing an envsys temperature limit

2016-02-15 Thread Michael van Elst
mum limit of -273.15C should be equivalent to no limit. -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."