-
_xor
dch: Cool :) Thanks!
-
johnjaye
will the videos from the developer summit be available to watch later?
-
rtprio
mewt: geli supports two encryption modes: XTS, which was standardized as IEEE P1619 and CBC with unpredictable IV. The CBC mode used by geli is very similar to the mode ESSIV.
-
rtprio
mewt: was that the package, or port? it could build yet be broken
-
mewt
rtprio: package
-
mewt
what about pbkdf re geli
-
mewt
I guess I need to look into why exactly it is segfaulting, so I could try port with debug symbols possibly...
-
mewt
sigh
-
RhodiumToad
mewt: geli by default uses XTS and enough rounds of pbkdf2 to take 2 seconds on the current CPU
-
RhodiumToad
mewt: the encryption mode and the number of pbkdf2 rounds can be specified as options when creating a provider or, for the iteration count, when setting a new key
-
RhodiumToad
(pbkdf2 using hmac-sha512 as the pseudorandom function)
-
mewt
ah
-
_xor
Is there a CLI tool (similar to pw) to manipulate /etc/login.conf?
-
mewt
ty
-
RhodiumToad
_xor: no
-
mewt
is argon2id planned at all?
-
_xor
:|
-
angry_vincent
it would require some work as many things needed be in base ( libargon library, etc )
-
_xor
Feels hacky to do echo "..." >> /etc/login.conf + cap_mkdb
-
RhodiumToad
note that geli needs to work in loader, which doesn't have unlimited memory
-
_xor
Hmm, what are the reasons to NOT set a home directory for this daemon and place a .login_conf in there & use that class? (I'm sure there are good reasons, probably security-related, but can't think of any specifics off the top of my head)
-
RhodiumToad
hm, I deliberately did not respeci ~/.login_conf in some places when I added the extra login class support a while back
-
RhodiumToad
*respect
-
RhodiumToad
let me look it up
-
_xor
Basically I have a port with a rc script that invokes /usr/sbin/daemon + app process. The app requires mlock (512m-1024m or so) and I don't want to have to run it as root. So my options seem to be to create a new login class in /etc/login.conf and set app_login_class="..." in the rc script OR jail it, enable mlock on the jail, & let it have root
-
_xor
inside the jail.
-
RhodiumToad
app_login_class"..." doesn't respect ~/.login_class
-
RhodiumToad
(I didn't change that)
-
_xor
I was wondering about that :/ I saw a comment I wrote a while back in this service script that specifically says that.
-
RhodiumToad
you can specify limits directly in app_limits="..." in rc.conf
-
_xor
"// TODO: Figure out why this isn't setting the login class properly"
-
RhodiumToad
app_login_class basically does limits -C ... for which see the manpage
-
_xor
Yeah saw that in /etc/rc.subr
-
_xor
Guess I'm going to do that.
-
RhodiumToad
also, app_login_class only sets limits, not environment or other settings
-
_xor
Wait, so that means setenv and the like would be ignored for that?
-
RhodiumToad
unfortunately yes
-
RhodiumToad
I significantly expanded the extent to which environment vars from login classes were respected, but I didn't change everything
-
_xor
No biggie, good to know. Going to use app_env, app_env_file, and app_limits.
-
RhodiumToad
~/.login_conf wouldn't have worked for another reason: when it is respected, it's run with the user's permissions and not root's
-
RhodiumToad
so it can't increase hard limits
-
_xor
I was about to say that's what I want actually, to limit the service user/process, but then realized you need root (wheel?) privileges to set those limits FOR the subject.
-
RhodiumToad
you said you wanted it to be able to use mlock
-
RhodiumToad
by default there's a hard limit of memorylocked of 64kB or whatever
-
_xor
Is it required to run the process as root for that or is setting memorylocked=2048M enough for the login class?
-
RhodiumToad
and only root can increase that
-
RhodiumToad
if you set memorylocked in /etc/login.conf, then that setting is processed as root
-
_xor
Yup, that's what I'm doing now. It's why I asked about the CLI tool for /etc/login.conf instead of doing echo "..." >> /etc/login.conf earlier.
-
_xor
Yay, it all works as intended.
-
RhodiumToad
I wonder if we should have a /etc/login.conf.d
-
_xor
YES
-
_xor
I use that kind of approach in a few places. My rc scripts use ETCDIR/profiles.d/... to read environment variables for various profiles, which can be activated via app_profiles="profile0 profile1 ..." in /etc/rc.conf.
-
_xor
Obviously for /etc/login.conf.d it would just parse the files in there, but it would also make merging easier when updating.
-
_xor
Either that or /usr/local/etc/login.conf.d
-
RhodiumToad
that would be more iffy
-
RhodiumToad
though actually, since it'd all be handled in cap_mkdb, maybe not
-
_xor
Oh /etc/login.conf is a static string in there?
-
RhodiumToad
no
-
RhodiumToad
it'd be a matter of doing cap_mkdb -f login.conf.db /etc/login.conf /etc/login.conf.d/*
-
RhodiumToad
er, lose the .db
-
RhodiumToad
or cap_mkdb /etc/login.conf /etc/login.conf.d/*
-
RhodiumToad
some people have grumbled about wanting login.conf to be optionally in UCL, too
-
_xor
The syntax is a bit uncommon in that file as it currently is, at least it is to me.
-
RhodiumToad
it's the same as termcap
-
_xor
Yeah, still take a few seconds to adjust for me since I mostly use YAML/JSON/HCL. But that's just in my scenario.
-
meena
opening login.conf is like taking a time machine
-
» RhodiumToad is always a bit skeptical of UCL; a "universal" configuration language that doesn't even have a wikipedia entry
-
otis
i wonder what semantics should login.conf.d files have, eventually. if concatenate them (or read one by one) or have login.conf.d/$(username) or login.conf.d/$(classname)
-
_xor
HCL isn't bad. I read grumblings about YAML, and I'm sure they're there, but I haven't yet run into many problems with it. I use yq heavily to query YAML files.
-
RhodiumToad
login.conf.d/username wouldn't really work
-
Beladona
it seems one same drive, the zfs has created limits on each pool size. If i freeup the space on one pool, will the other pool get some space too? I have 2 databases on 2 pools but drive is same. If I delete one database, will I get space on the other pool?
-
_xor
~/.login_conf is nice because it's clearly scoped to the user and also doesn't need to be processed via cap_mkdb (IIRC).
-
RhodiumToad
login.conf.d/classname would work as a convention, but one might not want to enforce it
-
RhodiumToad
_xor: you recall correctly
-
RhodiumToad
_xor: but it's under the user's control and therefore can only do nonprivileged setup
-
_xor
It's the system-wide stuff that felt hacky to me so far, hence liking the idea of /etc/login.conf.d/...
-
_xor
I wish py-jc supported FreeBSD commands a bit better. For whatever, it's not parsing rsync output correctly.
-
_xor
I have a script that gets invoked by the bulk.sh hook in poudriere. Part of that involves copying the packages to a remote repo and regenerating the repository there.
-
_xor
During that process, it uses rsync --archive --delete --itemize-changes ..., and I wanted to be able to create an easy-to-read, clear list of creations/modifications/deletions.
-
_xor
Oh yeah, that's right, I also had to split the passed in origin to get the base package name and delete any older versions in the remote repo, otherwise pkg on the clients was crying about duplicate dependency listings.
-
RhodiumToad
oh dear, I get to write another bug report against fsck
-
meena
RhodiumToad: there's a load open right now
-
meena
how do i explain to this person that nobody is going to get this fixed for 12.3
bugs.freebsd.org/bugzilla/show_bug.cgi?id=271465
-
VimDiesel
Title: 271465 – Fatal trap 1: privileged instruction fault
-
» RhodiumToad submits bug
-
rtprio
does windows home now have hyperv?
-
Beladona
OBS studio when installed, removes neovim. Its a lib issue I think. Don't know when it will be solved. Meanwhile, can i install the linux's version of obs?
-
RhodiumToad
how did you install it and what message did you get about neovim?
-
RhodiumToad
looks like a conflict between lang/luajit and lang/luajit-devel
-
rtprio
Beladona: what are you talking about with your pools and limits on pool size?
-
Beladona
-
RhodiumToad
right, luajit conflict as I said
-
Beladona
what can I do now?
-
Beladona
rtprio its sorted now. I used df -h that I shouldn't have and got false info
-
RhodiumToad
poke the port maintainer for OBS to see whether the luajit version can be updated? (luajit 2.0 is pretty old)
-
RhodiumToad
or poke the port maintainer(s) for luajit for the conflicts to be resolved
-
Beladona
or install the linux ports version of obs?
-
RhodiumToad
you could try, but I doubt that will work well.
-
Beladona
because its a linux port?
-
RhodiumToad
what "linux ports version" are you referring to?
-
Beladona
I heard we can install linux apps in freebsd
-
RhodiumToad
yes, I run a printer driver that way
-
Beladona
not sure how. and why it won't work well (obs)
-
RhodiumToad
obs is very multimedia-heavy, so you'll need a lot of prerequisite linux packages
-
Beladona
ok
-
RhodiumToad
if there are ports for all the dependencies, it might be straightforward
-
meena
poweroff in the installer reboots, actually 😒
-
yuripv
it doesn't for me
-
RhodiumToad
poweroff generally works by asking ACPI to power off, but what happens then is largely out of freebsd's control
-
yuripv
and you mean the "Shutdown" in the "final" menu, right?
-
meena
yuripv: no, i mean, i was in the shell, doing some modifications, then, when i was done, I said: "poweroff", and it rebooted instead.
-
RhodiumToad
running on real hardware or a VM?
-
meena
which is very annoying, cuz it meant that cloud-init was running without any data-source, so it took about 3 minutes to do nothing
-
meena
RhodiumToad: vm
-
RhodiumToad
what hypervisor?
-
meena
libvirt/kvm
-
yuripv
fix it! :D
-
» RhodiumToad points to previous statement about ACPI
-
meena
this was with the i386 ISO on amd64 "hardware"
-
meena
once booted, poweroff worked as expected
-
meena
anyway, i now have an i386 "golden" image. on to amd64
-
meena
need to do some tests of the current patchsets, and when I'm happy with that, I can move on to other ventures
-
yuripv
meena: works for you? (re: 271465)
-
meena
yuripv: i don't use Virtualbox, and i stopped using 12 as soon as 13 was branched :P
-
meena
yuripv: but, the reporter themselves said that 12.4 works, but they've been instructed to use 12.3, which, i mean, come on! it's panicking. Your instructions are either bunk, or you now need to learn how to patch FreeBSD and recompile it, and you need to find the patch you need to backport to 12.3
-
yuripv
(i meant my update in there :D)
-
meena
yuripv: yes, that's a very nice way of saying what i just said
-
parv
meena! For the diplomat!
-
meena
-
VimDiesel
Title: cloud-init/ntp.conf.freebsd.tmpl at main · canonical/cloud-init · GitHub
-
parv
Earlier today on "
bugs.freebsd.org/bugzilla" both pages "Bugs (reported|changed) in ... last 7 days" looked very similar. Not having "reported" or "changed" on the page title, could not tell if I had seen one or the other already
-
parv
s/today/today via/
-
» parv curses self for butchering the correction
-
meena
i wonder if this would've been merged quicker if i had submitted it via github:
reviews.freebsd.org/D39975
-
VimDiesel
Title: ⚙ D39975 tools/git: ensure git-arc is more platform indepdendent
-
RhodiumToad
does ports take github submissions now?
-
RhodiumToad
oh wait, that's src
-
meena
I don't think ports does
-
meena
src and doc do
-
meena
-
VimDiesel
Title: 271484 – Guest OS Rocky Linux 9.1 freezes sporadically
-
luser
.
-
luser
.
-
Beladona
How to know the /dev/deviceName of a pool?
-
futune
zpool list -v
-
Beladona
I get gpt/zfs00erwe dev ide. not dev name
-
futune
ah, so it was imported with gpt label
-
Beladona
how to konw the /dev/name
-
futune
"geom part list" will tell you
-
futune
something like "geom part list | grep -C 10 zfs00erwe"
-
spork_css
PSA: The performance impact of a nearly-full zfs pool on spinny disks is beyond negligible
-
Beladona
great
-
hectorgrey
evenin' all
-
rtprio
Beladona: there isn't a /dev/deviceName of a pool
-
rtprio
it's not in /dev/ ? what ae you trying to do?
-
Beladona
I found it with what futune said
-
Beladona
rtprio no straight forward way to find what is the dev name of the disk used in a pool? e.g /dev/ada1
-
rtprio
but that's the components of the pool, not the pool itself
-
rtprio
Beladona: mine shows in `zpool status`
-
Beladona
mine shows the gpt id
-
Beladona
node the /dev/ada1
-
rtprio
did you create the pool with the gpt id?
-
Beladona
I traced it via geom
-
Beladona
do not recall
-
Beladona
but all good now anyway
-
rtprio
👍
-
CrtxReavr
14:47 < ChrisWarrick> where do you even get 10 TB of software
-
CrtxReavr
14:47 < dcb> emacs?
-
Demosthenex
hehe. you meant docker ;] emacs is skinny nowadays.
-
CrtxReavr
I didn't mean anything. . .
-
CrtxReavr
But that was funny either way.
-
futune
games these days can be hundreds of GiB...
-
CrtxReavr
The Point.
-
CrtxReavr
You missed it.
-
_xor
Heh, who said that quote about any non-trivial software will eventually end up with its own implementation of SMTP? (or something like that)
-
gcd
something about a non-trivial programming language containing most of a lisp?
-
_xor
Yeah, something like that. There are a few quotes akin to it. I think the one I'm thinking of had to do with Adobe Acrobat and it's crappy implementation for sending SMTP messages.
-
mason
-
VimDiesel
Title: Greenspun's tenth rule - Wikipedia
-
_xor
Something similar about Emacs too.
-
_xor
“I’ve finally learned what ‘upward compatible’ means. It means we get to keep all our old mistakes.”
-
_xor
Wouldn't that be backwards compatible?
-
meena
_xor: jwz
-
hyperreal
For some reason syslogd is not forwarding logs to my configured remote logging host.
-
hyperreal
it only works when I use `logger -h remotehost Test`
-
hyperreal
if I use `logger Test`, it doesn't work, nor do any other logs get forwarded by the daemon
-
rtprio
what's the snipet you have to send logs to the remotehost ?
-
hyperreal
what do you mean? from /etc/syslog.conf?
-
hyperreal
*.* @remotehost
-
rtprio
are they both freebsd machines?
-
hyperreal
No, the remotehost is a Fedora Linux
-
_xor
Doesn't emacs recognize a signal to cancel the current operation?
-
_xor
Nevermind, got it.