polkitd crashes with segfault with specific config file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
policykit-1 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The following config file in `/etc/polkit-
```
polkit.
if ((action.id == "org.freedeskto
action.id == "org.freedeskto
action.id == "org.freedeskto
action.id == "org.freedeskto
action.id == "org.freedeskto
action.id == "org.freedeskto
subject.
return polkit.Result.YES;
}
});
```
1. As normal user: `systemctl restart cron.service`
2. Error message `Failed to restart cron.service: Message recipient disconnected from message bus without replying`
3. `dmesg` reports:
```
58.003893] polkitd[963]: segfault at 8 ip 0000558a96789856 sp 00007ffda31e45f0 error 4 in polkitd[
[ 58.003899] Code: 50 c7 ff ff 4d 89 e5 48 89 44 24 08 eb 53 66 0f 1f 44 00 00 48 8b 44 24 10 48 89 e9 be 10 00 00 00 31 ff 48 8d 15 0b af 00 00 <4c> 8b 40 08 31 c0 e8 af cb ff ff 48 8b 7c 24 10 e8 65 c9 ff ff 4c
``
If you remove the 02-allow-
Status changed to 'Confirmed' because the bug affects multiple users.