You are not logged in.

#1 2021-04-30 22:23:16

hqurve
Member
Registered: 2021-04-30
Posts: 3

Discover doesn't ask for password before installing

So I've installed plasma and decided to setup discover by installing packagekit-qt5. Just to ensure that it was working properly, I installed octave and I to my surprise it didnt ask for my password. I at first thought that it perhaps installed it for me only (in a similar way to flatpak --user) but upon inspection, I saw that the program was executing from /usr/bin/octave. This was concerning.

My first guess is that I messed up (or didnt do) some configuration and that this effect is a symptom of a security issue in my setup. However, Im not overly sure since I would assume by default, permissions would be required. Also, the packageKit website states that one-click installs should not be possible.

I tried to decipher the below output in the journal (note the output was when I installed mpv) and my guess is that it has something to do with when I (uid 1000) requested authorization which was automatically approved. However, Im not sure whether this authorization refers to some key required for downloading instead of a transaction to install the programs.

Apr 30 14:56:37 first-try audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=packagekit comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 30 14:56:37 first-try systemd[1]: Starting PackageKit Daemon...
Apr 30 14:56:37 first-try PackageKit[64792]: daemon start
Apr 30 14:56:37 first-try systemd[1]: Started PackageKit Daemon.
Apr 30 14:56:37 first-try dbus-daemon[252]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Apr 30 14:56:38 first-try PackageKit[64792]: uid 1000 is trying to obtain org.freedesktop.packagekit.system-sources-refresh auth (only_trusted:0)
Apr 30 14:56:38 first-try PackageKit[64792]: uid 1000 obtained auth for org.freedesktop.packagekit.system-sources-refresh
Apr 30 14:56:38 first-try PackageKit[64792]: get-updates transaction /1_cbddccde from uid 1000 finished with success after 829ms
Apr 30 14:56:39 first-try PackageKit[64792]: refresh-cache transaction /2_aebbdcad from uid 1000 finished with success after 212ms
Apr 30 14:56:39 first-try PackageKit[64792]: get-updates transaction /3_ebcedadb from uid 1000 finished with success after 221ms
Apr 30 14:56:39 first-try PackageKit[64792]: get-updates transaction /4_dcedacae from uid 1000 finished with success after 420ms
Apr 30 14:56:40 first-try PackageKit[64792]: resolve transaction /5_dbcedcbc from uid 1000 finished with success after 1ms
Apr 30 14:56:40 first-try PackageKit[64792]: resolve transaction /6_bbebeedb from uid 1000 finished with success after 3ms
Apr 30 14:56:42 first-try kwin_x11[35715]: kwin_core: XCB error: 152 (BadDamage), sequence: 28955, resource id: 14699991, major code: 143 (DAMAGE), minor code: 2 (Destroy)
Apr 30 14:56:42 first-try kwin_x11[35715]: kwin_core: XCB error: 3 (BadWindow), sequence: 28956, resource id: 14699989, major code: 129 (SHAPE), minor code: 6 (Input)
Apr 30 14:56:42 first-try kwin_x11[35715]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 28957, resource id: 14699989, major code: 2 (ChangeWindowAttributes), minor code: 0
Apr 30 14:56:42 first-try kwin_x11[35715]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 28979, resource id: 54525977, major code: 25 (SendEvent), minor code: 0
Apr 30 14:56:42 first-try kwin_x11[35715]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 28985, resource id: 54525977, major code: 15 (QueryTree), minor code: 0
Apr 30 14:56:42 first-try kwin_x11[35715]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 29202, resource id: 54525997, major code: 18 (ChangeProperty), minor code: 0
Apr 30 14:57:38 first-try kwin_x11[35715]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 34384, resource id: 54525981, major code: 18 (ChangeProperty), minor code: 0
Apr 30 14:57:47 first-try PackageKit[64792]: get-updates transaction /7_beaeaadc from uid 1000 finished with success after 661ms
Apr 30 14:57:48 first-try PackageKit[64792]: resolve transaction /8_dbaaaade from uid 1000 finished with success after 1ms
Apr 30 14:57:48 first-try PackageKit[64792]: resolve transaction /9_acddbcab from uid 1000 finished with success after 0ms
Apr 30 14:57:49 first-try PackageKit[64792]: resolve transaction /10_cbedebde from uid 1000 finished with success after 197ms
Apr 30 14:57:49 first-try PackageKit[64792]: resolve transaction /11_eadbcdba from uid 1000 finished with success after 196ms
Apr 30 14:57:49 first-try PackageKit[64792]: get-details transaction /12_cbecdadd from uid 1000 finished with success after 3ms
Apr 30 14:57:51 first-try PackageKit[64792]: resolve transaction /13_bdaeeedd from uid 1000 finished with success after 0ms
Apr 30 14:57:51 first-try PackageKit[64792]: resolve transaction /14_eeeddeea from uid 1000 finished with success after 0ms
Apr 30 14:57:52 first-try PackageKit[64792]: get-details transaction /15_dcbedeba from uid 1000 finished with success after 26ms
Apr 30 14:57:52 first-try PackageKit[64792]: resolve transaction /16_edbbcebe from uid 1000 finished with success after 2ms
Apr 30 14:57:52 first-try PackageKit[64792]: resolve transaction /17_dddcdbeb from uid 1000 finished with success after 0ms
Apr 30 14:57:56 first-try PackageKit[64792]: get-details transaction /18_addddbcb from uid 1000 finished with success after 2ms
Apr 30 14:57:57 first-try PackageKit[64792]: resolve transaction /19_ecbbccdb from uid 1000 finished with success after 2ms
Apr 30 14:57:57 first-try PackageKit[64792]: resolve transaction /20_cbbadbba from uid 1000 finished with success after 1ms
Apr 30 14:57:59 first-try PackageKit[64792]: depends-on transaction /21_addedbda from uid 1000 finished with success after 26ms
Apr 30 14:58:07 first-try PackageKit[64792]: resolve transaction /22_dbcccedb from uid 1000 finished with success after 1ms
Apr 30 14:58:07 first-try PackageKit[64792]: resolve transaction /23_cedaebaa from uid 1000 finished with success after 1ms
Apr 30 14:58:10 first-try PackageKit[64792]: get-details transaction /24_bdaeedad from uid 1000 finished with success after 0ms
Apr 30 14:58:11 first-try PackageKit[64792]: resolve transaction /25_daadaceb from uid 1000 finished with success after 1ms
Apr 30 14:58:11 first-try PackageKit[64792]: resolve transaction /26_bcdcccca from uid 1000 finished with success after 1ms
Apr 30 14:58:15 first-try PackageKit[64792]: get-details transaction /27_ecadcbdb from uid 1000 finished with success after 0ms
Apr 30 14:58:17 first-try PackageKit[64792]: resolve transaction /28_ceacacab from uid 1000 finished with success after 1ms
Apr 30 14:58:17 first-try PackageKit[64792]: resolve transaction /29_bddcddae from uid 1000 finished with success after 1ms
Apr 30 14:58:18 first-try PackageKit[64792]: get-details transaction /30_aeaabdda from uid 1000 finished with success after 0ms
Apr 30 14:58:18 first-try PackageKit[64792]: resolve transaction /31_badbbeed from uid 1000 finished with success after 1ms
Apr 30 14:58:18 first-try PackageKit[64792]: resolve transaction /32_bcbedcdc from uid 1000 finished with success after 1ms
Apr 30 14:58:23 first-try PackageKit[64792]: resolve transaction /33_cebbabbe from uid 1000 finished with success after 0ms
Apr 30 14:58:23 first-try PackageKit[64792]: get-details transaction /34_bdeabead from uid 1000 finished with success after 0ms
Apr 30 14:58:25 first-try PackageKit[64792]: new install-packages transaction /35_aacbcaaa scheduled from uid 1000
Apr 30 14:58:25 first-try PackageKit[64792]: in /35_aacbcaaa for install-packages package libid3tag;0.15.1b-11;x86_64;extra was installing for uid 1000
Apr 30 14:58:25 first-try PackageKit[64792]: in /35_aacbcaaa for install-packages package imlib2;1.7.1-1;x86_64;extra was installing for uid 1000
Apr 30 14:58:25 first-try PackageKit[64792]: in /35_aacbcaaa for install-packages package libcaca;0.99.beta19-4;x86_64;extra was installing for uid 1000
Apr 30 14:58:25 first-try PackageKit[64792]: in /35_aacbcaaa for install-packages package libcddb;1.3.2-6;x86_64;extra was installing for uid 1000
Apr 30 14:58:25 first-try PackageKit[64792]: in /35_aacbcaaa for install-packages package libcdio;2.1.0-2;x86_64;extra was installing for uid 1000
Apr 30 14:58:26 first-try PackageKit[64792]: in /35_aacbcaaa for install-packages package libcdio-paranoia;10.2+2.0.1-2;x86_64;extra was installing for uid 1000
Apr 30 14:58:26 first-try PackageKit[64792]: in /35_aacbcaaa for install-packages package libdvdread;6.1.2-1;x86_64;extra was installing for uid 1000
Apr 30 14:58:26 first-try PackageKit[64792]: in /35_aacbcaaa for install-packages package libdvdnav;6.1.1-1;x86_64;extra was installing for uid 1000
Apr 30 14:58:26 first-try PackageKit[64792]: in /35_aacbcaaa for install-packages package glslang;11.4.0-1;x86_64;extra was installing for uid 1000
Apr 30 14:58:26 first-try PackageKit[64792]: in /35_aacbcaaa for install-packages package spirv-tools;2020.7-1;x86_64;extra was installing for uid 1000
Apr 30 14:58:26 first-try PackageKit[64792]: in /35_aacbcaaa for install-packages package shaderc;2020.5-1;x86_64;extra was installing for uid 1000
Apr 30 14:58:26 first-try PackageKit[64792]: in /35_aacbcaaa for install-packages package libplacebo;3.120.2-1;x86_64;extra was installing for uid 1000
Apr 30 14:58:26 first-try PackageKit[64792]: in /35_aacbcaaa for install-packages package lua52;5.2.4-5;x86_64;extra was installing for uid 1000
Apr 30 14:58:26 first-try PackageKit[64792]: in /35_aacbcaaa for install-packages package mujs;1.1.2-1;x86_64;community was installing for uid 1000
Apr 30 14:58:26 first-try PackageKit[64792]: in /35_aacbcaaa for install-packages package rubberband;1.9.1-1;x86_64;community was installing for uid 1000
Apr 30 14:58:26 first-try PackageKit[64792]: in /35_aacbcaaa for install-packages package uchardet;0.0.7-1;x86_64;extra was installing for uid 1000
Apr 30 14:58:26 first-try PackageKit[64792]: in /35_aacbcaaa for install-packages package mpv;1:0.33.1-2;x86_64;community was installing for uid 1000
Apr 30 14:58:26 first-try PackageKit[64792]: install-packages transaction /35_aacbcaaa from uid 1000 finished with success after 299ms
Apr 30 14:58:26 first-try PackageKit[64792]: uid 1000 is trying to obtain org.freedesktop.packagekit.package-install auth (only_trusted:1)
Apr 30 14:58:26 first-try PackageKit[64792]: new install-packages transaction /36_edbebaec scheduled from uid 1000
Apr 30 14:58:26 first-try PackageKit[64792]: uid 1000 obtained auth for org.freedesktop.packagekit.package-install
Apr 30 14:58:26 first-try packagekitd[64792]: pk_alpm_transaction_dlcb: assertion 'complete <= total' failed
Apr 30 14:58:26 first-try packagekitd[64792]: pk_alpm_transaction_dlcb: assertion 'complete <= total' failed
Apr 30 14:58:26 first-try packagekitd[64792]: pk_alpm_transaction_dlcb: assertion 'complete <= total' failed
Apr 30 14:58:27 first-try packagekitd[64792]: pk_alpm_transaction_dlcb: assertion 'complete <= total' failed
Apr 30 14:58:27 first-try packagekitd[64792]: pk_alpm_transaction_dlcb: assertion 'complete <= total' failed
Apr 30 14:58:27 first-try packagekitd[64792]: pk_alpm_transaction_dlcb: assertion 'complete <= total' failed
Apr 30 14:58:27 first-try packagekitd[64792]: pk_alpm_transaction_dlcb: assertion 'complete <= total' failed
Apr 30 14:58:27 first-try packagekitd[64792]: pk_alpm_transaction_dlcb: assertion 'complete <= total' failed
Apr 30 14:58:27 first-try packagekitd[64792]: pk_alpm_transaction_dlcb: assertion 'complete <= total' failed
Apr 30 14:58:27 first-try packagekitd[64792]: pk_alpm_transaction_dlcb: assertion 'complete <= total' failed
Apr 30 14:58:28 first-try packagekitd[64792]: pk_alpm_transaction_dlcb: assertion 'complete <= total' failed
Apr 30 14:58:28 first-try packagekitd[64792]: pk_alpm_transaction_dlcb: assertion 'complete <= total' failed
Apr 30 14:58:28 first-try packagekitd[64792]: pk_alpm_transaction_dlcb: assertion 'complete <= total' failed
Apr 30 14:58:28 first-try packagekitd[64792]: pk_alpm_transaction_dlcb: assertion 'complete <= total' failed
Apr 30 14:58:28 first-try packagekitd[64792]: pk_alpm_transaction_dlcb: assertion 'complete <= total' failed
Apr 30 14:58:28 first-try packagekitd[64792]: pk_alpm_transaction_dlcb: assertion 'complete <= total' failed
Apr 30 14:58:28 first-try packagekitd[64792]: pk_alpm_transaction_dlcb: assertion 'complete <= total' failed
Apr 30 14:58:29 first-try PackageKit[64792]: 0% of  complete (1 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 5% of  complete (2 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 11% of  complete (3 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 17% of  complete (4 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 23% of  complete (5 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 29% of  complete (6 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 35% of  complete (7 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 41% of  complete (8 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 47% of  complete (9 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 52% of  complete (10 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 58% of  complete (11 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 64% of  complete (12 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 70% of  complete (13 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 76% of  complete (14 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 82% of  complete (15 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 88% of  complete (16 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 94% of  complete (17 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 100% of  complete (17 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 0% of  complete (1 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 6% of  complete (3 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 9% of  complete (4 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 12% of  complete (6 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 13% of  complete (7 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 14% of  complete (8 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 15% of  complete (9 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 55% of  complete (10 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 71% of  complete (11 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 72% of  complete (12 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 76% of  complete (13 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 78% of  complete (14 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 80% of  complete (15 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 83% of  complete (16 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 84% of  complete (17 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 100% of  complete (17 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 0% of  complete (1 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 6% of  complete (3 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 9% of  complete (4 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 12% of  complete (6 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 13% of  complete (7 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 14% of  complete (8 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 15% of  complete (9 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 55% of  complete (10 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 71% of  complete (11 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 72% of  complete (12 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 76% of  complete (13 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 78% of  complete (14 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 80% of  complete (15 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 83% of  complete (16 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 84% of  complete (17 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 100% of  complete (17 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 0% of  complete (1 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 5% of  complete (2 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 11% of  complete (3 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 17% of  complete (4 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 23% of  complete (5 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 29% of  complete (6 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 35% of  complete (7 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 41% of  complete (8 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 47% of  complete (9 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 52% of  complete (10 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 58% of  complete (11 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 64% of  complete (12 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 70% of  complete (13 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 76% of  complete (14 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 82% of  complete (15 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 88% of  complete (16 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 94% of  complete (17 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 100% of  complete (17 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 0% of  complete (1 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 5% of  complete (2 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 11% of  complete (3 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 17% of  complete (4 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 23% of  complete (5 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 29% of  complete (6 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 35% of  complete (7 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 41% of  complete (8 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 47% of  complete (9 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 52% of  complete (10 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 58% of  complete (11 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 64% of  complete (12 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 70% of  complete (13 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 76% of  complete (14 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 82% of  complete (15 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 88% of  complete (16 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 94% of  complete (17 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 100% of  complete (17 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 0% of libid3tag complete (1 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 99% of libid3tag complete (1 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 100% of libid3tag complete (1 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 0% of imlib2 complete (2 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 4% of imlib2 complete (2 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 8% of imlib2 complete (2 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 11% of imlib2 complete (2 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 14% of imlib2 complete (2 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 23% of imlib2 complete (2 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 52% of imlib2 complete (2 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 70% of imlib2 complete (2 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 92% of imlib2 complete (2 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 100% of imlib2 complete (2 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 0% of libcaca complete (3 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 9% of libcaca complete (3 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 21% of libcaca complete (3 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 33% of libcaca complete (3 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 99% of libcaca complete (3 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 100% of libcaca complete (3 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 0% of libcddb complete (4 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 67% of libcddb complete (4 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 100% of libcddb complete (4 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 0% of libcdio complete (5 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 15% of libcdio complete (5 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 24% of libcdio complete (5 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 33% of libcdio complete (5 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 39% of libcdio complete (5 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 48% of libcdio complete (5 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 60% of libcdio complete (5 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 75% of libcdio complete (5 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 100% of libcdio complete (5 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 0% of libcdio-paranoia complete (6 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 70% of libcdio-paranoia complete (6 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 100% of libcdio-paranoia complete (6 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 0% of libdvdread complete (7 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 38% of libdvdread complete (7 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 76% of libdvdread complete (7 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 100% of libdvdread complete (7 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 0% of libdvdnav complete (8 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 80% of libdvdnav complete (8 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 100% of libdvdnav complete (8 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 0% of glslang complete (9 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 1% of glslang complete (9 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 57% of glslang complete (9 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 59% of glslang complete (9 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 60% of glslang complete (9 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 61% of glslang complete (9 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 62% of glslang complete (9 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 63% of glslang complete (9 of 17)
Apr 30 14:58:29 first-try PackageKit[64792]: 74% of glslang complete (9 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 78% of glslang complete (9 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 93% of glslang complete (9 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 94% of glslang complete (9 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 95% of glslang complete (9 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 100% of glslang complete (9 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 0% of spirv-tools complete (10 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 2% of spirv-tools complete (10 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 4% of spirv-tools complete (10 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 6% of spirv-tools complete (10 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 8% of spirv-tools complete (10 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 66% of spirv-tools complete (10 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 68% of spirv-tools complete (10 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 91% of spirv-tools complete (10 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 99% of spirv-tools complete (10 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 100% of spirv-tools complete (10 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 0% of shaderc complete (11 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 38% of shaderc complete (11 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 70% of shaderc complete (11 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 77% of shaderc complete (11 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 96% of shaderc complete (11 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 100% of shaderc complete (11 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 0% of libplacebo complete (12 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 13% of libplacebo complete (12 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 21% of libplacebo complete (12 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 29% of libplacebo complete (12 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 100% of libplacebo complete (12 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 0% of lua52 complete (13 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 28% of lua52 complete (13 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 46% of lua52 complete (13 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 53% of lua52 complete (13 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 57% of lua52 complete (13 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 68% of lua52 complete (13 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 82% of lua52 complete (13 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 100% of lua52 complete (13 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 0% of mujs complete (14 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 25% of mujs complete (14 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 62% of mujs complete (14 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 95% of mujs complete (14 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 100% of mujs complete (14 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 0% of rubberband complete (15 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 22% of rubberband complete (15 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 38% of rubberband complete (15 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 47% of rubberband complete (15 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 73% of rubberband complete (15 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 89% of rubberband complete (15 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 99% of rubberband complete (15 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 100% of rubberband complete (15 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 0% of uchardet complete (16 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 79% of uchardet complete (16 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 100% of uchardet complete (16 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 0% of mpv complete (17 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 2% of mpv complete (17 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 64% of mpv complete (17 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 65% of mpv complete (17 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 83% of mpv complete (17 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 92% of mpv complete (17 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 99% of mpv complete (17 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: 100% of mpv complete (17 of 17)
Apr 30 14:58:30 first-try PackageKit[64792]: Hook 30-systemd-update.hook (Arming ConditionNeedsUpdate...) complete (1 of 4)
Apr 30 14:58:30 first-try PackageKit[64792]: Hook gtk-update-icon-cache.hook (Updating icon theme caches...) complete (2 of 4)
Apr 30 14:58:30 first-try PackageKit[64792]: Hook texinfo-install.hook (Updating the info directory file...) complete (3 of 4)
Apr 30 14:58:30 first-try PackageKit[64792]: Hook update-desktop-database.hook (Updating the desktop file MIME type cache...) complete (4 of 4)
Apr 30 14:58:30 first-try PackageKit[64792]: in /36_edbebaec for install-packages package libid3tag;0.15.1b-11;x86_64;installed was installing for uid 1000
Apr 30 14:58:30 first-try PackageKit[64792]: in /36_edbebaec for install-packages package imlib2;1.7.1-1;x86_64;installed was installing for uid 1000
Apr 30 14:58:30 first-try PackageKit[64792]: in /36_edbebaec for install-packages package libcaca;0.99.beta19-4;x86_64;installed was installing for uid 1000
Apr 30 14:58:30 first-try PackageKit[64792]: in /36_edbebaec for install-packages package libcddb;1.3.2-6;x86_64;installed was installing for uid 1000
Apr 30 14:58:30 first-try PackageKit[64792]: in /36_edbebaec for install-packages package libcdio;2.1.0-2;x86_64;installed was installing for uid 1000
Apr 30 14:58:30 first-try PackageKit[64792]: in /36_edbebaec for install-packages package libcdio-paranoia;10.2+2.0.1-2;x86_64;installed was installing for uid 1000
Apr 30 14:58:30 first-try PackageKit[64792]: in /36_edbebaec for install-packages package libdvdread;6.1.2-1;x86_64;installed was installing for uid 1000
Apr 30 14:58:30 first-try PackageKit[64792]: in /36_edbebaec for install-packages package libdvdnav;6.1.1-1;x86_64;installed was installing for uid 1000
Apr 30 14:58:30 first-try PackageKit[64792]: in /36_edbebaec for install-packages package glslang;11.4.0-1;x86_64;installed was installing for uid 1000
Apr 30 14:58:30 first-try PackageKit[64792]: in /36_edbebaec for install-packages package spirv-tools;2020.7-1;x86_64;installed was installing for uid 1000
Apr 30 14:58:30 first-try PackageKit[64792]: in /36_edbebaec for install-packages package shaderc;2020.5-1;x86_64;installed was installing for uid 1000
Apr 30 14:58:30 first-try PackageKit[64792]: in /36_edbebaec for install-packages package libplacebo;3.120.2-1;x86_64;installed was installing for uid 1000
Apr 30 14:58:30 first-try PackageKit[64792]: in /36_edbebaec for install-packages package lua52;5.2.4-5;x86_64;installed was installing for uid 1000
Apr 30 14:58:30 first-try PackageKit[64792]: in /36_edbebaec for install-packages package mujs;1.1.2-1;x86_64;installed was installing for uid 1000
Apr 30 14:58:30 first-try PackageKit[64792]: in /36_edbebaec for install-packages package rubberband;1.9.1-1;x86_64;installed was installing for uid 1000
Apr 30 14:58:30 first-try PackageKit[64792]: in /36_edbebaec for install-packages package uchardet;0.0.7-1;x86_64;installed was installing for uid 1000
Apr 30 14:58:30 first-try PackageKit[64792]: in /36_edbebaec for install-packages package mpv;1:0.33.1-2;x86_64;installed was installing for uid 1000
Apr 30 14:58:30 first-try PackageKit[64792]: install-packages transaction /36_edbebaec from uid 1000 finished with success after 4949ms
Apr 30 14:58:31 first-try PackageKit[64792]: get-updates transaction /37_eabcabca from uid 1000 finished with success after 518ms

Any help would be appreciated

Offline

#2 2021-05-01 06:58:05

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,098

Re: Discover doesn't ask for password before installing

Offline

#3 2021-05-01 15:40:50

hqurve
Member
Registered: 2021-04-30
Posts: 3

Re: Discover doesn't ask for password before installing

Thank you, although I too believe that this should not be default behaviour, I simply added a rule which produced the behaviour which I want. For reference, I created the following file in /etc/polkit-1/rules.d/

polkit.addRule(function(action, subject){
    if (
        (
            action.id == "org.freedesktop.packagekit.package-install"
            || action.id == "org.freedesktop.packagekit.system-update"
            || action.id == "org.freedesktop.packagekit.system-network-proxy-configure"
            || action.id == "org.freedesktop.packagekit.trigger-offline-update"
            || action.id == "org.freedesktop.packagekit.trigger-offline-upgrade"
        ) 
        && subject.active == true && subject.local == true
    ){
        return polkit.Result.AUTH_ADMIN_KEEP;
    }
});

Offline

#4 2021-06-16 21:05:50

hiddengerbil
Member
Registered: 2021-04-01
Posts: 5

Re: Discover doesn't ask for password before installing

I see your file and can access the location if I switch to SU mode, but I don't know what to call the file and the extension to use? Could you explain?

Offline

#5 2021-06-17 00:49:45

hqurve
Member
Registered: 2021-04-30
Posts: 3

Re: Discover doesn't ask for password before installing

The file has to end with ".rules", for example, I named my file "00-packagekit_overrides.rules".

More information could be found on the polkit archwiki page as well as the man page for polkit in the authorization rules section.

Edit for potentially more clarification:
The file overrides the rules in /usr/share/polkit-1/actons/org.freedesktop.packagekit.policy. You can go though that file and see which actions' defaults you like or want to override.
Since the file also contains the messages and descriptions for different locales, you can filter the those lines, perhaps using

cat org.freedesktop.packagekit.policy | grep -v 'description\|message'

Last edited by hqurve (2021-06-17 01:09:41)

Offline

Board footer

Powered by FluxBB