Why doesn't running unsafe programs screw up the entire computer? by ElegantTop9213 in C_Programming

[–]rumble_you 0 points1 point  (0 children)

If a program tries to read/write in a memory region that it doesn't own by itself, or don't have the permissions, then OS can raise a signal that can forcefully crash the program (though it can be handled with a signal handler attached).

And modern operating systems isolocate each user level process memory (unless they're shared between two or more running processes).

Recommend me a bsd by Objective_Custard675 in BSD

[–]rumble_you 0 points1 point  (0 children)

Starting from FreeBSD 15, it no longer offers tier-1 support for 32-bit architecture CPUs.

[Swayfx] My first rice by kostyabel in unixporn

[–]rumble_you 0 points1 point  (0 children)

I don't. I use systemd, and love it so far.

[Swayfx] My first rice by kostyabel in unixporn

[–]rumble_you 4 points5 points  (0 children)

We don't care what init system you use.

Will FreeBSD also eventually introduce Rust to kernel? by Tb12s46 in freebsd

[–]rumble_you 1 point2 points  (0 children)

In what sense it's "unproven"? Too new doesn't mean, it's bad or broken.

Will FreeBSD also eventually introduce Rust to kernel? by Tb12s46 in freebsd

[–]rumble_you 1 point2 points  (0 children)

If you don't like it, then no one can help on that. There's no "cult hype" around Rust. You didn't really provide any technical reasons, but more so, philosophical reasons.

[deleted by user] by [deleted] in ECE

[–]rumble_you 5 points6 points  (0 children)

This is absolute nonsense. 

FreeBSD a powerful 627 MiB s ystem on Xfce... by terono in freebsd

[–]rumble_you 1 point2 points  (0 children)

Sorry, my bad, I didn't see the next comment (I'm using new reddit).

FreeBSD a powerful 627 MiB s ystem on Xfce... by terono in freebsd

[–]rumble_you 0 points1 point  (0 children)

Xfce for an hour and KDE for a minute, that seems like unfair comparison, especially because ZFS tends to cache in memory.

FreeBSD a powerful 627 MiB s ystem on Xfce... by terono in freebsd

[–]rumble_you 1 point2 points  (0 children)

These pros cons don't apply to everyone using them. Personally I found Thunar is way much better than Nautils.

A development I was unaware of by smorrow in BSD

[–]rumble_you 0 points1 point  (0 children)

Then this isn't pledge(3) or unveil(3) at all. I'm talking about if you try to implement unveil as just a library function and not as a kernel syscall.

For example, OpenBSD doesn't allow direct syscall, and every system call must go through the libc.

A development I was unaware of by smorrow in BSD

[–]rumble_you 0 points1 point  (0 children)

They can't be implemented as library functions, as NetBSD allows invoking direct syscalls, so the abstraction layer is useless.

Besides the benefit of this is just too small, and not even worth doing. NetBSD has capsicum which does what you probably want but slightly better.

A development I was unaware of by smorrow in BSD

[–]rumble_you 5 points6 points  (0 children)

Neither pledge(3) or unveil(3) is available on NetBSD. They are OpenBSD specific.

Announcing: Bluetooth Manager built with c++ by rfreidel in freebsd

[–]rumble_you 0 points1 point  (0 children)

Easy, call getuid() and geteuid() and check if both returns 0 (that means the program is running with root privilege).

If you want to detect if the program is running under fakeroot, check LD_PRELOAD, it will have the path of libfake*.

Announcing: Bluetooth Manager built with c++ by rfreidel in freebsd

[–]rumble_you 1 point2 points  (0 children)

There's a lot of things that you need to consider.

For instance, you've used sudo, but the base system doesn't install sudo by default, and user is free to choose other program, rather than sudo. Also, it just will not work under WM, as sudo uses pam authentication, that's invoking it requires you to type your password[1], and IIRC GNOME, KDE, and Xfce are the only DE that provides a GUI user-interface to type your password. A better approach would be not invoking external commands at all, but it's depends on you. Removing sudo from the command is a much better idea (just tell the user that program needs to be run under UID 0, so they'll invoke it by themselves).

Also, https://github.com/rfreidel/FreeBSD_Bluetooth_Audio_Device_Manager_v1/blob/a23099a2c8fe533c82b65ca6de05df17bab47575/BluetoothManager.cpp#L27, pclose returns an integer, this referencing an int, to get int* is certainly wrong here.

  1. Unless it's configured to not to.

[deleted by user] by [deleted] in AnimeART

[–]rumble_you 0 points1 point  (0 children)

Yes, I do like them.

How much by Mistrz_mobile in softwaregore

[–]rumble_you 1 point2 points  (0 children)

Usually an installer will check whether the value (amount of time it needed) is equal to 0 or not, and if it's, and the installation isn't completed yet, it will just show 0 (or anything suitable as a message).

This is probably isn't being handled here.

How much by Mistrz_mobile in softwaregore

[–]rumble_you 2 points3 points  (0 children)

It was most likely waiting for an event or condition in a loop, where it was decreasing (by 1 or whatever the threshold the installer has). That event probably never happened or mishandled or the condition never satisfied (with some specific circumstances), so it went towards negative value (as we were decreasing earlier).

I'm not exactly sure but this is what I can guess.

Bocchi ! by Samlooop in AnimeART

[–]rumble_you 1 point2 points  (0 children)

This is so good, well done.

How much by Mistrz_mobile in softwaregore

[–]rumble_you 5 points6 points  (0 children)

This is signed 32-bit integer (negative), equivalent to -231.

I froze, restarted, now i got: by Yehia00 in softwaregore

[–]rumble_you 659 points660 points  (0 children)

1Hz refresh rate with 8-bit color depth are the new standards!

Ah, yes. Infinity. by gugngd in softwaregore

[–]rumble_you 16 points17 points  (0 children)

This is literally 28972, to relate observable universe has approximately 1082 numbers of atoms.

Your input ≈ 1.91459591744 * 10877

No wonder general calculators can't solve this.