[Bug 10719] New: Error with cached effective process gid

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 10719] New: Error with cached effective process gid

samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=10719

           Summary: Error with cached effective process gid
           Product: rsync
           Version: 3.1.1
          Platform: x64
        OS/Version: FreeBSD
            Status: NEW
          Severity: major
          Priority: P5
         Component: core
        AssignedTo: [hidden email]
        ReportedBy: [hidden email]
         QAContact: [hidden email]


Tere was an error in previous git commit
3b83a22057b71e7df2b960d3997fb4474910f30e:
----------------------------------------
[lonerr@neon ~/src/rsync]% git show 3b83a22057b71e7df2b960d3997fb4474910f30e
commit 3b83a22057b71e7df2b960d3997fb4474910f30e
Author: Wayne Davison <[hidden email]>
Date:   Wed Sep 2 08:56:34 2009 -0700

    Define and use "our_gid" variable.
----------------------------------------

In this commit effective process gid determined once (in main.c), but after
client connect and daemon forked effective gid may be different (when you use
the 'gid' option in config file).
Now this commit was merged in 3.1.x thus broken some use cases.

Simple test case:

1. Prepare destination catalog:
rm -rf /tmp/dst && mkdir /tmp/dst && chmod 755 /tmp/dst && chown nobody:nobody
/tmp/dst

2. Prepare minimal rsyncd.conf:
--------------------------
pid file = /var/run/rsyncd.pid
uid = nobody
gid = nobody
read only = no
use chroot = no
[dst]
    path = /tmp/dst
--------------------------

3. Start rsyncd as standalone daemon with standard rc script.

4. Try to rsync empty file belongs to group wheel (gid==0).
touch /tmp/src && chown 0:0 /tmp/src && rsync -av /tmp/src localhost::dst/
--------------------------------
sending incremental file list
src
rsync: chgrp ".src.tIDLzz" (in dst) failed: Operation not permitted (1)

sent 79 bytes  received 111 bytes  380.00 bytes/sec
total size is 0  speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code
23) at main.c(1165) [sender=3.1.1]
--------------------------------

With this commit rollbacked - operation is restored.

--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Reply | Threaded
Open this post in threaded view
|

[Bug 10719] Error with cached effective process gid

Samba - rsync mailing list
https://bugzilla.samba.org/show_bug.cgi?id=10719

--- Comment #1 from lonerr <[hidden email]> ---
Three years later, any updates? :)

--
You are receiving this mail because:
You are the QA Contact for the bug.

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Reply | Threaded
Open this post in threaded view
|

[Bug 10719] Error with cached effective process gid

Samba - rsync mailing list
In reply to this post by samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=10719

Wayne Davison <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #2 from Wayne Davison <[hidden email]> ---
I've just committed a fix for this to git.

--
You are receiving this mail because:
You are the QA Contact for the bug.

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html