Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
virtme-ng-init: set proper ownership of the default console device
Running a virtme-ng session as non-root may trigger some /dev/stdout permission errors, for example running a kselftest as a regular user: $ vng --user $USER -- make kselftest TARGETS=size make[3]: Entering directory '/home/arighi/src/linux/tools/testing/selftests/size' make[3]: Leaving directory '/home/arighi/src/linux/tools/testing/selftests/size' make[3]: Entering directory '/home/arighi/src/linux/tools/testing/selftests/size' TAP version 13 1..1 /bin/sh: 100: cannot create /dev/stdout: Permission denied # selftests: size: get_size /bin/sh: 127: cannot create /dev/stdout: Permission denied not ok 1 selftests: size: get_size # exit=2 make[3]: Leaving directory '/home/arighi/src/linux/tools/testing/selftests/size' This happens because /dev/stdout points to the default console device that has root:root ownership by default. Fix this by setting the proper ownership of the console device. This fixes issue #5. Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
- Loading branch information