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 1030439 - spindown-disk/script.sh useless find
Summary: spindown-disk/script.sh useless find
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: tuned
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jaroslav Škarvada
QA Contact: Branislav Blaškovič
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-14 13:02 UTC by Branislav Blaškovič
Modified: 2014-06-18 07:34 UTC (History)
2 users (show)

Fixed In Version: tuned-2.3.0-4.el7
Doc Type: Bug Fix
Doc Text:
Cause: There was called useless find command in the spindown-disk profile. Consequence: This could cause several SELinux AVCs. Fix: The find command was removed. Result: No more related SELinux AVCs.
Clone Of:
Environment:
Last Closed: 2014-06-13 11:38:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Branislav Blaškovič 2013-11-14 13:02:06 UTC
Description of problem:
  In package tuned-profiles-compat-2.3.0-3.el7.noarch there is useless find which can occour AVCs.

Version-Release number of selected component (if applicable):
tuned-profiles-compat-2.3.0-3.el7.noarch

Steps to Reproduce:
1. Start this profile


Actual results:
type=SYSCALL msg=audit(1384433337.378:66): arch=c000003e syscall=262 success=no exit=-13 a0=5 a1=f676e8 a2=7fff43c10d90 a3=100 items=0 ppid=11559 pid=11582 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="find" exe="/usr/bin/find" subj=system_u:system_r:tuned_t:s0 key=(null)
type=AVC msg=audit(1384433337.378:66): avc:  denied  { getattr } for  pid=11582 comm="find" path="/etc/my.cnf" dev="dm-1" ino=134885044 scontext=system_u:system_r:tuned_t:s0 tcontext=system_u:object_r:mysqld_etc_t:s0 tclass=file

Expected results:
We don't need this line

Additional info:
/usr/lib/tuned/spindown-disk/script.sh line 15:
    find /etc/ &> /dev/null

It's fixed in upstream:
https://git.fedorahosted.org/cgit/tuned.git/commit/?id=a47b0e1be74f31d15279aac8ae5b1438932844a2

Comment 2 Jaroslav Škarvada 2013-11-22 15:05:49 UTC
It is probably typo (copy&paste error :) from one of the previous maintainers. It is harmless (not counting the AVCs) and included in the profiles-compat which are phasing out. It is already fixed upstream.

Comment 4 Branislav Blaškovič 2014-01-06 13:35:20 UTC
I cannot see 'find' in /usr/lib/tuned/spindown-disk/script.sh from package:
tuned-profiles-compat-2.3.0-4.el7.noarch

VERIFIED

Comment 5 Ludek Smid 2014-06-13 11:38:28 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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