Bug 315271 - /etc/cron.daily/rpm is creating file with the wrong context.
/etc/cron.daily/rpm is creating file with the wrong context.
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
rawhide
All Linux
urgent Severity urgent
: ---
: ---
Assigned To: Panu Matilainen
Fedora Extras Quality Assurance
:
Depends On:
Blocks: F8Blocker
  Show dependency treegraph
 
Reported: 2007-10-02 07:58 EDT by Daniel Walsh
Modified: 2007-11-30 17:12 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-10-03 07:18:59 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Daniel Walsh 2007-10-02 07:58:35 EDT
Description of problem:

This script is creating rhe rpmpkgs file with the context root_t because it is
creating the file in / But it should be created as var_log_t.  The simplest way
to do this is to create the file in /var/log.

So first line should be

tmpfile=`/bin/mktemp /var/log/rpmpkgs.XXXXXXXXX` || exit 1

Otherwise lots of avc messages will be generated.

This needs to be fixed before Fedora 8 is released.
Comment 1 Panu Matilainen 2007-10-03 02:02:45 EDT
Fixed upstream, will be in 4.4.2.2 and F8
Comment 2 Panu Matilainen 2007-10-03 07:18:59 EDT
In rawhide now, but only available in builders ATM due to the F8-test3 freeze.

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