-
nimaje
hm, as I understand it, fork()/exec()/… are allowed after cap_enter(), is there some way to yield the permission to use those? I'm writing some program that reads a file and writes some stuff to stdout/stderr, it shouldn't be allowed to use fork() or exec()
-
mane
-
petrify
To me as a first-time-reader, the man page of cap_enter() seems a bit ambiguous: "processes may only issue system calls operating on file descriptors or reading limited global system state". If "reading limited global system state" suffices to call fork(), it might be allowed. The following sentence "Future process descendants created with fork(2) [...]" suggests that fork() is allowed, too.
-
nimaje
yeah, fork is allowed, but I would like to give up any right to call fork in my process, but I don't see a way for that
-
nimaje
mane: was that meant for -social ?
-
mane
ah i forgot there is -social channel
-
zwr
I guess you can kludge it with a pthread_atfork that calls abort()
-
zwr
I'm not very experienced with FreeBSD but I don't know of a POSIX or FreeBSD function that drops the privilege to fork()
-
nimaje
I want to use a capability system and give up any capabilities I don't need, even if I had handles for them, not build hacky workarounds, which wouldn't work anyway as not using fork in the code is simple static analysis, so it would be about bugs, where someone does rce and could just use _Fork() instead of fork() and my process could still do stuff I don't need (enumerating badness doesn't
-
nimaje
scale)
-
jmnbtslsQE
nimaje: a workaround might be to try something like: rctl -a process:$PID:maxproc:deny=0
-
jmnbtslsQE
not really what you're looking for though
-
vkarlsen
Dear zfs experts, are there any default values I should change when creating a pool and datasets for a puter with a Ryzen 5 5600g in it?
-
voy4g3r2
vkarlsen: maybe i could ask the question differently: What type hard storage setup do you have? and what are you trying to achieve? The CPU (especially that size) has little impact on what storage needs you may or may not require.
-
last1
so with kern.securelevel=2 you can't even boot ?
-
last1
it must be manually adjusted post-boot ?
-
yuripv
last1: why do you think so?
-
last1
because I tried it
-
last1
it fails to boot and drops to single user mode
-
last1
says it can't mount the root device
-
yuripv
last1: where are you setting securelevel? proper way is using rc.conf, kern_securelevel/kern_securelevel_enable
-
bleb
I see there is a port of signal-cli
-
bleb
can anyone testify that it actually works on freebsd, and that it lets you register and use signal without linking an ios/android device?
-
last1
I was doing it in /etc/sysctl.conf
-
last1
maybe that's why. oops
-
yuripv
last1: sysctl.conf is still way after mounting root, are you sure you don't have it set in loader.conf?
-
last1
yuri: absolutely
-
last1
you can test if you want
-
yuripv
I believe you, probably remounting root rw
-
vkarlsen
voy4g3r2: I'm wondering if there are any algorithms for checksumming or compression that that cpu is particularly good or bad at
-
dvl
-
last1
yuri: I can confirm that with the setting in rc.conf it boots fine
-
voy4g3r2
vkarlsen: as in compression algorithms? like lz4 vs gzip?
-
voy4g3r2
unless you are having a large user base.. i think it would be a small impact.. i think the bigger impact (potential is deduping)
-
voy4g3r2
i have personally have been setting lz4 compression on my datasets but my volume is only 2-3TB of data.. and it is just me streaming music and backing up various machines at my house.. enterprise level, iw ould default to better experts than me.. my experience and judgement is ancedotal.. with a small user base
-
voy4g3r2
and my server is just an i3 with 32 gig of ram
-
nimaje
afaik anything you would use for checksumming should be faster than IO at most cpus, so it is basically free
-
voy4g3r2
that is also how i see it
-
voy4g3r2
it would be more.. what are the speed of the drives and channels.. old school spin drivee (5400, 7200, 10k) ssd, blah blah
-
debdrup
vkarlsen: does it have SHA512 via aesni(4)?
-
debdrup
I can't remember which CPUs do, but if it does, you could test sha512 checksumming offloaded via aesni(4).
-
debdrup
Sorry, technically speaking, it's SHA512/256.
-
vkarlsen
debdrup: I'm trying to find out
-
debdrup
vkarlsen: /var/run/dmesg.boot should tell you
-
vkarlsen
debdrup: I don't have it yet, it's in the mail :)
-
vkarlsen
-
debdrup
vkarlsen: that does make it a little difficult to get a dmesg from it, admittedly.
-
debdrup
vkarlsen: a Ryzen 9 doesn't appear to have it according to
dmesgd.nycbug.org/index.cgi?do=view&id=7839 - so I'm guessing not.
-
vkarlsen
Another machine here has the following in dmesg.boot: aesni0: <AES-CBC,AES-CCM,AES-GCM,AES-ICM,AES-XTS,SHA1,SHA256>. It has a different cpu, but I take it this is what I should look for?
-
nimaje
don't forget to submit to dmesgd
dmesgd.nycbug.org/index.cgi
-
vkarlsen
nimaje: Oh, that's neat
-
SNAX_74
Anyone successful in using a USB BLUETOOTH DEVICE ON FREEBSD ?
-
vkarlsen
I found a few 5600x (should be close enough) on dmesgd, and they have aesni0: <AES-CBC,AES-CCM,AES-GCM,AES-ICM,AES-XTS,SHA1,SHA256>
-
vkarlsen
I'll submit some of my dmesg.boots later