News for hackers. Stuff that matters.
Re:Show HN: Rssfs – An RSS reader written as a file system by pengaru on Sunday May 10, 2020 @04:28PM (#23135875)

  macOS and other non-Windows machines
  sudo ./rssfs
Just what I always wanted; an RSS reader running as root. /s

Why are you using sudo here? FUSE filesystems shouldn't require special privileges unless they're accessing privileged stuff like block devices owned by root.

Re:Show HN: Rssfs – An RSS reader written as a file system by rhabarba on Monday May 11, 2020 @12:37AM (#23138960)
You’re right, that would probably not be required.
Re:Show HN: Rssfs – An RSS reader written as a file system by totony on Sunday May 10, 2020 @08:02PM (#23137479)
Iirc, fuse is setuid anyways. Having mount privilege is equivalent to being root on linux.
Re:Show HN: Rssfs – An RSS reader written as a file system by pengaru on Sunday May 10, 2020 @09:31PM (#23138038)
There's no such thing as a `fuse` system executable on linux.

There is `fusermount` which is indeed suid (so is `mount` btw), but it's also been designed to accommodate unprivileged FUSE mounts and always adds 'nosuid' and 'nodev' mount options when establishing them.

It's not equivalent to being root at all.

https://www.kernel.org/doc/html/latest/filesystems/fuse.html...

Re:Show HN: Rssfs – An RSS reader written as a file system by totony on Sunday May 10, 2020 @09:56PM (#23138165)
That's fair. Unfamiliar about how this works, since ntfs-3g seems to drop root after mounting.

I would still not be comfortable about giving mount permissions to ordinary users (even through a setuid layer since they're known to cause security issues)

Re:Show HN: Rssfs – An RSS reader written as a file system by rhabarba on Sunday May 10, 2020 @01:20PM (#23134275)
(This is my first try to play with FUSE. I hope it's still OK.)

Windows support will follow later this year. Maybe. I’d really prefer to have two not-too-diverging code bases here. Need to experiment a bit...

Re:Show HN: Rssfs – An RSS reader written as a file system by tyingq on Sunday May 10, 2020 @04:22PM (#23135818)
Winfsp maybe? It has a fuse compatibly layer (see fuse.h in the repo).

http://www.secfs.net/winfsp/

Re:Show HN: Rssfs – An RSS reader written as a file system by rhabarba on Monday May 11, 2020 @12:23AM (#23138887)
I am working on it. Slowly. (see driver-winfsp.go.)
Re:Show HN: Rssfs – An RSS reader written as a file system by rumanator on Sunday May 10, 2020 @05:35PM (#23136442)
Why does your project require running as root?
Re:Show HN: Rssfs – An RSS reader written as a file system by rhabarba on Monday May 11, 2020 @01:45AM (#23139222)
It probably does not. I’ll need to understand FUSE better...
Re:Show HN: Rssfs – An RSS reader written as a file system by rhabarba on Tuesday May 12, 2020 @06:15AM (#23152399)
Fixed.
Re:Show HN: Rssfs – An RSS reader written as a file system by seqizz on Sunday May 10, 2020 @06:15PM (#23136803)
I started to think there is a wheel-of-fuse somewhere and people are rolling it to match random things to build as FS.
Re:Show HN: Rssfs – An RSS reader written as a file system by petercooper on Sunday May 10, 2020 @05:15PM (#23136267)
What's the benefit of offering this via FUSE rather than having a program just fetch the same material and store it in the usual filesystem with the same folder and filenames? I assume there is one and I'm missing it. (Alternatively if this is for learning/experimenting, that's OK! :-))
Re:Show HN: Rssfs – An RSS reader written as a file system by isr on Sunday May 10, 2020 @10:07PM (#23138216)
We have a lot of tools built to interact with files. A legacy of multiple decades on Unix.

Using that same file "metaphor" to describe resources other than actual blobs to be stored on disk, is surprisingly powerful.

Something which plan9 (& inferno) explored in great depth, and is quite the eye-opening experience. Not much point rehashing the same args again here. If you're interested, check out some youtuve vids, and enjoy the deep dive into an alternative future.

To get something similar on more mainstream OS's, try plan9port and Acme (usually described as an "editor", but its more of a tmux and terminal replacement, which also happens to be able to edit and save text files)

Re:Show HN: Rssfs – An RSS reader written as a file system by gnu on Monday May 11, 2020 @01:12AM (#23139098)
Exposing something as files is kind of like a "protocol". The alternative would have been a library (implemented in a language) that would make things confine itself to the ecosystem of the language. Instead, anyone who can talk to files and directories can interact with this program!

There are applications where this may not entirely be a match though..

Re:Show HN: Rssfs – An RSS reader written as a file system by clktmr on Sunday May 10, 2020 @06:58PM (#23137102)
Not OP, but the benefit of the filesystem implementation is probably to only fetch the data on read.
Re:Show HN: Rssfs – An RSS reader written as a file system by rhabarba on Monday May 11, 2020 @12:22AM (#23138886)
Which is not really done yet either. I might add that... I’ll work on it tonight (CEST), probably.
Re:Show HN: Rssfs – An RSS reader written as a file system by rhabarba on Monday May 11, 2020 @03:25AM (#23139677)
Done (poorly).
Re:Show HN: Rssfs – An RSS reader written as a file system by totony on Sunday May 10, 2020 @08:04PM (#23137492)
Having files as common interface has been popular in microkernels and unix for a long time now