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 1638257 - selinux: ganesha.nfsd run in nfsd_t [rhel-7.6.z]
Summary: selinux: ganesha.nfsd run in nfsd_t [rhel-7.6.z]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.5
Hardware: All
OS: Linux
high
unspecified
Target Milestone: rc
: ---
Assignee: Lukas Vrabec
QA Contact: Milos Malik
Mirek Jahoda
URL:
Whiteboard:
Depends On: 1511489
Blocks: 1637783
TreeView+ depends on / blocked
 
Reported: 2018-10-11 08:27 UTC by Oneata Mircea Teodor
Modified: 2020-01-03 13:55 UTC (History)
19 users (show)

Fixed In Version: selinux-policy-3.13.1-229.el7_6.5
Doc Type: Bug Fix
Doc Text:
If this bug requires documentation, please select an appropriate Doc Type value.
Clone Of: 1511489
Environment:
Last Closed: 2018-10-30 12:21:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:3340 0 None None None 2018-10-30 12:21:43 UTC

Description Oneata Mircea Teodor 2018-10-11 08:27:48 UTC
This bug has been copied from bug #1511489 and has been proposed to be backported to 7.6 z-stream (EUS).

Comment 9 Kaleb KEITHLEY 2018-10-12 10:39:53 UTC
change to nfs-ganesha to move selinux to a nfs-ganesha-selinux sub-package for Fedora 30 and RHEL 8.

https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/429053

Comment 16 Kaleb KEITHLEY 2018-10-17 12:01:24 UTC
Lukas, when we install rhgs-3.4.1 on rhel7.6 there is no ganesha module listed (because there isn't one, ganesha runs in nfsd_t.)

Then when we add selinux-policy-3.13.1-229.el7_6.3 and run `semodule -l` it's not listed. We have to manually run `semodule -e ganesha` and then it is listed.

Is that expected behavior, or the install/update of selinux-policy-3.13.1-229.el7_6.3 should do that automatically?

Thanks,

Comment 17 Lukas Vrabec 2018-10-18 10:00:09 UTC
Hi, 

Could you try it but with this build? https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=781399

Try to skip using: selinux-policy-3.13.1-229.el7_6.3, update directly from 229.el7 to 229.el7_6.5 

Let me know if that helps. 

Lukas.

Comment 22 Manisha Saini 2018-10-22 14:24:55 UTC
Lukas, to conclude the above-

With selinux build "selinux-policy-3.13.1-229.el7_6.5.noarch", since ganesha service is not coming up,this is a blocker for Ganesha RHGS 3.4.1 release.

We did some testing with "selinux-policy-3.13.1-229.el7_6.3.noarch" as well.
With this build,ganesha module is not loaded by default as mention in comment #16.But by running the below steps manually, ganesha service comes up and refresh-config was passing.

But We also saw few failures in posix compliance test when ran on ganesha mount with this selinux build.

======
# semodule -e ganesha

# restorecon -Rv / 

# semanage boolean -m --on ganesha_use_fusefs


Here are the two options which we can look forward-

1. Ether fix the ganesha service failure issue with "selinux-policy-3.13.1-229.el7_6.5.noarch" and provide the new package with all the fixes for us to unblock our RHGS 3.4.1 Ganesha testing.

2. Or to go with "selinux-policy-3.13.1-229.el7_6.3.noarch" package and do the steps to load ganesha module manually.And fix posix compliance test failures which we are getting with this build.

Comment 34 Manisha Saini 2018-10-24 09:42:24 UTC
Rquota port by default is 875.
This can be configured to any port number by user depending upon condition that it should be any non-reserved port and is not in use by anyother process in system.

# semanage port -a -t mountd_port_t -p udp 8755

Not very sure with above command,but are we again restricting it to only work with 8755 port?

Comment 41 Jilju Joy 2018-10-24 13:27:10 UTC
Hi Lukas,

Are these steps something new with this build "selinux-policy-3.13.1-229.el7_6.5.noarch"? Or these procedure has to be followed with existing selinux also if we are not using the default port ?

# semanage port -a -t mountd_port_t -p udp 8755
# semanage port -a -t mountd_port_t -p tcp 8755

Comment 48 errata-xmlrpc 2018-10-30 12:21:20 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.

https://access.redhat.com/errata/RHBA-2018:3340


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