lp:~neon/project-neon/polkit-qt-1

Created by Philip Muškovac on 2011-01-31 and last modified on 2019-05-31
Get this branch:
bzr branch lp:~neon/project-neon/polkit-qt-1

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Deprecated Projected Neon
Project:
Project Neon
Status:
Development

Import details

Import Status: Reviewed

This branch is an import of the HEAD branch of the Git repository at git://anongit.kde.org/polkit-qt-1.git.

The next import is scheduled to run in 3 hours.

Last successful import was 2 hours ago.

Import started 2 hours ago on alnitak and finished 2 hours ago taking 20 seconds — see the log
Import started 8 hours ago on alnitak and finished 8 hours ago taking 15 seconds — see the log
Import started 14 hours ago on alnitak and finished 14 hours ago taking 20 seconds — see the log
Import started 21 hours ago on alnitak and finished 21 hours ago taking 15 seconds — see the log
Import started on 2019-08-24 on alnitak and finished on 2019-08-24 taking 25 seconds — see the log
Import started on 2019-08-24 on alnitak and finished on 2019-08-24 taking 20 seconds — see the log
Import started on 2019-08-23 on alnitak and finished on 2019-08-23 taking 25 seconds — see the log
Import started on 2019-08-23 on alnitak and finished on 2019-08-23 taking 15 seconds — see the log
Import started on 2019-08-23 on alnitak and finished on 2019-08-23 taking 15 seconds — see the log
Import started on 2019-08-22 on alnitak and finished on 2019-08-22 taking 20 seconds — see the log

Recent revisions

354. By Shubham Jangra <email address hidden> on 2019-05-31

Remove unneded documentation

353. By Matthias Gerstner <email address hidden> on 2019-04-02

authority: add support for passing details to polkit

Summary:
Currently polkit-qt-1 doesn't support to pass details during the `checkAuthorization()` call. Details are for example required to employ runtime generated authorization messages that contain placeholders like `"authentication required for accessing $(device)"`. This feature can be helpful to improve the end user experience and security, since the exact context of a privileged operation can be expressed better. Polkit documentation about this details parameter can be found [[ https://www.freedesktop.org/software/polkit/docs/latest/eggdbus-interface-org.freedesktop.PolicyKit1.Authority.html#eggdbus-method-org.freedesktop.PolicyKit1.Authority.CheckAuthorization | here ]].

This change adds alternative versions of `checkAuthorization()` and `checkAuthorizationSync()` that accepts an additional `QMap<QString, QString> details` parameter. In the implementation this map is converted into the required polkit level PolkitDetails type and passed to the according polkit functions as necessary.

To conform with the [[ https://community.kde.org/Policies/Binary_Compatibility_Issues_With_C%2B%2B | KDE binary compatibility policy]] I didn't extend or overload the existing `checkAuthorization()` and `checkAuthorizationSync()` functions, but introduced newly named functions.

Reviewers: #frameworks, chinmoyr, fvogt, bruns, davidedmundson

Reviewed By: bruns, davidedmundson

Subscribers: elvisangelaccio, ngraham, mati865, kde-frameworks-devel

Differential Revision: https://phabricator.kde.org/D18845

352. By Shubham Jangra <email address hidden> on 2019-03-30

Fix typo in comments

351. By Alexander Volkov on 2018-04-09

Add .arcconfig

350. By Laurent Montel <email address hidden> on 2018-01-07

Remove unused file

349. By Allen Winter <email address hidden> on 2016-04-16

polkitqtlistener.cpp - pedantic

348. By Heiko Becker on 2016-03-10

Fix build with -DBUILD_TEST=TRUE

Otherwise it fails with "test/test.cpp:49:14: error: 'qVariantValue'
was not declared in this scope". qVariantValue is a obsolete
workaround for MSVC 6, which was released 1998 and thus seems ancient
enough to change this.

REVIEW: 127334

347. By Alex Richardson <email address hidden> on 2016-02-26

Allow compilation with older polkit versions

Return an invalid user from SystemBusNameSubject::user() if
polkit_system_bus_name_get_user_sync is missing

REVIEW: 126813

346. By David Edmundson <email address hidden> on 2016-01-26

Fix compilation with Qt5.6

Qt5.6 has c++11x in code in the headers, so it needs including

REVIEW: 126746

345. By David Edmundson <email address hidden> on 2016-01-26

Drop use of deprecated Qt functions
REVIEW: 126747

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.