Revision 1fdeb284
b/Makefile.am | ||
---|---|---|
1283 | 1283 |
echo "ENABLE_CONFD = $(ENABLE_CONFD)"; \ |
1284 | 1284 |
echo "XEN_CMD = '$(XEN_CMD)'"; \ |
1285 | 1285 |
echo "ENABLE_SPLIT_QUERY = $(ENABLE_SPLIT_QUERY)"; \ |
1286 |
echo "ENABLE_REMOTE_COMMANDS = $(ENABLE_REMOTE_COMMANDS)"; \
|
|
1286 |
echo "ENABLE_RESTRICTED_COMMANDS = $(ENABLE_RESTRICTED_COMMANDS)"; \
|
|
1287 | 1287 |
} > $@ |
1288 | 1288 |
|
1289 | 1289 |
lib/_vcsversion.py: Makefile vcs-version | stamp-directories |
b/configure.ac | ||
---|---|---|
311 | 311 |
fi |
312 | 312 |
AC_SUBST(SYSLOG_USAGE, $SYSLOG) |
313 | 313 |
|
314 |
AC_ARG_ENABLE([remote-commands],
|
|
315 |
[AS_HELP_STRING([--enable-remote-commands],
|
|
316 |
m4_normalize([enable remote commands in the node daemon
|
|
314 |
AC_ARG_ENABLE([restricted-commands],
|
|
315 |
[AS_HELP_STRING([--enable-restricted-commands],
|
|
316 |
m4_normalize([enable restricted commands in the node daemon
|
|
317 | 317 |
(default: disabled)]))], |
318 | 318 |
[[if test "$enableval" = no; then |
319 |
enable_remote_commands=False
|
|
319 |
enable_restricted_commands=False
|
|
320 | 320 |
else |
321 |
enable_remote_commands=True
|
|
321 |
enable_restricted_commands=True
|
|
322 | 322 |
fi |
323 | 323 |
]], |
324 |
[enable_remote_commands=False])
|
|
325 |
AC_SUBST(ENABLE_REMOTE_COMMANDS, $enable_remote_commands)
|
|
324 |
[enable_restricted_commands=False])
|
|
325 |
AC_SUBST(ENABLE_RESTRICTED_COMMANDS, $enable_restricted_commands)
|
|
326 | 326 |
|
327 | 327 |
# --with-disk-separator=... |
328 | 328 |
AC_ARG_WITH([disk-separator], |
b/lib/backend.py | ||
---|---|---|
3714 | 3714 |
_sleep_fn=time.sleep, |
3715 | 3715 |
_prepare_fn=_PrepareRemoteCommand, |
3716 | 3716 |
_runcmd_fn=utils.RunCmd, |
3717 |
_enabled=constants.ENABLE_REMOTE_COMMANDS):
|
|
3717 |
_enabled=constants.ENABLE_RESTRICTED_COMMANDS):
|
|
3718 | 3718 |
"""Executes a remote command after performing strict tests. |
3719 | 3719 |
|
3720 | 3720 |
@type cmd: string |
b/lib/constants.py | ||
---|---|---|
140 | 140 |
ENABLE_SHARED_FILE_STORAGE = _autoconf.ENABLE_SHARED_FILE_STORAGE |
141 | 141 |
ENABLE_CONFD = _autoconf.ENABLE_CONFD |
142 | 142 |
ENABLE_SPLIT_QUERY = _autoconf.ENABLE_SPLIT_QUERY |
143 |
ENABLE_REMOTE_COMMANDS = _autoconf.ENABLE_REMOTE_COMMANDS
|
|
143 |
ENABLE_RESTRICTED_COMMANDS = _autoconf.ENABLE_RESTRICTED_COMMANDS
|
|
144 | 144 |
|
145 | 145 |
NODED = "ganeti-noded" |
146 | 146 |
CONFD = "ganeti-confd" |
Also available in: Unified diff