Re: How to limit udisks2 rules to a specific device?

2018-04-09 Thread Mikhail Morfikov
On 2018-04-09 12:30, Richard Hector wrote: > On 09/04/18 04:50, Mikhail Morfikov wrote: >> When it comes to mounting devices, I have two simple rules: >> 1) only root can do it. >> 2) in some cases only defined users can mount some specific devices. >> >> So I want to forbid all users (except

Re: How to limit udisks2 rules to a specific device?

2018-04-09 Thread Richard Hector
On 09/04/18 04:50, Mikhail Morfikov wrote: > When it comes to mounting devices, I have two simple rules: > 1) only root can do it. > 2) in some cases only defined users can mount some specific devices. > > So I want to forbid all users (except root) to access all devices that people > can

Re: How to limit udisks2 rules to a specific device?

2018-04-08 Thread Mikhail Morfikov
On 2018-04-08 20:00, Brian wrote: > On Sun 08 Apr 2018 at 18:50:50 +0200, Mikhail Morfikov wrote: > > [...] >> I've seen that people use something similar to the following rule: >> - >> /etc/polkit-1/localauthority/50-local.d/20-udisks2.pkla >>

Re: How to limit udisks2 rules to a specific device?

2018-04-08 Thread Brian
On Sun 08 Apr 2018 at 18:50:50 +0200, Mikhail Morfikov wrote: [...] > I've seen that people use something similar to the following rule: > - > /etc/polkit-1/localauthority/50-local.d/20-udisks2.pkla > - > [Allow

How to limit udisks2 rules to a specific device?

2018-04-08 Thread Mikhail Morfikov
I've never been using udisks/udisks2 before because I didn't really need it, but now I thought I could see what the tool is capable of and give it a chance. When it comes to mounting devices, I have two simple rules: 1) only root can do it. 2) in some cases only defined users can mount some