main: frankly removes smack argument
authorJosé Bollo <jose.bollo@iot.bzh>
Mon, 25 Jan 2016 09:10:45 +0000 (10:10 +0100)
committerJosé Bollo <jose.bollo@iot.bzh>
Mon, 25 Jan 2016 09:10:45 +0000 (10:10 +0100)
Because setting smack requires capabilities, it is better
to let the system configure correctly afb-daemon context:
smack, capabilities, groups, user.

Change-Id: I49edffd38216e735b36b7e2c6c4554fbd8e98f37
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/main.c

index 9d65438..b3895cf 100644 (file)
@@ -71,7 +71,6 @@ static sigjmp_buf exitPoint; // context save for set/longjmp
  #define SET_CONFIG_SAVE    135
  #define SET_CONFIG_EXIT    138
 
- #define SET_SMACK          140
  #define SET_AUTH_TOKEN     141
  #define SET_LDPATH        142
  #define SET_APITIMEOUT     143
@@ -107,7 +106,6 @@ static  AFB_options cliOptions [] = {
   {SET_CONFIG_SAVE  ,0,"save"            , "Save config on disk [default no]"},
   {SET_CONFIG_EXIT  ,0,"saveonly"        , "Save config on disk and then exit"},
 
-  // {SET_SMACK        ,1,"smack"           , "Set Smack Label [default demo]"},
   {SET_LDPATH       ,1,"ldpaths"         , "Load Plugins from dir1:dir2:... [default = PLUGIN_INSTALL_DIR"},
   {SET_AUTH_TOKEN   ,1,"token"           , "Initial Secret [default=no-session, --token="" for session without authentication]"},
   
@@ -344,12 +342,6 @@ int main(int argc, char *argv[])  {
        }     
        break;
        
-    case SET_SMACK:
-       if (optarg == 0) goto needValueForOption;
-       fprintf (stderr, "Not Implemented yet\n");
-       cliconfig.smack   = optarg;
-       break;
-
     case SET_AUTH_TOKEN:
        if (optarg == 0) goto needValueForOption;
        cliconfig.token   = optarg;