Skip to content

Conversation

@ddiss
Copy link

@ddiss ddiss commented Feb 19, 2025

lklfuse-mount@.service:
Mount a block device (specified via @instance) using lklfuse. The lklfuse binary is run as an unprivileged "lklfuse" user. The fuse "allow_other" mount option is used to provide access for users other than "lklfuse", and requires a "user_allow_other" setting in fuse3.conf

61-lklfuse.rules:
Detect USB block device add/remove events and start/stop the lklfuse-mount@ service. Block device ownership changed to provide unprivileged "lklfuse" user access.

@ddiss
Copy link
Author

ddiss commented Feb 19, 2025

Not sure whether these are interesting for others, but figured I'd submit them here just in case.

lklfuse-mount@.service:
Mount a block device (specified via @instance) using lklfuse. The
lklfuse binary is run as an unprivileged "lklfuse" user. The
fuse "allow_other" mount option is used to provide access for users
other than "lklfuse", and requires a "user_allow_other" setting in
fuse3.conf

61-lklfuse.rules:
Detect USB block device add/remove events and start/stop the
lklfuse-mount@<dev> service. Block device ownership changed to provide
unprivileged "lklfuse" user access.

Signed-off-by: David Disseldorp <ddiss@suse.de>
@ddiss ddiss force-pushed the lklfuse_udev_systemd branch from cf69999 to d95384a Compare February 19, 2025 12:11
@ddiss
Copy link
Author

ddiss commented Feb 19, 2025

v2:

  • Set fsname=$DEV and subtype=lkl.$FS FUSE mount options by default to improve visibility and unmount behaviour

Copy link
Member

@tavip tavip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I think its worth having it here as an example. Thanks @ddiss !

@tavip tavip merged commit 7769847 into lkl:master Feb 20, 2025
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants