Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Tags: ag-go/rsync

Tags

v0.3.3

Toggle v0.3.3's commit message
rsyncd: implement serving from fs.FS

related to gokrazy#8

v0.3.2

Toggle v0.3.2's commit message
receiver: implement --checksum (the sender already supported it)

v0.3.1

Toggle v0.3.1's commit message
sender: correctly use os.Root for localDir vs. requested path

Previously, we concatenated the attacker-supplied requested path
directly to the localDir, which is not safe. Instead, now
we use os.Root to open localDir (configured), then pass the
attacker-supplied requested path to that safe API.

related to gokrazy#48

v0.3.0

Toggle v0.3.0's commit message
reference compression analysis in rsyncopts comment

v0.2.10

Toggle v0.2.10's commit message
internal/maincmd: fix relative paths (+test)

fixes gokrazy#39

v0.2.9

Toggle v0.2.9's commit message
pull in latest x/ packages

v0.2.8

Toggle v0.2.8's commit message
receiver: use os.OpenRoot (Traversal-resistant file APIs)

See https://go.dev/blog/osroot

This is an effective mitigation against attacks like CVE-2024-12086

Note that not all operations are covered:

The os.Root type in Go 1.24 does not yet cover all file operations,
but the one in Go 1.25 will. I have left TODOs in place.

The google/renameio package does not yet support the *os.Root type.

Some functions from the x/sys/unix package like unix.Mknod are used
safely with the *os.Root type by safely opening the parent directory
with os.Root.OpenFile, then using unix.Mknodat(int(f.Fd()), …).
Thanks to Damien Neil for sharing this trick!

I am not aware of a file descriptor-bound version of unix.Bind().

v0.2.7

Toggle v0.2.7's commit message
remove now-dead code

v0.2.6

Toggle v0.2.6's commit message
GitHub Actions: bump action versions

v0.2.5

Toggle v0.2.5's commit message
rsyncd: add HandleConnArgs (rsyncopts is not exported)

We should refactor InternalHandleConn away eventually.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.