summaryrefslogtreecommitdiff
path: root/src/irmd
diff options
context:
space:
mode:
authordimitri staessens <[email protected]>2016-07-04 23:05:01 +0200
committerdimitri staessens <[email protected]>2016-07-04 23:44:32 +0200
commit66fd022a705cf65cbe37c446dbd87919a43a7fd3 (patch)
tree9a73dfc68725eccf2bb491e367705926dcc50214 /src/irmd
parentaca5db11a73e66377b8566e69c1baabb1df803ab (diff)
downloadouroboros-66fd022a705cf65cbe37c446dbd87919a43a7fd3.tar.gz
ouroboros-66fd022a705cf65cbe37c446dbd87919a43a7fd3.zip
lib: irm: search for ap using PATH variable
The bind function will search all directories specified in the PATH variable for the ap fed to the irm bind command and check if it is executable by the uid executing irm bind command. Adds missing info logs for the bind/unbind and unreg operations in the irmd.
Diffstat (limited to 'src/irmd')
-rw-r--r--src/irmd/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/irmd/main.c b/src/irmd/main.c
index 6e3fd74a..ab637789 100644
--- a/src/irmd/main.c
+++ b/src/irmd/main.c
@@ -1103,6 +1103,8 @@ static int bind_name(char * name,
pthread_rwlock_unlock(&instance->reg_lock);
pthread_rwlock_unlock(&instance->state_lock);
+ LOG_INFO("Bound %s to registered name %s.", ap_name, name);
+
return 0;
}
@@ -1142,6 +1144,8 @@ static int unbind_name(char * name,
pthread_rwlock_unlock(&instance->reg_lock);
pthread_rwlock_unlock(&instance->state_lock);
+ LOG_INFO("Removed binding from %s to %s.", ap_name, name);
+
return 0;
}
@@ -1280,6 +1284,9 @@ static int ap_unreg(char * name,
"%s in DIF %s.",
rne->name, e->dif_name);
--ret;
+ } else {
+ LOG_INFO("Unregistered %s from %s.",
+ rne->name, e->dif_name);
}
}
}