-
alanc
I made it, and I don't even think I saved a copy
-
despair86
aw
-
alanc
not sure it would be of any use to you since it didn't really have any nvidia support
-
despair86
oh i was just wanting to peek into the code out of curiosity, in the meantime i'm going nuclear and rebuilding x with cursed studio FCS
-
alanc
I thought it was on hg.openindiana.org at one point, but that's long gone now
-
lundman
Never looked deeply into audit, but can it be made to make a syslog entry if a user does a write to a specific file, say, /etc/passwd ?
-
jbk
not as far as i know
-
jbk
one thing i've never looked at other than noting it's there
-
jbk
is that part of the zfs acls is an 'audit' auction that AFAIK does nothing
-
jbk
(like goggles :P)
-
jbk
a thought i had a _long_ time ago would be an audit action that'd just trigger on files with such permissions
-
lundman
yeah, I know its there, and its complicated, but never tried it
-
jbk
of course
-
jbk
what happens if someone does like an mv
-
lundman
seems I can use "auditreduce" to look for specific files
-
jbk
and replaces the file
-
jbk
etc.
-
lundman
but that appears to be something you run after.. not produced to syslog
-
jbk
because yeah, it'd be nice to be able to say 'hey a write happened to /etc/passwd or /etc/shadow'
-
jbk
but something wrote to /tmp or /var/tmp? probably not as interesting to log
-
lundman
definitely
-
jbk
though at least the model is generally more useful
-
jbk
granted it's been a long time
-
jbk
but when i looked at the auditing available on redhat or centos, it seemed pretty worthless in that it didn't seem to really capture anything of interest
-
jbk
(suse seemed like it _might_ have been better, but that wasn't an option)
-
jbk
(IIRC, openbsd modeled their auditing after the solaris/illumos model)
-
lundman
in this case, its not something I think is worthwhile - but the mgrs have said we have to send syslog if someone writes to passwd
-
lundman
dtrace is a bit heavy to run :)
-
jbk
if it's that specific, i wonder if you could write something using file monitoring w/ event ports
-
jbk
grok.elemental.org/source/xref/illu…md/watch_dir/watch_dir.c?r=71b43f2a has an example both of event ports and inotify (though inotify is mostly for linux compat, and might not be in whichever distro you're using)
-
jbk
watchign a directory, but might help as a guide
-
lundman
there is fswatcher yes - could be an option
-
lundman
but I thought events wasin Sol11, thus not in illumos?
-
jbk
there might be some additional bits not implemented in illumos (haven't looked) but there are at least a decent set of file based events
-
jbk
the port_associate(3C) man page has more details on what events are there for files
-
lundman
fswatch compiled at least
-
neuroserve
lundman : what about /etc/security/audit_event and the output in /var/audit ?
-
lundman
i have no idea - audit seems like a really large hammer
-
LeftWing
For what it's worth, though that exact behaviour might not be present yet, that's exactly the kind of thing audit is for
-
LeftWing
DTrace would be a poor choice for auditing because you can make it drop events
-
LeftWing
And using FEN to watch the file or whatever will tell you (after) that it has changed, but won't tell you how many times and who did it
-
tsoome
jbk the smbios address is coming from efi-systab
-
despair
i nuked the kernel from a live image by accident
-
despair
why is the fb console so slow
-
despair
i assume it's using the PROM framebuffer routines (int 16)?
-
tsoome
slow where?
-
tsoome
and uefi or bios version?
-
despair
a pkg update/fix/etc takes ages to do if nvidia braindumps
-
despair
because it's taking longer to update the display than actually doing the package operation
-
tsoome
ah, when os is running. you can do few things about it. get better gfx card, tune down depth (only in BIOS mode), switch to text mode (only in BIOS mode).
-
despair
ah
-
despair
yeah i don't have a separate EFI framebuffer so i'd be even worse off if i used the EFI boot monitor instead of BIOS
-
tsoome
if you are using UEFI, then there is no text mode (no VGA BIOS), and the only supported depth is 32.
-
despair
i.e. the ryzen 7 series requires a gpu
-
despair
yeah
-
tsoome
drm-kms would help, but I'm still trying to learn about it (we only have limited gpu support there anyhow)
-
despair
is it possible to change the default console font
-
despair
or is that baked into the kernel
-
tsoome
yes, from loader
-
despair
oh
-
» despair cringes at the sight of the freebsd loader typeset in Times
-
tsoome
set screen-font will list you available ones
-
tsoome
no times, we can only use bitmap fonts and the current list is selection from terminus + you can load gallant with loadfont command (ls /boot/fonts)
-
despair
ah
-
» despair wants to make an ips repo containing only a cursed xorg
-
tsoome
at this time, for FB mode, we only can draw directly on linear frame buffer, for better results the drm would be needed (I do not think it is worth to invest time into in kernel vbe)
-
despair
> first thing in the ips docs: do not subset packages
-
despair
i see
-
despair
ok so it's not nearly as bad
-
despair
worst case would be to drop into real mode to call PROM INT16
-
tsoome
in kernel, we do use ram buffer for primitive double buffering
-
tsoome
but ofc it is not as good as page flipping etc
-
» despair just built xorg using a cursed compiler toolset
-
despair
outlook: neutral (at least it doesn't core immediately)
-
tsoome
core is usually hint about bug in code:D
-
despair
yeah there's at least one bug in the nvidia GLX driver but at least a studio-built xorg isn't making things worse
-
neuroserve
lundman : audit is active on triton smartos CNs by default (I have not activated it)
-
neuroserve
lundman : I wasn't aware of it until I watched
youtube.com/watch?v=96PGoXHli3Q
-
gitomat
[illumos-gate] 13217 Allow building with python 3.9 -- Andy Fiddaman <omnios⊙ccu>
-
gitomat
[illumos-gate] 13220 Add support for the IA32_FEATURE_CONTROL MSR in bhyve -- Jason King <jason.king⊙jc>
-
tsoome
so, python3 is only built 64-bit, right?
-
ptribble
depends on the python and the distro, I guess
-
tsoome
indeed, well, we have no python on gate
-
tsoome
anyhow, and 2.7 is dead, so distros are dropping it?
-
ptribble
reports of 2.7's death are somewhat exaggerated
-
tsoome
:D
-
ptribble
but yes, generally we're trying to move away from it
-
ptribble
there's still quite a large part of the world that hasn't moved to python3 though
-
tsoome
so, what shall happen with this line: file path=usr/lib/mdb/proc/libpython$(PYTHON_VERSION).so group=sys mode=0555
-
tsoome
that one is related to 2.7, as we also do have PYTHON3_VERSION.
-
» despair woke up to a still-running x server
-
tsoome
jbk I hope this final build will end up clean now and I can confirm OK:)
-
jbk
ok
-
tsoome
despair do not sleep next to computer:P
-
jbk
the mapfile stuff?
-
tsoome
jbk yes
-
jbk
ok
-
despair
tiny room, tiny apt :-(
-
jbk
i meant to reply to your questions, but this l2arc stuff derailed me
-
tsoome
those are just small ones, nothing to stop things:)
-
jbk
i don't think we've removed the lint stuff yet for sparc
-
despair
ips manual: "do not subset packages" me: need to break out the x gate to build separately
-
jbk
(it's not used, but still there for the kernel stuff)
-
tsoome
oh we have lint bits all over the place anyhow
-
jbk
so at least for some of those, the comment is still relevant in so much as describing what the (dead) parts of the makefile are for
-
jbk
so it might be better to keep it until those bits are yanked out
-
tsoome
ok. id you see the note about smbios?
-
jbk
yeah
-
tsoome
did*
-
jbk
and thanks
-
tsoome
ok
-
jbk
i wanted to confirm that
-
jbk
someone has a system that panics _early_ in the boot, but only when using EFI
-
jbk
(might have seen it on the smartos-discuss list)
-
tsoome
we are picking it up from dboot btw
-
jbk
and it's when it the smbios device is opened
-
tsoome
hm
-
tsoome
no, i haven't seen it
-
jbk
(but only when booting EFI -- legacy bios boots fine)
-
jbk
so i wanted to understand what _should_ be happening
-
jbk
and it does look like an address is getting passed to the kernel
-
jbk
so now I need to understand how that should related to the rest of the memory info :)
-
jbk
err relate
-
jbk
I _think_ (i need to look closer) one of the reserved memory ranges (as displayed by prom_debug) seems to contain the smbios address given to the kernel
-
jbk
i've not looked much at the early boot stuff
-
jbk
so i need to dig to understand if that's expected or not (assuming my math was right)
-
jbk
(unless someone else here happens to know :P)
-
jbk
I don't think there's anything different there between smartos and illumos-gate, so it's likely something that would impact any distro
-
tsoome
so, if its listed as reserved, the mapping is not created and it will blow up?
-
jbk
i don't know :)
-
tsoome
you can check smbios entries from loader show command
-
tsoome
we get some simple data extracted
-
jbk
0x14802b30 smbios-address = len=8 00000000beaea740
-
jbk
that's what gets passed to the kernel
-
jbk
but then it does with 'hat_devload: loading a mapping to free page fffffe00061991f8'
-
jbk
err dies
-
jbk
i don't know if it matters that the starting physical address isn't page aligned (I'm guessing no)
-
tsoome
process_efi64() in dboot_startkern.c is setting address to struct xboot_info *bi;
-
jbk
yeah, it looks like the right physical address is getting passed into psm_map_phys_new
-
jbk
(in the code there's a fallback path if the smbios address isn't provided, so first thing was to establish which path it was taking -- we know it's being provided, and it's being passed in)
-
tsoome
yea, the bios version is performing the search
-
tsoome
there is another thing about memory maps; the efi version will start kernel with efi memory map, but we do not really do anything with it, except there is rough translation to smap like list.
-
jbk
yeah, i need to look at that output and a hex calculator :)
-
tsoome
ficl-sys :D
-
jbk
with all the trailing 0s and most of the output as (addr, len) trying to figure out what lies within what isn't easy
-
jbk
unless your max and think in hex :P
-
jbk
err you're
-
tsoome
ok, so those pages should not end up in freelist, isn't is what the panic is telling us?
-
jbk
yeah, but not sure how things are normally supposed to work (yet)