Bug 455869

Summary: scp does not set the file context correctly when copying files.
Product: [Fedora] Fedora Reporter: Daniel Walsh <dwalsh>
Component: opensshAssignee: Tomas Mraz <tmraz>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-07-18 11:34:11 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Daniel Walsh 2008-07-18 10:14:28 EDT
Description of problem:

scp/sshd should use the system defaults for labeling of file context.

If I scp resolv.conf remote:/etc/resolv.conf

I would expect the resolv.conf file to end up labeled correcly on the remote
machine.
Comment 1 Tomas Mraz 2008-07-18 10:21:21 EDT
I do not like this. cp doesn't relabel the destination file either.
Comment 2 Daniel Walsh 2008-07-18 11:34:11 EDT
I agree I closed this bug earlier.  scp should work like cp.  I was on a crusade
trying to fix puppet/func and got carried away.