Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26558755 authored by Stephen Smalley's avatar Stephen Smalley Committed by Steve Kondik
Browse files

Change setsebool syntax to be consistent with other init built-ins.



Change setsebool syntax from name=value to name value.
This is to make it consistent with setprop and similar commands.
Update both the init built-in command and the toolbox command
for consistency.

Change-Id: I2c8e016ba26731c4a2ad4a49ae3b89362bf8f8a8
Signed-off-by: default avatarStephen Smalley <sds@tycho.nsa.gov>

Conflicts:
	init/builtins.c
parent 46a47ffd
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -905,6 +905,16 @@ int do_setsebool(int nargs, char **args) {
        return ret;
    }

=======
    }

    if (security_set_boolean_list(1, &b, 0) < 0) {
        ret = -errno;
        ERROR("setsebool: could not set %s to %s\n", name, value);
        return ret;
    }
#endif
>>>>>>> Change setsebool syntax to be consistent with other init built-ins.
    return 0;
}