-
Notifications
You must be signed in to change notification settings - Fork 615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test/zdtm: mount a new tmpfs into the zdtm /dev #2445
Conversation
test/zdtm.py
Outdated
def __construct_dev(self): | ||
for dir in self.__dev_dirs: | ||
os.mkdir(os.path.join(self.devpath, dir)) | ||
os.chmod(os.path.join(self.devpath, dir), 0o777) |
Check failure
Code scanning / CodeQL
Overly permissive file permissions High test
test/zdtm.py
Outdated
devpath = os.path.join(tests_root[1], "dev") | ||
os.mkdir(devpath) | ||
subprocess.check_call(["mount", "-t", "tmpfs", "criu-test-dev", devpath]) | ||
os.chmod(devpath, 0o755) |
Check failure
Code scanning / CodeQL
Overly permissive file permissions High test
test/zdtm.py
Outdated
os.mkdir(devpath) | ||
# zdtm wants to create files on this mount. User namespace tests are | ||
# running with custom user and group mappings. | ||
os.chmod(devpath, 0o777) |
Check failure
Code scanning / CodeQL
Overly permissive file permissions High test
# running with custom user and group mappings. | ||
os.chmod(devpath, 0o777) | ||
subprocess.check_call(["mount", "-t", "tmpfs", "criu-test-dev", devpath]) | ||
os.chmod(tests_root[1], 0o755) |
Check failure
Code scanning / CodeQL
Overly permissive file permissions High test
The current file system can be mounted with nodev. Fixes checkpoint-restore#2441 Signed-off-by: Andrei Vagin <[email protected]>
The current file system can be mounted with nodev.
Fixes #2441