Bug 1030439 - spindown-disk/script.sh useless find
spindown-disk/script.sh useless find
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: tuned (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Jaroslav Škarvada
Branislav Blaškovič
Depends On:
  Show dependency treegraph
Reported: 2013-11-14 08:02 EST by Branislav Blaškovič
Modified: 2014-06-18 03:34 EDT (History)
2 users (show)

See Also:
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.
Story Points: ---
Clone Of:
Last Closed: 2014-06-13 07:38:28 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Branislav Blaškovič 2013-11-14 08:02:06 EST
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):

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:
Comment 2 Jaroslav Škarvada 2013-11-22 10:05:49 EST
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 08:35:20 EST
I cannot see 'find' in /usr/lib/tuned/spindown-disk/script.sh from package:

Comment 5 Ludek Smid 2014-06-13 07:38:28 EDT
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.