mirror_ifupdown2/docs/source
Sam Tannous 1e6d7bd76c add param in ifupdown2.conf to prevent fupdown2 users from specify interface config file on the CLI
Ticket: CM-7066
Reviewed By: scotte,roopa,olson
Testing Done: Unit testing and regression testing

This patch does two things:

1. It moves the interfaces config file name to the ifupdown2.conf file in /etc/network/ifupdown2.
This should allow administrators to specify a config file location different from the default and allow
subsets of users to use it without giving them access to specifying their own with the -i option in ifup/ifdown.

2. It also adds a new config setting called "disable_cli_interfacesfile" used to prevent users
from specifying their own interfaces file. This defaults to "1" (even if it is not configured).

Note: this new default takes away users ability to specify an interfaces file.

This should close the vulnerability where users could specify their own interfaces file
and add arbitrary user commands.

This leaves the shell=True option in the user commands add-on module since the ifup/ifdown/ifreload/ifquery
commands already require root access to run and the interfaces config file also requires root access to modify.
2015-08-20 22:59:44 -04:00
..
images Documentation cleanup 2014-07-22 11:15:56 -07:00
addonsapiref.rst Allow customer set bond defaults for CL with ifupdown2 2015-07-22 18:38:07 -04:00
addonshelperapiref.rst Allow customer set bond defaults for CL with ifupdown2 2015-07-22 18:38:07 -04:00
apiref.rst Documentation cleanup 2014-07-22 11:15:56 -07:00
conf.py merge docs.addons content into docs directory 2015-03-10 14:18:30 -07:00
developmentcorner.rst merge docs.addons content into docs directory 2015-03-10 14:18:30 -07:00
gettingstarted.rst merge docs.addons content into docs directory 2015-03-10 14:18:30 -07:00
index.rst Doc updates + cleanup 2014-07-17 11:44:36 -07:00
intro.rst merge docs.addons content into docs directory 2015-03-10 14:18:30 -07:00
userguide.rst add param in ifupdown2.conf to prevent fupdown2 users from specify interface config file on the CLI 2015-08-20 22:59:44 -04:00