Add a comment about auth_admin_keep.

This commit is contained in:
Andrius Štikonas 2020-11-29 00:50:57 +00:00
parent 4fa91d75f3
commit 9dd38744c5
1 changed files with 3 additions and 0 deletions

View File

@ -332,6 +332,9 @@ bool ExternalCommandHelper::isCallerAuthorized()
// Cache successful authentication requests, so that clients don't need
// to authenticate multiple times during long partitioning operations.
// auth_admin_keep is not used intentionally because with current architecture
// it might lead to data loss if user cancels sfdisk partition boundary adjustment
// after partition data was moved.
if (m_serviceWatcher->watchedServices().contains(message().service())) {
return true;
}