Commit Graph

1370 Commits

Author SHA1 Message Date
Caio Carvalho 079e423abd - Including tooltip for SMART attribute description. 2018-03-24 16:16:50 -03:00
Andrius Štikonas d37c0ef9ce Revert "Disallow executing KDE Partition Manager as root."
This reverts commit cfa53f6d3c.
2018-03-22 20:13:58 +00:00
Andrius Štikonas cfa53f6d3c Disallow executing KDE Partition Manager as root.
Summary:
Running GUI applications as root is a huge security risk. Especially
the X server is not secured for that. Non-root applications can easily
interact with a root running application and thus try to exploit simple
bugs in either kate/kwrite itself or in the underlying libraries such
as Qt, XLib or xcb.

On Wayland the situation can be considered worse as the compositor is
running as the normal user and is not protected to handle root windows.
It can be rather trivial to attack the root running application from the
compositor through interfaces such as scripting. This is not in the aim
of the compositors to protect against.

This change introduces a check whether the application is started as
root before any interaction with X or Wayland happens, that is prior to
creating the QApplication. If it is detected that we run as root, we
exit and print an information about how to properly edit an application
in kwrite/kate as root. The text is deliberatly not translated to keep
the threat from running as root as low as possible.

See also Differential Revision: https://phabricator.kde.org/D4634
2018-03-22 17:39:04 +00:00
abhijeet sharma a38a6cd35d Fixed the "remove existing mount point" bug
Summary:
The QString "contains method" is also searching for empty QStrings.
Due to this all entries in /etc/fstab were removed . After this patch it is
searching for only non-empty strings in removeMountPoint() function.

Reviewers: stikonas

Reviewed By: stikonas

Tags: #kde_partition_manager

Differential Revision: https://phabricator.kde.org/D11542
2018-03-22 01:29:13 +05:30
Andrius Štikonas cc73b6c9ce Move external command helper stopping code to kpmcore. 2018-03-21 20:51:10 +01:00
Andrius Štikonas 62a3b57c2d Remove --dontsu command line option. 2018-03-19 16:24:49 +01:00
Andrius Štikonas a1a535cb03 Remove checkPermissions code. 2018-03-19 02:45:18 +01:00
Andrius Štikonas 60e86c3ad6 Stop ExternalCommandHelper before quiting the application. 2018-03-19 02:34:30 +01:00
Andrius Štikonas 98209f90bc No need to explicitely set enum values. 2018-03-03 16:39:52 +00:00
Abhijeet Sharma be07085500 Add possibility to remove an existing mount point
User is able to remove an existing Mount point via
Partition -> Edit Mount Point -> Remove.

Differential Revision: https://phabricator.kde.org/D10514
2018-03-03 16:37:58 +00:00
l10n daemon script 7dd9e17a8c SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2018-03-03 05:26:20 +01:00
l10n daemon script f227a81ff4 GIT_SILENT made messages (after extraction) 2018-03-03 03:19:01 +01:00
Abhijeet Sharma 141f37ed27 Add Partition UUID and Partition Label in partition properties dialog
After this patch partition UUID and partition label will be visible
in the properties dialog of the partitions.

Also these label will only be visible if the partition table is GPT

Differential Revision: https://phabricator.kde.org/D10323
2018-02-13 21:27:05 +00:00
Andrius Štikonas 345994c3bf Use KF5_MIN_VERSION also for ECM, now that it's part of KF 2018-02-05 21:51:42 +00:00
Andrius Štikonas eab21df647 Do not confirm overwrite twice. 2018-02-05 13:14:36 +00:00
Andrius Štikonas fa65cd116b Use defaultBackend from kpmcore.
Do not duplicate the same thing in partitionmanager.kcfg
2018-01-31 18:50:33 +00:00
Andrius Štikonas bacb2e645b Do not require pkg-config or blkid. 2018-01-31 16:26:54 +00:00
Abhijeet Sharma 4f2381d7e6 Change default size of device and partition properties dialogs
so as to accommodate all the labels

Differential Revision: https://phabricator.kde.org/D10179
2018-01-30 15:46:05 +00:00
Andrius Štikonas d5bccabac5 Add support for displaying partition labels/uuid.
Differential Revision: https://phabricator.kde.org/D10150
2018-01-27 23:02:36 +00:00
Andrius Štikonas 145e8cf0c9 Remove obsolete TODO item.
File system support libraries would be incompatible with KAuth.
2018-01-24 18:06:56 +00:00
Andrius Štikonas 21755cb449 Remove unused KService dependency. 2018-01-16 17:14:53 +01:00
Andrius Štikonas 7c49044546 Update INSTALL instructions. bzip2->xz. 2018-01-16 15:30:31 +01:00
Andrius Štikonas 74d609a782 Always show Advanced config page. 2018-01-16 15:14:47 +01:00
l10n daemon script e7354c02d1 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2018-01-13 04:48:00 +01:00
Andrius Štikonas 6252fb480f Merge branch '3.3' 2018-01-07 16:51:50 +02:00
Andrius Štikonas f469ef204a Bump version. 2018-01-07 13:36:21 +02:00
l10n daemon script 523e07cbf5 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2018-01-07 04:56:25 +01:00
Andrius Štikonas 9439e9b1fd Fix a crash when resizing LVM LV. 2018-01-06 23:24:16 +02:00
Andrius Štikonas eaff75dc1b Exclude FileSystem::Luks2 from New File System dialog.
Just like with Luks1, we only want to create Luks2 containers with
some other file system inside.
2017-12-31 08:41:17 +00:00
Andrius Štikonas b4b5dcd804 Add a passphrase request dialog for LUKS2 resizing. 2017-12-31 08:41:17 +00:00
Andrius Štikonas 70f75a3f92 Treat LUKS2 file system as encrypted too. 2017-12-31 08:41:17 +00:00
l10n daemon script 4e1afc8be6 GIT_SILENT made messages (after extraction) 2017-12-25 03:06:33 +01:00
Andrius Štikonas 4b97201539 Add LUKS2 and FAT12 to file system color configuration dialog. 2017-12-24 20:43:26 +00:00
l10n daemon script 7c1ff3cc19 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2017-12-24 04:48:55 +01:00
l10n daemon script c3b143903c GIT_SILENT made messages (after extraction) 2017-12-20 04:59:43 +01:00
Andrius Štikonas 293ea833f6 Update INSTALL file. 2017-12-18 21:02:53 +00:00
Andrius Štikonas 126a7ad1b3 Update required KF5 version in INSTALL file. 2017-12-16 20:18:14 +00:00
l10n daemon script 26db2cfd8c SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2017-12-11 04:38:36 +01:00
Andrius Štikonas cc86c2dc5e Bump version and kpmcore requirements to 3.3.0 2017-12-07 14:48:30 +00:00
Andrius Štikonas f322f05037 appdata: use more generic doc URL. 2017-12-05 20:45:32 +00:00
Andrius Štikonas ded99a1497 appdata: update homepage URL, use https for links 2017-12-05 20:11:25 +00:00
Andrius Štikonas d25523e43a Properly save new fstab entries. 2017-12-03 00:17:19 +00:00
Andrius Štikonas bc5ee156f3 Update TODO. 2017-12-02 23:33:41 +00:00
Andrius Štikonas d4c72ad075 Fix creation of FAT mountpoints.
BUG: 387463
2017-11-30 23:33:35 +00:00
l10n daemon script a6ed618ba6 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2017-11-27 04:58:05 +01:00
l10n daemon script 7e29cf6c62 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2017-11-20 04:32:00 +01:00
Andrius Štikonas f5d210adee Search all KF5 components as such instead as separate frameworks 2017-11-18 00:20:23 +00:00
Andrius Štikonas ecec8dadda Do not display cylinder/head/sector information.
CHS has never been important for Linux.
2017-11-07 00:51:59 +00:00
Andrius Štikonas f639d965dd Fix saving new backend when clicking Ok button.
When clicking Ok, dialog gets hidden and we never set the new backend.
2017-11-07 00:47:04 +00:00
Andrius Štikonas f62edf052c Move LVM LV setup code to the base class.
The same checks (e.g. hide LVM LV name edit line) are also needed
in the other children of SizeDialogBase.
2017-10-28 19:02:26 +01:00