Bug 315271

Summary: /etc/cron.daily/rpm is creating file with the wrong context.
Product: [Fedora] Fedora Reporter: Daniel Walsh <dwalsh>
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: urgent    
Version: rawhideCC: pnasrat
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
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: ---
Bug Depends On:    
Bug Blocks: 235703    

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 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.