Bug 460837

Summary: Permissions for "Everyone" are not applied when using "Encrypt with LUKS" option.
Product: [Applications] partitionmanager Reporter: h747esdnt
Component: generalAssignee: Andrius Štikonas <andrius>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 22.08.1   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description h747esdnt 2022-10-22 04:18:15 UTC
SUMMARY

When I enable both "Encrypt with LUKS" and permissions for "Everyone" the partition is unmountable and after reboot the "Everyone" permissions are not applied.

STEPS TO REPRODUCE
1. Plug in a usb drive (or create a virtual one with libvirt or similar)
2. Create new btrfs partition with LUKS and permissions set to "Everyone"
3. Reboot (because the partition is unmountable, more on that at the end)
4. Mount the partition (using the disks and devices applet within plasma) and look at the permissions set for the mount folder

OBSERVED RESULT

Permissions are "drwxr-xr-x"

EXPECTED RESULT

Permissions are "drwxrwxrwx" (as they are without LUKS)

SOFTWARE/OS VERSIONS
Linux: Fedora 37 beta (I am also able to reproduce this on rawhide in a VM)
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6

ADDITIONAL INFORMATION

running "reboot" after step 2 throws (I have waited for 10 minutes and this never finishes, so i reboot with "systemctl reboot -i"):

Operation inhibited by "Disk Manager" (PID 1406 "udisksd", user root), reason is "Cleaning Up".
Please retry operation after closing inhibitors and logging out other users.
Alternatively, ignore inhibitors and users with 'systemctl reboot -i'.