aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2015-01-13 17:38:07 +0100
committerAngelo Naselli <anaselli@linux.it>2015-01-13 17:38:07 +0100
commit46d7da76b113952563db803c003968cde1f9bf72 (patch)
treebbede85fbbf980643c68bbd704abbdd8a6c6157a /scripts
parentc6f4d2b5955f928e3d436d031ccd2ccaccacf383 (diff)
downloadcolin-keep-46d7da76b113952563db803c003968cde1f9bf72.tar
colin-keep-46d7da76b113952563db803c003968cde1f9bf72.tar.gz
colin-keep-46d7da76b113952563db803c003968cde1f9bf72.tar.bz2
colin-keep-46d7da76b113952563db803c003968cde1f9bf72.tar.xz
colin-keep-46d7da76b113952563db803c003968cde1f9bf72.zip
Managed new flag dbus_auth_interactive to to work in user space (thanks Colin)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mana3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/mana b/scripts/mana
index c8d1d2e..c436fc7 100755
--- a/scripts/mana
+++ b/scripts/mana
@@ -37,6 +37,7 @@ my %modules = (
service => {
exec => '/usr/bin/manaservice',
descr => "manaservice: service manager",
+ user_mode => 1,
},
dm => {
exec => '/usr/bin/manadm',
@@ -85,7 +86,7 @@ my $mod = $modules{$cmd}->{exec};
shift(@ARGV);
eval {
- if(is_root_capability_required()) {
+ if(!$modules{$cmd}->{user_mode} && is_root_capability_required()) {
system("/usr/bin/pkexec", $mod, @ARGV);
} else {
system($mod, @ARGV);