LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-12-2016, 05:25 PM   #1
yars
Member
 
Registered: Apr 2012
Location: Russia
Distribution: Slackware64-current
Posts: 249

Rep: Reputation: 24
Blueman - the future releases will require PolicyKit authentication: which group is preferable?


Hello,
As explained here, new releases will require PolicyKit authentication to do some actions. I built the current git snapshot to test it, and seems it works. But asking for the privilege escalation every time on startup is tediously, so needs to have the rule that will allow the users who is a members of the some group to operate without authentication. I prefer the 'plugdev' group. My question is what group we shoud use for that? Thanks.
P.S. For Slackware, we can use this rule:
Code:
$ cat /etc/polkit-1/localauthority/50-local.d/10-org.blueman.pkla 
[blueman-applet]
Identity=unix-group:plugdev
Action=org.blueman.*
ResultAny=yes
ResultInactive=no
ResultActive=yes

Last edited by yars; 05-13-2016 at 05:19 AM.
 
Old 05-25-2016, 01:10 AM   #2
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Disclaimer: I've not had time to even consider looking at the work toward 2.1.x (I don't think I've even updated my git tree in a while), but I can say for sure that we'll needthe polkit rules to be in the new javascript-like syntax similar to what you find in -current's polkit package Something along these lines:
Code:
polkit.addRule(function(action, subject) {
  if (action.id.indexOf("org.blueman.") == 0 && 
      subject.isInGroup("plugdev")) {
      return polkit.Result.YES;
  }
});
That said, the bluez source uses "lp" group (and I have absolutely no idea why), so I think we probably need to either change that in our builds *or* use "lp" group for the blueman permissions too. I'm not certain of that, however...

EDIT: hrm, this looks better: https://github.com/blueman-project/b...wiki/PolicyKit

Last edited by rworkman; 05-25-2016 at 01:12 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Authentication failure with Blueman applet and cell phone. camorri Slackware 1 05-29-2015 06:36 PM
Policykit starts but policykit agent doesnt krax Slackware 2 10-08-2011 10:51 AM
XFCE group in future Slackware releases? amiga32 Slackware 5 03-03-2010 07:41 AM
Apache Auth: Using Require User and Require Group newmanium2001 Linux - Software 1 08-25-2009 02:39 PM
Apache2 Require user with Require group Russianspi Linux - Server 2 01-30-2008 11:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration