Bug 1858738

Summary: passwd causes AVC
Product: [Fedora] Fedora Reporter: Ondrej Mejzlik <omejzlik>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh, grepl.miroslav, lvrabec, mmalik, plautrba, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-20 13:56:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ondrej Mejzlik 2020-07-20 09:13:08 UTC
Description of problem:
The passwd command causes AVC error when running sanity test for vsftpd on rawhide fc33.

Version-Release number of selected component (if applicable):
selinux-policy-3.14.6-20.fc33.noarch

How reproducible:
Always

Steps to Reproduce:
1. Schedule /CoreOS/vsftpd/Sanity/bz641239-RFE-vsftpd-can-not-handle-square-brackets-in-ls on fc33 in Beaker

Actual results:
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   enforcing
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Memory protection checking:     actual (secure)
Max kernel policy version:      33
selinux-policy-3.14.6-20.fc33.noarch
----
time->Mon Jul 20 04:32:28 2020
type=AVC msg=audit(1595233948.542:198): avc:  denied  { getattr } for  pid=2729 comm="passwd" name="/" dev="proc" ino=1 scontext=unconfined_u:unconfined_r:passwd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:proc_t:s0 tclass=filesystem permissive=0
----
time->Mon Jul 20 04:32:28 2020
type=AVC msg=audit(1595233948.594:199): avc:  denied  { getattr } for  pid=2730 comm="passwd" name="/" dev="proc" ino=1 scontext=unconfined_u:unconfined_r:passwd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:proc_t:s0 tclass=filesystem permissive=0
----
time->Mon Jul 20 04:32:28 2020
type=AVC msg=audit(1595233948.713:200): avc:  denied  { getattr } for  pid=2738 comm="passwd" name="/" dev="proc" ino=1 scontext=unconfined_u:unconfined_r:passwd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:proc_t:s0 tclass=filesystem permissive=0

Expected results:
No AVC error

Additional info:
The error was not there in selinux-policy-3.14.6-15.fc33.noarch

Comment 2 Zdenek Pytela 2020-07-20 13:56:34 UTC
Likely a result of glibc or other library change.

*** This bug has been marked as a duplicate of bug 1853730 ***