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 15:34:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Daniel Walsh 2008-07-18 14:14:28 UTC
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 14:21:21 UTC
I do not like this. cp doesn't relabel the destination file either.


Comment 2 Daniel Walsh 2008-07-18 15:34:11 UTC
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.