Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Description of problem:
AVC denials for unreserved port observed while configuring nfs-ganesha.
Version-Release number of selected component (if applicable):
nfs-ganesha-2.3.1-8
[root@dhcp43-208 ~]# rpm -qa|grep selinux
selinux-policy-3.13.1-60.el7_2.7.noarch
selinux-policy-targeted-3.13.1-60.el7_2.7.noarch
How reproducible:
Consistent
Steps to Reproduce:
1.Update rquota port in ganesha.conf under /etc/ganesha/ganesha.conf with any other port than 875.
like below:
NFS_Core_Param {
#Use supplied name other tha IP In NSM operations
NSM_Use_Caller_Name = true;
#Copy lock states into "/var/lib/nfs/ganesha" dir
Clustered = false;
#By default port number '2049' is used for NFS service.
#Configure ports for MNT, NLM, RQuota services.
#The ports chosen here are from '/etc/sysconfig/nfs'
MNT_Port = 20048;
NLM_Port = 32803;
Rquota_Port = 8750;
}
2. Try to setup ganesha on the cluster.
3. Observe that ganesha service goes to failed state with below messages in ganesha.log:
18/07/2016 07:43:52 : epoch 1a100000 : dhcp43-208.lab.eng.blr.redhat.com : ganesha.nfsd-30912[main] Bind_sockets_V6 :DISP :WARN :Cannot bind RQUOTA udp6 socket, error 13 (Permission denied)
18/07/2016 07:43:52 : epoch 1a100000 : dhcp43-208.lab.eng.blr.redhat.com : ganesha.nfsd-30912[main] Bind_sockets :DISP :FATAL :Error binding to V6 interface. Cannot continue.
and following denial AVC's are seen in audit.log
type=AVC msg=audit(1468842120.174:587): avc: denied { name_bind } for pid=30640 comm="ganesha.nfsd" src=8750 scontext=system_u:system_r:glusterd_t:s0 tcontext=system_u:object_r:unreserved_port_t:s0 tclass=udp_socket
type=AVC msg=audit(1468842120.146:611): avc: denied { name_bind } for pid=30335 comm="ganesha.nfsd" src=8750 scontext=system_u:system_r:glusterd_t:s0 tcontext=system_u:object_r:unreserved_port_t:s0 tclass=udp_socket
type=AVC msg=audit(1468842120.138:635): avc: denied { name_bind } for pid=29146 comm="ganesha.nfsd" src=8750 scontext=system_u:system_r:glusterd_t:s0 tcontext=system_u:object_r:unreserved_port_t:s0 tclass=udp_socket
type=AVC msg=audit(1468842120.176:610): avc: denied { name_bind } for pid=29790 comm="ganesha.nfsd" src=8750 scontext=system_u:system_r:glusterd_t:s0 tcontext=system_u:object_r:unreserved_port_t:s0 tclass=udp_socket
Actual results:
AVC denials for unreserved port observed while configuring nfs-ganesha.
Expected results:
There should not be any AVC denials when different port is used for rquota than 875.
Additional info:
Since we haven't heard back anything on the original reported problem from customer side, i would say lets close this bug for 7.3.
Will open a new bug for 7.2.z if its required.
Thanks
Description of problem: AVC denials for unreserved port observed while configuring nfs-ganesha. Version-Release number of selected component (if applicable): nfs-ganesha-2.3.1-8 [root@dhcp43-208 ~]# rpm -qa|grep selinux selinux-policy-3.13.1-60.el7_2.7.noarch selinux-policy-targeted-3.13.1-60.el7_2.7.noarch How reproducible: Consistent Steps to Reproduce: 1.Update rquota port in ganesha.conf under /etc/ganesha/ganesha.conf with any other port than 875. like below: NFS_Core_Param { #Use supplied name other tha IP In NSM operations NSM_Use_Caller_Name = true; #Copy lock states into "/var/lib/nfs/ganesha" dir Clustered = false; #By default port number '2049' is used for NFS service. #Configure ports for MNT, NLM, RQuota services. #The ports chosen here are from '/etc/sysconfig/nfs' MNT_Port = 20048; NLM_Port = 32803; Rquota_Port = 8750; } 2. Try to setup ganesha on the cluster. 3. Observe that ganesha service goes to failed state with below messages in ganesha.log: 18/07/2016 07:43:52 : epoch 1a100000 : dhcp43-208.lab.eng.blr.redhat.com : ganesha.nfsd-30912[main] Bind_sockets_V6 :DISP :WARN :Cannot bind RQUOTA udp6 socket, error 13 (Permission denied) 18/07/2016 07:43:52 : epoch 1a100000 : dhcp43-208.lab.eng.blr.redhat.com : ganesha.nfsd-30912[main] Bind_sockets :DISP :FATAL :Error binding to V6 interface. Cannot continue. and following denial AVC's are seen in audit.log type=AVC msg=audit(1468842120.174:587): avc: denied { name_bind } for pid=30640 comm="ganesha.nfsd" src=8750 scontext=system_u:system_r:glusterd_t:s0 tcontext=system_u:object_r:unreserved_port_t:s0 tclass=udp_socket type=AVC msg=audit(1468842120.146:611): avc: denied { name_bind } for pid=30335 comm="ganesha.nfsd" src=8750 scontext=system_u:system_r:glusterd_t:s0 tcontext=system_u:object_r:unreserved_port_t:s0 tclass=udp_socket type=AVC msg=audit(1468842120.138:635): avc: denied { name_bind } for pid=29146 comm="ganesha.nfsd" src=8750 scontext=system_u:system_r:glusterd_t:s0 tcontext=system_u:object_r:unreserved_port_t:s0 tclass=udp_socket type=AVC msg=audit(1468842120.176:610): avc: denied { name_bind } for pid=29790 comm="ganesha.nfsd" src=8750 scontext=system_u:system_r:glusterd_t:s0 tcontext=system_u:object_r:unreserved_port_t:s0 tclass=udp_socket Actual results: AVC denials for unreserved port observed while configuring nfs-ganesha. Expected results: There should not be any AVC denials when different port is used for rquota than 875. Additional info: