News for hackers. Stuff that matters.
Re:What FreeBSD can offer compared to other operating system... by cassianoleal on Wednesday June 08, 2022 @07:22AM (#31665767)
> Because you don't need it? Or you don't want it, but cannot deactivate it in bios? Security and Kernel-size

Just blacklist the kernel modules, then. Or even plain delete them from disk.

Re:What FreeBSD can offer compared to other operating system... by A4ET8a8uTh0 on Wednesday June 08, 2022 @07:36AM (#31665859)
You don't have to blacklist or delete anything if it is not there to begin with, which is the point of OP.
Re:What FreeBSD can offer compared to other operating system... by nix23 on Wednesday June 08, 2022 @07:44AM (#31665906)
It's kind of crazy, people always say bloat here bloat there, but then come up with blacklisting....ahhh the forgotten "art" of just having the code you need on your machine ;)
Re:What FreeBSD can offer compared to other operating system... by mbreese on Wednesday June 08, 2022 @11:15AM (#31668580)
I get the sentiment, but there is also something to be said for having a consistent and stable starting configuration. Yes, you might end up removing Bluetooth modules from servers, but you know exactly what the starting kernel config is. When you have completely custom kernels for each server, you’ll spend half of your time just figuring out what the starting configuration is.

Compiling kernels is really a lost art that many people have never done. It’s probably best to avoid too much of that in production until it’s absolutely necessary.

Re:What FreeBSD can offer compared to other operating system... by nix23 on Wednesday June 08, 2022 @11:48AM (#31669147)
>It’s probably best to avoid too much of that in production until it’s absolutely necessary.

Well yes, being organized is always important, like a customer of mine wanted all Linux server with GUI and installed all of them as "Desktop-Role" aka preempt-kernel.

Gui-Server...bleh..but Customer is King, but i could at least change he's mind about the kernel so Gui-Server-Role it was.

Re:What FreeBSD can offer compared to other operating system... by nequo on Wednesday June 08, 2022 @08:06AM (#31666061)
If you blacklist it, it is also not there since it’s not loaded, and you get the added benefit of not having to recompile the kernel every time there’s an update.
Re:What FreeBSD can offer compared to other operating system... by nix23 on Wednesday June 08, 2022 @08:19AM (#31666171)
It's there but not loaded.

A slimmed-down kernel make the difference from ~100MB (kernel) + 32MB (Modules) to 2MB (Kernel + Modules), faster load, or for smaller devices, and overall less potential attack surface.

Re:What FreeBSD can offer compared to other operating system... by cassianoleal on Wednesday June 08, 2022 @09:05AM (#31666687)
Surely you don't reduce 132Mb of kernel+modules to 2Mb just by disabling bluetooth.
Re:What FreeBSD can offer compared to other operating system... by oriolid on Wednesday June 08, 2022 @01:51PM (#31671339)
No. You do that by not enabling support for all that stuff that's available in the kernel but you don't have any idea what it even is.
Re:What FreeBSD can offer compared to other operating system... by cassianoleal on Wednesday June 08, 2022 @05:54PM (#31674836)
I don't know why you people keep bringing up those subjects that have nothing to do with the thread.

This is about easily disabling support for one thing. The OP says it's easier in FreeBSD because you add a line to a text file and recompile the kernel. We're saying it's also very easy in Linux even without recompiling the kernel by simply blacklisting and/or deleting a module. Alternatively, recompiling the kernel is also quite easy but what's the point? To shave off 5kb from the kernel, or not even that, since the module is external anyway? My time is worth a lot more than those potential few kbs.

By the time you're fine-tuning your kernel to be the absolute minimum for a specific machine, it doesn't really matter if it's FreeBSD or Linux. It will take time and probably quite a bit of trial and error. And then again, if you have ever run `make menuconfig` on a Linux kernel tree you probably know it's pretty easy. In fact, the discoverability is excellent there, since the options are presented to you with explanations. Is that harder than manually editing a conf file, having to know beforehand exactly what lines to add/delete/edit and with what values? If you think it is, you can also edit the conf file for the Linux kernel.

I have nothing against FreeBSD, but this argument is total nonsense.

Re:What FreeBSD can offer compared to other operating system... by nix23 on Thursday June 09, 2022 @02:49PM (#31685244)
> I don't know why you people keep bringing up those subjects that have nothing to do with the thread.

Hint is was not about about Bluetooth ;)

But maybe everyone else is wrong, just not you.

Re:What FreeBSD can offer compared to other operating system... by nix23 on Wednesday June 08, 2022 @11:50AM (#31669187)
>>A slimmed-down kernel

The magic of reading....

Re:What FreeBSD can offer compared to other operating system... by cassianoleal on Wednesday June 08, 2022 @12:38PM (#31669947)
I think you're missing my point.

By the time you want to slim down the kernel that much, Linux, OpenBSD, FreeBSD, they're not that different.

That was not the point of this thread, so back at ya:

> The magic of reading....

Re:What FreeBSD can offer compared to other operating system... by nix23 on Wednesday June 08, 2022 @02:01PM (#31671516)
It should be clear that Bluetooth is not 90% of the kernel size...that's why i wrote "slimmed down" which means disable/not-compile everything not needed (like just one of 3 firewalls, filesystems, network-stacks etc).

>By the time you want to slim down the kernel that much, Linux, OpenBSD, FreeBSD, they're not that different.

Yes, but you don't do that by blacklisting modules right? Because that was your solution ;)

Re:What FreeBSD can offer compared to other operating system... by cassianoleal on Wednesday June 08, 2022 @05:10PM (#31674233)
That was the solution to what this thread is about: easily disabling bluetooth.
Re:What FreeBSD can offer compared to other operating system... by nix23 on Thursday June 09, 2022 @02:57AM (#31678293)
No it was about why to build the kernel without some modules.
Re:What FreeBSD can offer compared to other operating system... by cassianoleal on Wednesday June 08, 2022 @09:04AM (#31666665)
If you need to rebuild the kernel to disable it, it means it was there to begin with.

Otherwise it's just an implementation choice: recompile kernel, or blacklist+delete modules.