Bug 498443 - File copy is preserving SElinux label
Summary: File copy is preserving SElinux label
Status: REPORTED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 6.9.0
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-09 21:16 UTC by Diego
Modified: 2025-01-13 17:48 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot of terminal's results (36.04 KB, image/png)
2025-01-09 21:16 UTC, Diego
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diego 2025-01-09 21:16:21 UTC
Created attachment 177240 [details]
Screenshot of terminal's results

SUMMARY

Copying a file from my home folder into another drive with a different SElinux label preserves the label of the original file, and not of the destination folder, which is not the same behavior as the terminal cp command.


STEPS TO REPRODUCE
1. Copy a file from the home folder (example, /home/user/Downloads)
2. Paste it into another drive with a distinct SElinux label
3. ls -lZ and compare the labels.

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Fedora 41
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1
Kernel Version: 6.12.8-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700X3D 8-Core Processor
Memory: 31.2 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3070/PCIe/SSE2


ADDITIONAL INFORMATION