Bug 2219617 - [RHEL 8] rsync in Geo-replication fails to sync data from primary to secondary [NEEDINFO]
Summary: [RHEL 8] rsync in Geo-replication fails to sync data from primary to secondary
Keywords:
Status: ASSIGNED
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: selinux-policy
Version: ---
Hardware: Unspecified
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Zdenek Pytela
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-04 15:22 UTC by Shwetha K Acharya
Modified: 2023-08-16 10:09 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:
sacharya: needinfo? (sacharya)


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-162078 0 None None None 2023-07-12 06:44:59 UTC

Comment 2 Zdenek Pytela 2023-07-12 08:41:27 UTC
Can you elaborate a bit on what is happening on the system reporting denials? In particular, I'd like to know:

- Is it the initiator or the target system?
- Is rsync running as a client or a server?
- Is there some new setup on the system in question or a new feature? This permission was never allowed in selinux-policy so the scenario was never expected to work.

We would also like to have audit logs or journal to see details.

Is adding the one reported permission sufficient?

# cat local_rsync.cil
(allow rsync_t shell_exec_t (file (execute)))

# semodule -i local_rsync.cil
<reproduce the scenario>

Comment 7 Zdenek Pytela 2023-07-20 14:12:32 UTC
I am not aware of any related change in selinux-policy which would effect in removing permissions for the rsync_t domain during RHEL 8 development cycle.
Additional information is required to assess the issue, preferably with full auditing enabled:
https://fedoraproject.org/wiki/SELinux/Debugging#Enable_full_auditing

Also note there is the rsync_client boolean set to off by default, but can turned on on a system where rsync runs as a client:

  # setsebool -P rsync_client on


Note You need to log in before you can comment on or make changes to this bug.