aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-01-25 10:10:45 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2016-01-25 10:10:45 +0100
commitfa2a3e6599f515089a0631de9f77ffd21c8cf57f (patch)
tree5d72d04820eeb4fed6cdb7a6c9e4fbf9b3091a49
parent6d5919ea8fe4f2794a1fe6ffff26dd0ad56faff6 (diff)
main: frankly removes smack argument
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>
-rw-r--r--src/main.c8
1 files changed, 0 insertions, 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;