Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jra_samba
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
jra_samba
4y ago
A Tesla is a Linux desktop, of course. :-).
32.
▲
by
jra_samba
4y ago
Please get your facts correct. Google does not whine about GPLv3. Google ships GPLv3 licensed code. Google doesn't allow AGPL code, but that is a different license. Apple, however, will not ship GPLv3 code.
33.
▲
by
jra_samba
4y ago
On the contrary. Unsolved heinous crimes are still common. Here is one that disturbs me greatly. It is still unsolved to this day. https://www.sfchronicle.com/crime/article/Oakland-Chinese-Ch...
34.
▲
by
jra_samba
4y ago
I'm giving a (slightly updated) version of my talk at the Storage Network Industry Association Storage Developer's Conference (2022) in Freemont, CA next thursday: https://storagedeveloper.org/events/sdc-2022&
35.
▲
by
jra_samba
4y ago
"And All The Stars, A Stage", by James Blish.
36.
▲
by
jra_samba
4y ago
"(Samba is not native, it's a reverse engineered SMB implementation, it's very difficult for the average Joe to manage and set up.)". How is Samba not native ? SMB is a Microsoft proprietary protocol, but now fully docum
37.
▲
by
jra_samba
4y ago
Just going to leave this here. https://whywontgodhealamputees.com/
38.
▲
by
jra_samba
4y ago
This code doesn't work and has security holes via race conditions. You cannot walk a path using lstat and readlink. Once you have walked past a component you have checked, an attacker can change it to point elsewhere. You must use open
39.
▲
by
jra_samba
4y ago
No cifsfs is maintained by Samba Team member Steve French (now at Microsoft) and is a kernel SMB1/2/3 redirector.
40.
▲
by
jra_samba
4y ago
Lord of Light by Roger Zelazny. Something about this book speaks to me. It's a wonderful examination of how the human condition never changes in a world of magic, wonders and terrors beyond imagination.
41.
▲
by
jra_samba
4y ago
Just want to second this ! Please subscribe to lwn. I learn new things from lwn every week. It's really worth the money.
42.
▲
SambaXP 2022 talk videos posted
(youtube.com)
1 points
by
jra_samba
4y ago
|
0 comments
43.
▲
by
jra_samba
4y ago
A sad story about man with mental illness.
44.
▲
by
jra_samba
4y ago
Starts at 6am Pacific, 9am Eastern, 3pm Central European time. Virtual, and free to attend with registration. Come learn about the future of the SMB 2 & 3+ protocols, the most widely used storage protocols worldwide, from the desktop an
45.
▲
SambaXP Conference starts tomorrow. Virtual and free to attend
(sambaxp.org)
1 points
by
jra_samba
4y ago
|
1 comments
46.
▲
by
jra_samba
4y ago
https://old.reddit.com/r/DataHoarder/
47.
▲
by
jra_samba
4y ago
Of course the irritating thing is that all of their consumer devices are internally Linux as well, including the FireTV's that happily stream Amazon Prime in 4K. So it isn't like they can't do it, just won't.
48.
▲
by
jra_samba
4y ago
We just (a week or so ago) added the ability to remove it. You can now configure samba with: --without-smb1-server and the SMB1 code is no longer compiled into the binary :-).
49.
▲
by
jra_samba
4y ago
SMB3 is secure over the internet. But you really have to make sure it is an encrypted connection. In Samba you do this by adding: server min protocol = SMB3 smb encrypt = required to the [global] section of your smb.conf.
50.
▲
by
jra_samba
4y ago
Not true. mmap is commonly used in malloc implementations. Look at this man page for jemalloc. http://jemalloc.net/jemalloc.3.html "Traditionally, allocators have used sbrk(2) to obtain memory, which is suboptimal for
51.
▲
by
jra_samba
4y ago
No, it doesn't. malloc(0) != malloc(0) because the internal malloc header is different for each allocation. Asking for a malloc of size n, means internally the malloc library allocates n + h, where h is the internal malloc header size.
52.
▲
by
jra_samba
4y ago
It's just a warmup. Tells me how the candidate thinks about such things. In production code of course the max size is limited to avoid DoS. My bug in Samba was missing the behavior of the zero case.
53.
▲
by
jra_samba
4y ago
Well yes. I'm looking for competent C coders. Competent C coders know how malloc works. It goes with the territory.
54.
▲
by
jra_samba
4y ago
Many protocols read values of a network to specify how much is left in the packet (it's how packet boundaries are usually encoded, specifically in SMB1/2/3). So yes, no matter how paranoid you are you're eventually going
55.
▲
by
jra_samba
4y ago
See the replies below. Someone just submitted a really comprehensive answer !
56.
▲
by
jra_samba
4y ago
That's right ! Great answer. malloc() is a very old API. A more modern version would probably looks like: err_code malloc(size_t size, void **returned_ptr); The current malloc() overloads the return to say NULL == no memory available&#
57.
▲
by
jra_samba
4y ago
I don't code to in C++ anymore. Did a long time ago. I'm looking for careful programmers around security and API design. This is nothing to do with performance tuning. It's to do with security.
58.
▲
by
jra_samba
4y ago
mmap, brk, sbrk are standard POSIX system calls.
59.
▲
by
jra_samba
4y ago
It uses the mmap, sbrk or brk system calls. All perfectly callable from C.
60.
▲
by
jra_samba
4y ago
Of course malloc is implemented in C. Look at the glibc source code.
More ›