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.

Bug 1526954

Summary: avc: denied { block_suspend } for comm="rpc.gssd" after updating gssproxy to 0.7.0-16.el7
Product: Red Hat Enterprise Linux 7 Reporter: Yongcheng Yang <yoyang>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Milos Malik <mmalik>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.5CC: jiyin, lmiksik, lvrabec, mgrepl, mmalik, plautrba, ssekidde, xzhou
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-23 20:32:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Yongcheng Yang 2017-12-18 09:45:11 UTC
Description of problem:
Recently after updating gssproxy to version gssproxy-0.7.0-16.el7, huge "avc denied" warnings occur when starting "rpc.gssd":
type=AVC msg=audit(1513589543.928:206): avc:  denied  { block_suspend } for  pid=29575 comm="rpc.gssd" capability=36  scontext=system_u:system_r:gssd_t:s0 tcontext=system_u:system_r:gssd_t:s0 tclass=capability2

Version-Release number of selected component (if applicable):
selinux-policy-3.13.1-180.el7.noarch
gssproxy-0.7.0-16.el7

How reproducible:
100% easily

Steps to Reproduce:
1. Setup kerberos or just creating file "/etc/krb5.keytab" to start rpc-gssd.service
2. Execute "systemctl restart rpc-gssd"

Actual results:
[root@ ~]# touch /etc/krb5.keytab
[root@ ~]# rpm -q gssproxy
gssproxy-0.7.0-13.el7.x86_64
[root@ ~]# > /var/log/audit/audit.log
[root@ ~]# systemctl restart rpc-gssd
[root@ ~]# cat /var/log/audit/audit.log | grep denied
[root@ ~]# 
[root@ ~]# rpm -Uvh gssproxy-0.7.0-15.el7.x86_64.rpm >/dev/null
[root@ ~]# rpm -q gssproxy
gssproxy-0.7.0-15.el7.x86_64
[root@ ~]# > /var/log/audit/audit.log
[root@ ~]# systemctl restart rpc-gssd
[root@ ~]# cat /var/log/audit/audit.log | grep denied
[root@ ~]# 
[root@ ~]# rpm -Uvh gssproxy-0.7.0-16.el7.x86_64.rpm >/dev/null
[root@ ~]# rpm -q gssproxy
gssproxy-0.7.0-16.el7.x86_64
[root@ ~]# > /var/log/audit/audit.log
[root@ ~]# systemctl restart rpc-gssd
[root@ ~]# cat /var/log/audit/audit.log | grep denied
type=AVC msg=audit(1513589543.928:206): avc:  denied  { block_suspend } for  pid=29575 comm="rpc.gssd" capability=36  scontext=system_u:system_r:gssd_t:s0 tcontext=system_u:system_r:gssd_t:s0 tclass=capability2
type=AVC msg=audit(1513589543.928:207): avc:  denied  { block_suspend } for  pid=29575 comm="rpc.gssd" capability=36  scontext=system_u:system_r:gssd_t:s0 tcontext=system_u:system_r:gssd_t:s0 tclass=capability2
type=AVC msg=audit(1513589543.929:208): avc:  denied  { block_suspend } for  pid=29575 comm="rpc.gssd" capability=36  scontext=system_u:system_r:gssd_t:s0 tcontext=system_u:system_r:gssd_t:s0 tclass=capability2
type=AVC msg=audit(1513589543.929:209): avc:  denied  { block_suspend } for  pid=29575 comm="rpc.gssd" capability=36  scontext=system_u:system_r:gssd_t:s0 tcontext=system_u:system_r:gssd_t:s0 tclass=capability2
[root@ ~]# rpm -q selinux-policy
selinux-policy-3.13.1-180.el7.noarch
[root@ ~]# 
[root@ ~]# systemctl status rpc-gssd
● rpc-gssd.service - RPC security service for NFS client and server
   Loaded: loaded (/usr/lib/systemd/system/rpc-gssd.service; static; vendor preset: disabled)
   Active: active (running) since Mon 2017-12-18 04:32:23 EST; 5min ago
  Process: 29575 ExecStart=/usr/sbin/rpc.gssd $GSSDARGS (code=exited, status=0/SUCCESS)
 Main PID: 29576 (rpc.gssd)
   CGroup: /system.slice/rpc-gssd.service
           └─29576 /usr/sbin/rpc.gssd

Dec 18 04:32:23 hp-dl388g8-20.rhts.eng.pek2.redhat.com systemd[1]: Starting RPC security service for NFS client and server...
Dec 18 04:32:23 hp-dl388g8-20.rhts.eng.pek2.redhat.com systemd[1]: Started RPC security service for NFS client and server.


Expected results:
No "avc denied"

Additional info:
Seemingly it doesn't affect the rpc-gssd functions.
However, the warnings are annoying.

Comment 5 Lukas Vrabec 2017-12-23 20:32:00 UTC

*** This bug has been marked as a duplicate of bug 1525488 ***

Comment 6 Red Hat Bugzilla 2023-09-14 04:14:30 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days