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 743245 - If secmark packets are rejected by SELinux, the calling app should get a eperm returned
Summary: If secmark packets are rejected by SELinux, the calling app should get a eper...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: selinux-policy
Version: 6.2
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Miroslav Grepl
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On: 656950 656952
Blocks: 748554
TreeView+ depends on / blocked
 
Reported: 2011-10-04 10:56 UTC by Miroslav Grepl
Modified: 2011-12-06 10:19 UTC (History)
15 users (show)

Fixed In Version: selinux-policy-3.7.19-115.el6
Doc Type: Bug Fix
Doc Text:
Clone Of: 656952
Environment:
Last Closed: 2011-12-06 10:19:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1511 0 normal SHIPPED_LIVE selinux-policy bug fix and enhancement update 2011-12-06 00:39:17 UTC

Comment 1 Miroslav Grepl 2011-10-04 10:57:10 UTC
Dan,
I see I should also backport unlabelenet stuff.

Comment 2 Daniel Walsh 2011-10-04 18:44:16 UTC
Yes, but why is this bug assigned to selinux-policy, it is a kernel bug.

Comment 3 RHEL Program Management 2011-10-04 18:51:13 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux maintenance release. Product Management has 
requested further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed 
products. This request is not yet committed for inclusion in an Update release.

Comment 4 Miroslav Grepl 2011-10-05 05:03:16 UTC
Yes, there is a bug for kernel. 

I just wanted to test it also by Milos and Karel because of policy changes.

Comment 6 Miroslav Grepl 2011-10-06 09:15:11 UTC
Everything what you need to know is stated in the original kernel bug together with tests.

The policy changes just added interfaces to support secmark.

Basically you will make sure secmark.te policy can be compiled/loaded which means no interfaces miss.

So this is a test scenario for you:

---

cat > secmark.te << EOF

policy_module(secmark, 1.0)

# Type Definitions

require {
 type xguest_t;
 type avahi_t;
 attribute domain;
}

attribute external_packet;
type internal_packet_t;
corenet_packet(internal_packet_t)

type dns_external_packet_t, external_packet;
corenet_packet(dns_external_packet_t)

type http_external_packet_t, external_packet;
corenet_packet(http_external_packet_t)

type external_packet_t, external_packet;
corenet_packet(external_packet_t)

EOF


# make -f /usr/share/selinux/devel/Makefile secmark.pp
# semodule -i secmark.pp
# semodule -d unlabelednet

Comment 11 Miroslav Grepl 2011-10-12 16:54:10 UTC
Fixed in selinux-policy-3.7.19-115.el6

Comment 14 errata-xmlrpc 2011-12-06 10:19:35 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-2011-1511.html


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