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 784595 - semanage is sending the wrong kind of audit events
Summary: semanage is sending the wrong kind of audit events
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: policycoreutils
Version: 6.2
Hardware: All
OS: Linux
urgent
high
Target Milestone: rc
: ---
Assignee: Daniel Walsh
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On: 784121
Blocks: RHEL62CCC 785678 846801 846802
TreeView+ depends on / blocked
 
Reported: 2012-01-25 13:59 UTC by Steve Grubb
Modified: 2012-11-19 13:42 UTC (History)
8 users (show)

Fixed In Version: policycoreutils-2.0.83-19.19.el6
Doc Type: Bug Fix
Doc Text:
The semanage utility did not produce correct audit messages in the Common Criteria certified environment. This update modifies semanage so that it now sends correct audit events when the user is assigned to or removed from a new role. This update also modifies behavior of semanage concerning the user's SELinux Multi-Level Security (MLS) and Multi-Category Security (MCS) range. The utility now works with the user's default range of the MLS/MCS security level instead of the lowest. In addition, the semange(8) manual page has been corrected to reflect the current semanage functionality.
Clone Of: 784121
Environment:
Last Closed: 2012-06-20 15:10:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0969 0 normal SHIPPED_LIVE policycoreutils bug fix update 2012-06-19 21:11:56 UTC

Description Steve Grubb 2012-01-25 13:59:15 UTC
+++ This bug was initially created as a clone of Bug #784121 +++

Description of problem:
Semanage is sending the wrong kind of audit events. When a user is assigned a new role, an AUDIT_ROLE_ASSIGN event should be sent. When a user has a role removed, an AUDIT_ROLE_REMOVE event should be sent. When a user's process changes roles, like during login, its supposed to issue an AUDIT_USER_ROLE_CHANGE event.

Semanage is only sending AUDIT_USER_ROLE_CHANGE - which is the wrong kind of event.

How reproducible:
Always

Steps to Reproduce:
1. semanage login -a -s guest_u  test
2. ausearch -m ROLE_ASSIGN --start recent

Comment 1 Daniel Walsh 2012-01-25 22:22:42 UTC
Fixed in policycoreutils-2.0.83-19.19.el6.src.rpm

Comment 3 Eduard Benes 2012-01-26 16:21:51 UTC
Following audit-test trustedprograms tests will have to be reviewed and updated in the upstream test suite because they expect type=USER_ROLE_CHANGE:

./audit/libpam/tests/test_mls_default_login.bash
./audit/libpam/tests/test_mls_level_login.bash
./audit/libpam/tests/test_mls_level_login_fail.bash
./audit/trustedprograms/tests/test_newrole.bash
./audit/trustedprograms/tests/test_semanage_chglvl.bash

Comment 4 Steve Grubb 2012-01-26 16:59:55 UTC
Logins and any use of newrole should still send USER_ROLE_CHANGE because the user is changing roles. But adding/deleting roles from a user's login database by using semanage with either of the -a or -d command line options are in fact affected by this patch. You should be able to grep the test suite looking for any use of semanage. If there is none, then the test suite is unaffected.

Comment 6 Miroslav Svoboda 2012-02-14 17:49:52 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
The semanage utility did not produce correct audit messages in the Common Criteria certified environment. This update modifies semanage so that it now sends correct audit events when the user is assigned to or removed from a new role.

This update also modifies behavior of semanage concerning the user's SELinux Multi-Level Security (MLS) and Multi-Category Security (MCS) range. The utility now works with the user's default range of the MLS/MCS security level instead of the lowest.

In addition, the semange(8) manual page has been corrected to reflect the current semanage functionality.

Comment 11 errata-xmlrpc 2012-06-20 15:10:31 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0969.html


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