From fa2a3e6599f515089a0631de9f77ffd21c8cf57f Mon Sep 17 00:00:00 2001 From: José Bollo Date: Mon, 25 Jan 2016 10:10:45 +0100 Subject: main: frankly removes smack argument MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/main.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/main.c b/src/main.c index 9d65438f..b3895cf7 100644 --- a/src/main.c +++ b/src/main.c @@ -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; -- cgit 1.2.3-korg