Bug 483595 - mock --copyin fails when copying to system directory inside chroot
Summary: mock --copyin fails when copying to system directory inside chroot
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: mock
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Clark Williams
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-02-02 15:37 UTC by Clark Williams
Modified: 2013-01-10 05:02 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-02-05 23:23:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Clark Williams 2009-02-02 15:37:33 UTC
Description of problem:
The command:
   mock -r fedora-rawhide-x86_64 --copyin /etc/hosts /etc/hosts
fails with a permissions errror. 


Version-Release number of selected component (if applicable):
Rawhide and F10

How reproducible:
always

Steps to Reproduce:
1. Initialize a chroot (e.g. mock -r fedora-rawhide-x86_64 --init)
2. Try to copy something to /etc in the chroot using --copyin
3. Get permission denyed error
  
Actual results:
Permission denied

Expected results:
Successful copy of file into chroot

Additional info:
This is probably because of the --copyin command dropping privileges before doing the copy. we need to determine if we should keep privleges for copyin operations

Comment 1 Clark Williams 2009-02-05 23:23:27 UTC
removed privilege drop from --copyin logic in 0.9.14-1


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