eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 272a60a478a521f6b233fcee46b84bd075a7a029
parent c2d71fdaa531cbbb4a4266a7f560e2720061d461
Author: James Prestwood <prestwoj@gmail.com>
Date:   Thu, 18 Feb 2021 12:19:29 -0800

test-runner: require root user to run with --monitor

Since the monitor file requires touching the host file
system, root access is required.

Diffstat:
Mtools/test-runner | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/tools/test-runner b/tools/test-runner @@ -1434,6 +1434,10 @@ class Main: options += ' --log-uid %u' % uid if self.args.monitor: + if os.environ.get('SUDO_GID', None) is None: + print("--monitor can only be used as root user") + quit() + self.args.monitor = os.path.abspath(self.args.monitor) mon_parent_dir = os.path.abspath(os.path.join(self.args.monitor, os.pardir))