[asterisk-commits] eliel: branch eliel/cli-permissions r159700 - in /team/eliel/cli-permissions:...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Nov 27 05:41:32 CST 2008


Author: eliel
Date: Thu Nov 27 05:41:31 2008
New Revision: 159700

URL: http://svn.digium.com/view/asterisk?view=rev&rev=159700
Log:
- Documentation fixes.
- Remove already included header file.

Modified:
    team/eliel/cli-permissions/configs/cli_permissions.conf.sample
    team/eliel/cli-permissions/include/asterisk/cli.h
    team/eliel/cli-permissions/main/cli.c

Modified: team/eliel/cli-permissions/configs/cli_permissions.conf.sample
URL: http://svn.digium.com/view/asterisk/team/eliel/cli-permissions/configs/cli_permissions.conf.sample?view=diff&rev=159700&r1=159699&r2=159700
==============================================================================
--- team/eliel/cli-permissions/configs/cli_permissions.conf.sample (original)
+++ team/eliel/cli-permissions/configs/cli_permissions.conf.sample Thu Nov 27 05:41:31 2008
@@ -2,7 +2,7 @@
 ; CLI permissions configuration example for Asterisk
 ;
 ; All the users that you want to connect with asterisk using
-; rasterisk, should have write/read/execute access to the
+; rasterisk, should have write/read access to the
 ; asterisk socket (asterisk.ctl). You could change the permissions
 ; of this file in 'asterisk.conf' config parameter: 'astctlpermissions' (0666)
 ; found on the [files] section.

Modified: team/eliel/cli-permissions/include/asterisk/cli.h
URL: http://svn.digium.com/view/asterisk/team/eliel/cli-permissions/include/asterisk/cli.h?view=diff&rev=159700&r1=159699&r2=159700
==============================================================================
--- team/eliel/cli-permissions/include/asterisk/cli.h (original)
+++ team/eliel/cli-permissions/include/asterisk/cli.h Thu Nov 27 05:41:31 2008
@@ -195,8 +195,9 @@
 
 /*! 
  * \brief Interprets a command
- * Interpret a command s, sending output to fd if uid has permissions
- * to run this command. uid = CLI_NO_PERMS to dont check permissions.
+ * Interpret a command s, sending output to fd if uid:gid has permissions
+ * to run this command. uid = CLI_NO_PERMS to avoid checking user permissions
+ * gid = CLI_NO_PERMS to avoid checking group permissions.
  * \param uid User ID that is trying to run the command.
  * \param gid Group ID that is trying to run the command.
  * \param fd pipe
@@ -211,7 +212,8 @@
 /*! 
  * \brief Executes multiple CLI commands
  * Interpret strings separated by NULL and execute each one, sending output to fd
- * if uid has permissions, uid = CLI_NO_PERMS to dont check permissions.
+ * if uid has permissions, uid = CLI_NO_PERMS to avoid checking users permissions.
+ * gid = CLI_NO_PERMS to avoid checking group permissions.
  * \param uid User ID that is trying to run the command.
  * \param gid Group ID that is trying to run the command.
  * \param fd pipe

Modified: team/eliel/cli-permissions/main/cli.c
URL: http://svn.digium.com/view/asterisk/team/eliel/cli-permissions/main/cli.c?view=diff&rev=159700&r1=159699&r2=159700
==============================================================================
--- team/eliel/cli-permissions/main/cli.c (original)
+++ team/eliel/cli-permissions/main/cli.c Thu Nov 27 05:41:31 2008
@@ -33,7 +33,6 @@
 #include <signal.h>
 #include <ctype.h>
 #include <regex.h>
-#include <sys/types.h>
 #include <pwd.h>
 #include <grp.h>
 




More information about the asterisk-commits mailing list