-
alepzi
voy4g3r2: well ya ;)
-
alepzi
what's the lib neutral way of adding privilege escalation to a program i'm making? like if i don't wanna expect the user to use sudo, but doas or anything that does priv esc
-
nimaje
lw: it was always supposed to be /usr/local/share/man (see hier(7)), just that the mostly useless variables in the ports tree were wrong and so most ports were wrong as they used those variables
-
_xor
ah
-
» _xor heads to hier(7)
-
lw
.net core also doesn't support freebsd arm64 (at least last time i looked) but that's more understandable since it's not meant to be portable outside of the MS-supported platforms
-
weust
So, Windows and Linux?
-
lw
and Mac
-
weust
ah, right
-
meena
What about Solaris? WHAT ABOUT THAT.?
-
weust
I did see sunos being mentioned. didn't really look at the arch's.
-
weust
will check i a min
-
weust
was just rebooting the RPi, but wifi suuuucks with 14.0. Using a supported wifi USB dongle thingy
-
weust
takes forever to set the IP stuff, even though it will get an offer very fast.
-
nimaje
no idea if oracle cares for that for java support, but pretty sure MS doesn't care if .net core supports solaris
-
weust
but for the java thingy I'm having issues with, if it supports Tier 1 archs then Oracle should support aarch64 now as well.
-
weust
or at least in the latest OpenJDK. this uses 17, not sure what the current stable is
-
weust
and the extra netif restart to get network up
-
weust
I need to test if it's a lagg thing or not
-
weust
meena: sunos has even sparc and sparcv9 support
-
weust
no solaris at all
-
lw
surely sunos refers to solaris, i doubt it runs on sunos4
-
weust
hehe yeah, that was my idea as well. but I thought both were used?
-
weust
-
VimDiesel
Title: dpaste/RHBY (Plain Text)
-
SNAX_74
Hello
-
-
VimDiesel
Title: Sixels or Unicode image previews · Issue #324 · ihabunek/toot · GitHub
-
alepzi
handbook says thin jails are less secure because they share base and i think processes aren't as isolated maybe? but so how likely are thin jail escapes?
-
meena
alepzi: can you elaborate on your thinking process there, about why you think "processes aren't as isolated maybe?"
-
meena
trying to imagine how you got the is making me very confused, so I need you to explain this before we go anywhere else
-
alepzi
-
VimDiesel
Title: Chapter 17. Jails and Containers | FreeBSD Documentation Portal
-
alepzi
first 2 points
-
alepzi
and "The jail can be thought of as an almost complete standalone FreeBSD installation, but running within the confines of the host system. This isolation ensures that the processes within the jail are kept separate from those on the host and other jails." in
docs.freebsd.org/en/books/handbook/jails/#thick-jails
-
VimDiesel
Title: Chapter 17. Jails and Containers | FreeBSD Documentation Portal
-
meena
you realise this is strictly talking about Filesystem resources, right?
-
alepzi
i mean it's talking about processes so wtf does that have to do with filesystem resources?
-
alepzi
imo "processes" implies shared memory
-
alepzi
like a way for a jailed process to access the running memory of the host or other jails
-
meena
a jail is, at its core, a (set of) process(es) that are running in fancy chroot
-
meena
like any other container technology it starts from Filesystem isolation, then adds process isolation, then network isolation and so on
-
lw
meena: i'm not sure that's ever going to be merged because development of the tui has moved to tooi. but i'll consider it if tooi gets image support, ivan was working on it at one point
-
alepzi
ya and i'm talking about the process isolation
-
meena
alepzi: thick vs think jails is strictly about the nature of the Filesystem isolation. it can affect executables, it could affect what resources those executables see or can manipulate, but it has nothing to do with a process
-
alepzi
but doesn't fs imply process too?
-
lw
there are actually releases for tooi now so i could port that, but i think it makes more sense to hold off until it's more mature, we haven't even decided where the config file should live yet
-
meena
a process is an executable, or a routine that is loaded into memory and executed on the CPU. and yes, most of those things are loaded from the Filesystem, but in unix, if you modify a running process' executable, that does nothing until it restarts
-
lw
i do need to do subpackages for audio/pulseaudio at some point though
-
meena
of toot??
-
lw
?? no, for the jack output module in PA :-)
-
alepzi
ok well thin jails *are* less secure than thick jails somehow, right?
-
meena
alepzi: forget thin jails and thick jails for a week or three, and focus on understanding jails
-
alepzi
and i am but respectfully i have a right to ask questions even if you don't see the point
-
lw
does sys/queue.h not do arrays? i'm sure this was added at some point, but it doesn't seem to exist
-
meena
it's not that i don't see the point, or maybe it it's like that, but to me it feels like you haven't quite grasped that a jail is, first and foremost, just a bunch of processes, isolated from other bunches of processes, at the kernel level.
-
alepzi
ya and i'm asking questions to learn specifically more about "isolated from other bunches of processes"
-
alepzi
coulda been answered by now too heh
-
meena
for j in (seq 1000)
-
meena
sudo -H jail -c persist path=/rescue
-
meena
end
-
meena
you can jexec into any of these 1000 jails (or into every), and try to find out what you can find out about the host, and what you can find out about the other jails
-
alepzi
1000 must be thin jails because that's minimum 1TB just for jails to have their own base each
-
meena
do you remember what kevans told you about that?
-
lw
"thin" and "thick" jails are just terms the handbook made up, they don't exist in concrete terms in the OS itself
-
alepzi
ya i'm talking about the pattern the handbook teaches. a shared base vs a duplicate base
-
meena
read that loop, tell me what it does.
-
alepzi
run the jail in jail's home
-
meena
run which jail? where? what's running in that jail?
-
alepzi
there's no target user so i guess that's root
-
alepzi
-c creates a new jail
-
meena
complete your thoughts, write them down, then test it
-
alepzi
persist makes jail stick around
-
alepzi
i mean i don't get your sidequests i'm just asking a few questions about jails after reading the whole handbook page on it and you're playing games
-
alepzi
handbook says a disadvantage of thin jails is security and you wouldn't acknowledge that so i just don't get what your angle is
-
meena
I'm giving you this sidequest because you don't seem (my observation) to understand what a jail is. any attempts from me to explain have been fruitless you keep asking the same questions
-
meena
I want you to understand what a jail is, first.
-
meena
So, think about that loop. formulate your hypothesis(es) (one of them was that it's gonna use 1TB (of what?)) and test them
-
alepzi
no i'll ask my question elsewhere where ppl aren't so arrogant to ignore someone and tell them what's what
-
meena
🤷🏻♀️
-
meena
it's basic engineering. you can apply it to learning: what's your thesis about this thing? how do you test if your thesis maps to its reality. if it doesn't, how do you find a better thesis
-
meena
I have already answered your question that thick vs thin only concerns how you manage Filesystem isolation between jails, but you keep asking the same question. take a few hours away from it, and come back fresh at it
-
alepzi
if jails run a process how do you jail a node.js app that uses nginx to reverse proxy and the nodejs? can it be self-contained in the jail?
-
meena
that's something i would (and do) separate
-
alepzi
why?
-
meena
I run this IRC sever in a jail. it's a nodejs app. It's got its own Filesystem for config and uploads and for an SQLite database, abd it only listens on a local network
-
alepzi
if you separate everything into its own jail how do you network them?
-
alepzi
vnet?
-
meena
In front of that, i have Apache httpd as terminating TLS proxy, running in its own jail. the only jail that gets a public IP routed / NATed. it runs no billions lines of random JavaScript, just mod_proxy, mod_ssl (mod_md) and mod_security
-
meena
they talk to each other via an internal network
-
meena
-
VimDiesel
Title: website/howto/jails.md at main - pkgbase/website - Codeberg.org
-
meena
this is a bit outdated, but the gist is still largely exactly the same as my current setup
-
meena
I've gotten rid of puppet and that's now a couple lines of shell script
-
» meena —> sleep.
-
lw
kevans: found another fun netlink thing: it only aligns data to 4 bytes, so the 8-byte values are misaligned
le-fay.org/tmp/30d/BQ9p3H.txt
-
lw
this seems to be by design: /usr/include/netlink/netlink.h:#defineNL_ITEM_ALIGN_SIZEsizeof(uint32_t)
-
lw
(unless there's something i'm meant to be doing to make it align properly...)
-
voy4g3r2
hrm.. this mandoc -Tlint is showing a whole bunch of stuff..
-
voy4g3r2
must focus, links important.. clean up second
-
lw
oh no, we don't have LeakSanitizer on FreeBSD? but it's on NetBSD :-(
-
voy4g3r2
the interface giving you headaches still?
-
voy4g3r2
did you get to resolve the hash map frustrations
-
lw
i ignored that for now and just used a linked list, might revisit later
-
voy4g3r2
hrm a fortran reference in gprof
-
voy4g3r2
f77(1) in gprof man page.. but does not look like f77 has been in freebsd since 4.0
-
lw
ah, jemalloc apparently has some sort of built-in leak detection
-
voy4g3r2
weird f77 -> g77 GNU fortran
-
voy4g3r2
so from freebsd 4.0 -> freebsd 6.4 it existed.. freebsd 7.0 g77/f77 is gone from base
-
voy4g3r2
i will chalk this up to, not touching fortran.. next :)
-
voy4g3r2
lw: beyond checking man.freebsd.org would you recommend any sources to see PREVIOUS version of man pages for freebsd?
-
voy4g3r2
i am trying to confirm/deny hskbd(4) in hidbus(4) man page and going through msn.freebsd.org i do not see that it EVER existed...
-
lw
voy4g3r2: check out the src version you want and grep for it
-
voy4g3r2
okay, let me see what that unfolds.. i can find the source file and shows this .Xr and my gut is telling me.. remove
-
voy4g3r2
but lets see what we find with grep, thank you!
-
lw
i find it's useful to keep a checkout of at least the currently supported stable branches around for things like this
-
voy4g3r2
yeah
-
voy4g3r2
i am still chugging along on that pull request
-
voy4g3r2
i have expanded 'covering my bases' to man.freebsd.org, raspberry pi, amd64
-
voy4g3r2
i got dinged with zzz as it is NOT on armv7 but it is on amd64
-
voy4g3r2
and my little command find /usr/src -name "<insert file name>" -type f
-
voy4g3r2
but now we have a little find / grep magic, thanks!
-
rtprio
voy4g3r2: if you're in a repo, git grep 'blah' might be a bit faster. or git ls-files rather than find
-
lw
hm, is recvmsg() guaranteed to only read a single message (or part of message)? not two or more in one call?
-
weust
I thought I was having issues with wifi on my laptop, but last night with the Raspberry P4 and a USB wifi dongle I noticed the same issues. But, I use lagg to easily switch between onboard NIC and wifi. Without lagg wifi is just fine. Anyone else noticed this?
-
weust
What happens is that a DHCP lease is received, and applied, but the network it still down. After restarting netif three times is finally works.
-
weust
-
VimDiesel
Title: Lagg0 doesn't work properly after upgrade from FreeBSD 13.2 to 14.0 | The FreeBSD Forums
-
parv
Someone else tried "lagg" with wired & wireles connection, to be told that does not work for WiFi; one alternative was of "netgraph" & "bridging":
tech.lgbt/@Anniiii⊙fd/111691564568971020
-
VimDiesel
Title: Annie: "I am usually quite against guis for pretty much a…" - Ferrodon
-
parv
s/&/& other was of/
-
yuripv
parv: it may be broken currently, but "to be told that does not work for WiFi" sounds wrong (e.g.
docs.freebsd.org/en/books/handbook/…#networking-lagg-wired-and-wireless)
-
VimDiesel
Title: Chapter 34. Advanced Networking | FreeBSD Documentation Portal
-
parv
Well, if someone succeeds with lagg for wifi & ethernet && am still here, would love to read how that works out
-
parv
I had tried earlier & did not work for me. So yeah
-
parv
before 13
-
VVD
Using lagg for copper ethernet only - 1GE and 10GE. But that's not what you're asking.
-
nimaje
well, I had it setup in a broken way where ethernet and wifi where diffrent subnets, it worked somewhat
-
VVD
AFAIU, it must be direct connection both ethernet and wifi without any switches and wifi routers.
-
V-T60
Hello. How do I install after ssh?
-
V-T60
i'm installing to Orange Pi One H3
-
V-T60
Here there is no need to enable SSH additionally, you can just ssh freebsd@ipaddress
-
V-T60
with default password freebsd
-
V-T60
but where is my TUI install program, might I ask?
-
V-T60
freebsd@generic:/bin % whereis sysinstall
-
V-T60
sysinstall:
-
lw
V-T60: if you dd the image to the sd card (or something like that) it's already installed, that is a pre-installed system. if you want to install on other media, you can run bsdinstall
-
V-T60
/dev/ufs/rootfs 55G 1.7G 49G 3% /
-
V-T60
lw: can i use OpenBSD in FreeBSD jails?
-
V-T60
i want an OpenBSD VM, but my system is not very high on performance
-
lw
not that i'm aware of, you could run freebsd vm on bhyve but i don't think arm64 bhyve support has been merged yet
-
V-T60
once i wanted to migrate my OpenSMTPD mail server from OpenBSD to Debian, but that didn't work
-
V-T60
everything is located differently, and setup was too complicated from OpenBSD user point of view
-
V-T60
hope that won't be the problem here
-
_xor
This is so weird and I'm finally running out of ideas. My Wi-Fi doorbell camera is accessible from clients on my wired LAN, but it's NOT accessible from clients on the same Wi-Fi LAN. Wi-Fi AP is in bridge mode, so no routing or firewalling.
-
_xor
Only thing I can think of at this point is that it's some firmware issue with the camera. I did misconfigure one of the other cameras with the wrong ip/gateway and so I had to hard reset it, so the only way I can think of that potentially interfering with the doorbell camera is some kind of weird/sticky/whatever ARP entry in the Wi-Fi AP or
-
_xor
something, but that seems like a stretch.
-
V-T60
but what is root password?
-
V-T60
that is definitely not freebsd
-
_xor
My main gateway is and it's possible that something got messed up there, but not sure yet.
-
_xor
Traffic does have to go through that box.
-
V-T60
ok, root/root
-
_xor
Hmm, wait. Wi-Fi peers don't have to go through the FreeBSD box, but the other boxes do, the ones that are accessible.
-
lw
_xor: any chance the AP is set to deny client-to-client communication? this can be separate from any firewall configuration
-
_xor
lw: Good point. Checking now, though I'm not getting my hopes up.
-
_xor
Hmm, so I can ping the camera from another Wi-Fi client, but no L4 traffic seems to be getting through.
-
_xor
So my phone and laptop, both of which are on Wi-Fi, can communicate with each other fine. They can ping each other and I can SSH between them.
-
_xor
Both my phone and laptop can ping my doorbell camera too, they just can't do anything beyond ICMP. Tried to cURL an open port on the camera and it just hung (didn't immediately fail, so it was trying to transmit eth frames somewhere).
-
_xor
What's weird is that if I enable my WireGuard tunnel on my phone (regardless of whether it's on Wi-Fi or Cellular), then it's able to communicate with the camera fine. Really strange.
-
lw
how long do people usually keep logs for? i've just set maillog to 30 days on a couple of mail servers, but i'm wondering about increasing the others too
-
meena
lw: depends on what you need / use logs for
-
voy4g3r2
rtprio: good to know
-
voy4g3r2
this is a pretty neat tooL;
bhyve.npulse.net/#hero
-
VimDiesel
Title: BVCP: FreeBSD Bhyve Project
-
voy4g3r2
no source code but man it makes setting up -CURRENT a lot easier than commandline
-
VVelox
voy4g3r2: been using cbsd here, which also has LibreNMS monitoring support as well via HV::Monitor
-
V-T60
Hello
-
V-T60
Can i use ext4 inside of jails?
-
V-T60
passthrough the hdd inside somehow
-
V-T60
or is this non-working absolutely?
-
V_PauAmma_V
I may be missing something, but "passthrough" is a virtual machine concept, not a jails concept.
-
V-T60
probably you're not missing anything
-
adilix
hi all
-
V_PauAmma_V
But if you mount (using kernel support or FUSE) an ext4 partition from outside the jail with a mount path that's inside the jail root, you should be able to access its contents from within the jail, albeit with a different pathname than the mount path (ie, if the outside-the-jail mount path is /var/jail/myjail/mnt/myext4partition and the jail chroot is /var/jail/myjail, it would appear as
-
V_PauAmma_V
/mnt/myext4partition)
-
V-T60
so freebsd actually works with ext4?
-
V-T60
but only read only? or what is the trouble?
-
V_PauAmma_V
I'm not familiar enough with ext4 support to tell for sure. It may depend on which FUSE file system you use. (sysutils/fusefs-lkl may let you access it read-write.)
-
graso
how could I connect to mobile network (I got sim card port in my thinkpad) from tty?
-
[0x1eef_]
Do you have an interface for it ? Then ifconfig would probably be the way to go.
-
graso
I see just em0 (ethernet) and lo0 (wifi)
-
graso
let me reboot
-
[0x1eef_]
lo0 is usually the loopback interface - all traffic on that interface stays local.
-
lw
don't these usually appear as serial devices that talk PPP?
-
graso
after reboot still just lo0 and em0
-
babz
V-T60: yes, see ext2fs(5)
-
lw
i would start by looking through dmesg and see if you have something that looks like it could be a modem (might be a USB device)
-
zayd
Are ports installed like normal packages? I can't find a difference as I don't have it installed on anything at the moment, but I think I was told that ports are just compiled from source and I think(?) are normal packages other than that.
-
lw
zayd: yes, nowadays ports builds a pkg and installs that
-
zayd
lw: so it's like what the aur is for arch linux?
-
lw
not really, AUR is extra/community repository, ports and packages are the same software, ports is just the source for packages
-
lw
although i suppose you could consider all of ports an "AUR" for the base system...
-
zayd
is there a way to search the non port packages without having freebsd installed on something? is everything in ports available in the normal packages
-
[0x1eef_]
freshports.org
-
lw
not sure about searching (try freshports?) but yes, every port is available as a package, unless the build fails
-
zayd
ok, thanks then.
-
[0x1eef_]
There is no non-port packages AFAIK. All packages are built from the ports tree with the default build settings. Compiling a port yourself lets you tweak those build settings. Usually the main reason for doing that, or grabbing an update faster.
-
lw
(or for a very small number of ports that can't be built as packages for legal reasons... i don't know if any of these still exist?)
-
graso
hmm, "pci2: <network>" looks like might be responsible for mobile network
-
zayd
does ports.freebsd.org have the same packages as freshports? it looks like i'm getting what i'm looking for more often with ports.freebsd.org
-
graso
oh, my wifi interface is probaly iwm0, not lo0
-
babz
graso: what is you wwan car ?
-
babz
I'd expect them to use usb nowadays
-
V-T60
what is this? ugen3.3: <ULT-Best Best USB Device> at usbus3
-
V-T60
i try to connect HDD with such an adapter
-
V-T60
i had this line on my daily driver
-
V-T60
but i don't - on single board computer with FreeBSD 14.0
-
graso
@babz how could I check it?
-
AmyMalik
this is the notice that the ugen device has attached to the USB bus
-
V-T60
but why i don't get this on single board computer?
-
V-T60
the adapter is getting light up
-
AmyMalik
try jiggling the cable
-
lw
try a different USB port, some of those SBCs have weird... things with their USB
-
lw
and make sure the USB controller itself is detected in dmesg
-
V-T60
lw: i have only one usb port
-
V-T60
and on this port i attached USB hub
-
V-T60
with this USB hub wifi adapter works fine
-
V-T60
but when USB adapter for SATA is attached, nothing happens
-
V-T60
despite of the fact the USB wifi adapter is connected or not
-
V-T60
i tried to connect additional power to the usb hub, but this doesn't help
-
babz
does usbconfig lists anything ?
-
V-T60
yes, but with/without USB SATA nothing changes
-
V-T60
the same output
-
V-T60
i connected USB ethernet and it indeed appeared
-
V-T60
both in usbconfig and everywhere else
-
babz
and on your pc where it's enumerated ? it should say its speed and the current it's expecting
-
V-T60
ugen3.3: <ULT-Best Best USB Device> at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
-
V-T60
well, 500mA 5v
-
V-T60
but i tried with additional power
-
V-T60
with 5v 2a power adapter connected to USB hub
-
babz
weird
-
segfaultfizzbuzz
is there a good guide to setting up a freebsd system so it is suitable for handling more sensitive data? by sensitive, a credit card would be a good example, although this data is not credit cards
-
segfaultfizzbuzz
for example, i am thinking that turning off swap would be part of the process,...
-
V-T60
ugen3.2: <ULT-Best Best USB Device> at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
-
V-T60
oh, this appeared
-
V-T60
i connected straigth to the usb port
-
V-T60
straight* so this is either usb hub problem
-
V-T60
or idk what
-
V-T60
but through usb otg wifi works fine
-
V-T60
fuse: failed to open fuse device: No such file or directory
-
V-T60
what does it mean?
-
V-T60
oh, well, kldload fusefs
-
V-T60
i mounted
-
alepzi
whoever's adding storytime fluff into the handbook is going to ruin it. 7.2 3 paragraphs of bullshit about bulgaria
-
daemon
-
VimDiesel
Title: Chapter 7. Network | FreeBSD Documentation Portal
-
yuripv
daemon: i guess they mean developers handbook
-
voy4g3r2
yuripv: hey, i am not sure i udnerstand your do while looop comment
-
voy4g3r2
with the help of kenrap, we figured out to do this approach:
gist.github.com/kenrap/d2e7d03854ed6dc31d6cc8c880a11a23
-
VimDiesel
Title: git-step-guide.md · GitHub
-
voy4g3r2
and we did use a for loop
-
voy4g3r2
yuripv: forgot to mention, it is in reference to this comment you made :
freebsd/freebsd-src #1072#pullrequestreview-1834714425
-
VimDiesel
Title: A set of changes to manual pages that were identified to be out of alignment by chrisdavidson · Pull Request #1072 · freebsd/freebsd-src · GitHub
-
voy4g3r2
ohhh.. looks liek when i rebased the branches, i sucked in other people's commits, the do/while
-
yuripv
voy4g3r2: i did no such comment
-
voy4g3r2
ohh, my bad
-
voy4g3r2
yuripv: i do have one nugget to ask.. i started doing mandoc -Tlint on a lot of files and there are quite a few warnings, is there threshold of sorts to say what is going to be touched vs not?
-
voy4g3r2
like a STYLE issue you ignore verus an error in link
-
voy4g3r2
-
VimDiesel
Title: dpaste/XMeh (Plain Text)
-
bblinky
Hey, so I am trying to install netdata on truenas core outside the jail by using pkg-fetch on another machine and transferring the needed packages over... So far it's been working until I got a fatac gcc error that it can't compile so I tried doing a simple hello world file and compile it and get this ' fatal error: stdio.h: No such file or directory' I am not at all good with C but I would guss
-
bblinky
that's an indication that no libc is installed? Is there a package I can fetch and install on the box to fix it?
-
meena
bblinky: it's not that the libc isn't installed, there's every chance that's still under /lib/libc.so.7 — but the headerfiles aren't installed
-
bblinky
Right, is there any way I can fix that ? :)
-
bblinky
meena: I am quite inexperienced with both gcc and BSD... But I like to get my feet wet
-
meena
bblinky: first off, I would try regular cc; if that's not installed you know that TrueNAS Core is very much stripped down and unstripping it will be a lot of work
-
bblinky
y/eah, there is no cc...
-
bblinky
Maybe it's a rabbithole of not necesarry
-
meena
yeah, so, we've got no stdio.h and no cc, compiling something on it will be difficult
-
meena
But compiling something *for* it won't be impossible.
-
» meena tries to remember that quote from phk
-
daemon
if you could identify the version of freebsd it was originally based off of, and it has a memstick image you could live usb into the system
-
meena
The last time you couldn't get a binary on a system without a compiler on it installed was some time in the 1970s
-
daemon
now you use ai 8)
-
bblinky
daemon: I think it's based on 13.2
-
bblinky
gpt sucks at coding :p
-
daemon
-
VimDiesel
Title: Index of /releases/ISO-IMAGES/13.2/
-
daemon
if you was to put that on a usb and boot the system from it, you could pkg add using that to re-establish those base libraries
-
daemon
at your own risk of course :P
-
daemon
might be worth a dd to an external disk
-
bblinky
I might try it.. Right now I am just messing arround on a disposable vm for my own ammusement
-
meena
daemon: do you really mean pkg add? as in PkgBase?
-
daemon
meena, I mean I always use ports for everything -_-" I thought pkg add was what we used now days for pkg things
-
alepzi
if a daemon is controlled through a unix domain socket, i'm guessing the daemon should be responsible for creating the uds file when it starts up, and the ctl bin just connects to that socket file?
-
daemon
whichever process created whatever file would own it, but what you described would be expected behaviour
-
meena
never mind, we don't have PkgBase builds for 13:
pkg.freebsd.org/FreeBSD:13:amd64
-
alepzi
is it possible for multiple instances of the ctl bin to be running (like by different users) all connected to the same socket the daemon created?
-
VimDiesel
Title: Index of /FreeBSD:13:amd64/
-
daemon
alepzi, yes, because the daemon may be accessible by all instances
-
daemon
all files written by that daemon will be in its user:group though (by default)
-
daemon
unix sockets are not special
-
alepzi
so the uds file is 1 writer, 0-n readers
-
daemon
just think of them as file based TCP
-
alepzi
ah file based TCP makes sense
-
alepzi
and it's bidirectional right? like the server can emit data to the socket, and n clients can both receive that data as well as emit their own to the daemon side?
-
daemon
it can be there is some technicalities in that but yes it supports it
-
daemon
TCP on a file
-
alepzi
if client 1 emits a message to the socket file, will the other clients receive it also?
-
daemon
in most cases yes
-
daemon
you can actually play around and test it with ncat and the openbsd version of netcat
-
daemon
ncat is part of the nmap package
-
daemon
-U option if I recall correctly
-
alepzi
yep here we go, thx
-
alepzi
btw you know if most data programs send over uds is text, or binary, or both?
-
daemon
there whatever you want
-
alepzi
cool
-
daemon
sake as tcp and af_unix
-
daemon
udp/tcp/af_unix are protocols
-
daemon
whatever you send over them you can define
-
daemon
you might want to check this out ...
en.wikipedia.org/wiki/OSI_model
-
VimDiesel
Title: OSI model - Wikipedia
-
alepzi
if it's possible, think it's a nice feature of a daemon to be line oriented text so ncat can be a little cli?
-
daemon
that was the thought years ago, infact smtp and IRC are designed that way (more for telnet clients than nc)
-
daemon
its really a question on compression at that point
-
daemon
and no its not really relevant now days
-
daemon
most people are not console hacking
-
daemon
and those that are can bodge a client in perl to unwrap the encryption and other stuff
-
alepzi
so for every new daemon with a socket based control they make a custom client instead of just using ncat?
-
daemon
well no the standard control is via signals not sockets (af_unix_
-
alepzi
even dynamic reconfiguration is via signals?
-
alepzi
not just restart/stop
-
daemon
and there is a very precise list of how those should be handled here:
man.freebsd.org/cgi/man.cgi?sektion=3&query=signal
-
VimDiesel
Title: signal(3)
-
daemon
well normally yes
-
daemon
REHUP fore 're-read your config' etc
-
alepzi
ya but what about fully dynamic configuration, no config file to speak of
-
daemon
no idea, the only applications I have ever seen with that use databases instead
-
_xor
Imagine my surprise :|
-
alepzi
ok i'll read up on signals
-
» _xor is installing Linux onto an older system
-
alepzi
thx daemon
-
alepzi
ew
-
_xor
vi doesn't exist, but vim does...go figure.
-
_xor
Well, by default I mean. I always expect vi to be present.
-
daemon
_xor, nano instead of ee as well
-
daemon
kinda weird :P
-
daviddossi
join #politics
-
r0ni
absoluetly not
-
daviddossi
sorry about that, just installed weechat, and still getting comfortable with the interface
-
r0ni
;)
-
daviddossi
I do have a question for this channel though, I have a server that has zroot zpool with 4 drives stiped, will it be possible to get this zpool down to a single drive without having to rebuild the whole server?
-
daviddossi
...striped
-
r0ni
i cannot help there, maybe someone will chime in
-
daemon
daviddossi, the direct answer is no.
-
daemon
daviddossi, however. a traditional dump and restore would put your files back on whatever config you would like
-
daemon
so kvm or usb boot
-
daviddossi
ok thank you, that is what I thought based on what I have read thus far, was just wondering if there were a shortcut :-)
-
daviddossi
I understand the os and zpool better now, and having everything under a huge zpool does not make sense, very impressed with the system though, it is solid like a tank, reminds me of the old good days of solaris, but much friendlier in my mind