RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 895960 - File name transition rule for /etc/security/opasswd is missing
Summary: File name transition rule for /etc/security/opasswd is missing
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.1
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Miroslav Grepl
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks: 956720 959224
TreeView+ depends on / blocked
 
Reported: 2013-01-16 11:28 UTC by David Spurek
Modified: 2015-03-02 05:27 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 956720 959224 (view as bug list)
Environment:
Last Closed: 2014-06-13 10:14:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description David Spurek 2013-01-16 11:28:33 UTC
Description of problem:
opasswd has bad label etc_t, but it should have shadow_t. File was created with bad label, file name transition rule is missing.

time->Sat Jan 12 21:48:18 2013
type=SYSCALL msg=audit(1358045298.587:9103): arch=c000003e syscall=86 success=no exit=-13 a0=7fb0495bc5da a1=7fb0495bc659 a2=7fb051ea7798 a3=34446b6179312f56 items=0 ppid=1355 pid=1356 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=4294967295 comm="passwd" exe="/usr/bin/passwd" subj=unconfined_u:unconfined_r:passwd_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1358045298.587:9103): avc:  denied  { link } for  pid=1356 comm="passwd" name="opasswd" dev="dm-1" ino=786601 scontext=unconfined_u:unconfined_r:passwd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:etc_t:s0 tclass=file
----
time->Sat Jan 12 21:48:18 2013
type=SYSCALL msg=audit(1358045298.588:9104): arch=c000003e syscall=82 success=no exit=-13 a0=7fff4ea31ef0 a1=7fb0495bc5da a2=7fb051ea7760 a3=4000 items=0 ppid=1355 pid=1356 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=4294967295 comm="passwd" exe="/usr/bin/passwd" subj=unconfined_u:unconfined_r:passwd_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1358045298.588:9104): avc:  denied  { unlink } for  pid=1356 comm="passwd" name="opasswd" dev="dm-1" ino=786601 scontext=unconfined_u:unconfined_r:passwd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:etc_t:s0 tclass=file

Version-Release number of selected component (if applicable):
selinux-policy-3.11.1-69.el7.noarch

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 2 Miroslav Grepl 2013-01-16 13:28:32 UTC
You are right. We miss the rule. I am adding fixes.

Comment 4 Ludek Smid 2014-06-13 10:14:01 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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