https://bugs.kde.org/show_bug.cgi?id=259678

--- Comment #18 from Andrius Štikonas <[email protected]> ---
Almost all things work rootless in my branch (SMART is notable exception but
SMART support is not that essential anyway, can be done later). However, I
encountered another significant problem.

KAuth authorization is valid for about 5 minutes. If it expires during the
execution of some operation (usually moving partition, and this consists of
calling many dd commands, so calls kauth helper many times) then Polkit
authorization dialog is shown again. If user enters the password, then
everything works fine. However, if user declines an authorization, then we'll
end up with half completed move operation and most likely data loss.

One way I'm thought of that can avoid this is to modify the current helper, so
that it accepts the list of all commands that need to be executed. Then, user
will never be asked authorization until all operations are complete.
Unfortunately, to be able to do this, KPMcore would need quite a bit of
refactoring in it's disk data reading/writing code (now KPM reads e.g. 10 MiB
of partition data, then another function writes it to a new places and
continues doing this until all partition is moved but obviously we can't store
the whole partition in memory of KAuth helper).

Are there any better suggestions how to workaround KAuth authorizations in the
middle of the operation?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to