Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 2177131 - SELinux is preventing metadata-provid from 'write' accesses on the file ContactDataMigrate.orx.
Summary: SELinux is preventing metadata-provid from 'write' accesses on the file Conta...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 39
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:1bbad2449c44d0637027e1e96d1...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-10 06:18 UTC by Mikhail
Modified: 2023-08-16 07:11 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (deleted)
2023-03-10 06:18 UTC, Mikhail
no flags Details
File: os_info (deleted)
2023-03-10 06:18 UTC, Mikhail
no flags Details

Description Mikhail 2023-03-10 06:18:18 UTC
Description of problem:
This happens when I start podman container with binded host directories.
SELinux is preventing metadata-provid from 'write' accesses on the file ContactDataMigrate.orx.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that metadata-provid should be allowed write access on the ContactDataMigrate.orx file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c 'metadata-provid' --raw | audit2allow -M my-metadataprovid
# semodule -X 300 -i my-metadataprovid.pp

Additional Information:
Source Context                system_u:system_r:container_t:s0:c48,c687
Target Context                unconfined_u:object_r:user_home_t:s0
Target Objects                ContactDataMigrate.orx [ file ]
Source                        metadata-provid
Source Path                   metadata-provid
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-38.8-1.fc39.noarch
Local Policy RPM              selinux-policy-targeted-38.8-1.fc39.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 6.3.0-
                              0.rc1.20230309git6a98c9cae232.18.fc39.x86_64+debug
                              #1 SMP PREEMPT_DYNAMIC Thu Mar 9 23:54:03 +05 2023
                              x86_64
Alert Count                   1
First Seen                    2023-03-10 11:13:22 +05
Last Seen                     2023-03-10 11:13:22 +05
Local ID                      a13d8206-4247-45c9-964c-393511ad89ba

Raw Audit Messages
type=AVC msg=audit(1678428802.973:413): avc:  denied  { write } for  pid=61968 comm="metadata-provid" name="ContactDataMigrate.orx" dev="nvme1n1" ino=750708 scontext=system_u:system_r:container_t:s0:c48,c687 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1


Hash: metadata-provid,container_t,user_home_t,file,write

Version-Release number of selected component:
selinux-policy-targeted-38.8-1.fc39.noarch

Additional info:
reporter:       libreport-2.17.8
reason:         SELinux is preventing metadata-provid from 'write' accesses on the file ContactDataMigrate.orx.
package:        selinux-policy-targeted-38.8-1.fc39.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.3.0-0.rc1.20230309git6a98c9cae232.18.fc39.x86_64+debug
comment:        This happens when I start podman container with binded host directories.
component:      selinux-policy

Comment 1 Mikhail 2023-03-10 06:18:20 UTC
Created attachment 1949472 [details]
File: description

Comment 2 Mikhail 2023-03-10 06:18:22 UTC
Created attachment 1949473 [details]
File: os_info

Comment 3 Fedora Release Engineering 2023-08-16 07:11:25 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.


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