Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
dc6edd79
Commit
dc6edd79
authored
Oct 28, 2015
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zdtm.py: Add dirs write perms for low-prio tests and flavors
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
225537ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
zdtm.py
test/zdtm.py
+9
-0
No files found.
test/zdtm.py
View file @
dc6edd79
...
...
@@ -123,6 +123,11 @@ class userns_flavor(ns_flavor):
self
.
name
=
"userns"
self
.
uns
=
True
def
init
(
self
,
test_bin
):
# To be able to create roots_yard in CRIU
os
.
chmod
(
"."
,
os
.
stat
(
"."
)
.
st_mode
|
0077
)
ns_flavor
.
init
(
self
,
test_bin
)
flavors
=
{
'h'
:
host_flavor
,
'ns'
:
ns_flavor
,
'uns'
:
userns_flavor
}
#
...
...
@@ -213,6 +218,10 @@ class zdtm_test:
env
[
'ZDTM_UID'
]
=
"18943"
env
[
'ZDTM_GID'
]
=
"58467"
env
[
'ZDTM_GROUPS'
]
=
"27495 48244"
# Add write perms for .out and .pid files
p
=
os
.
path
.
dirname
(
self
.
__name
)
os
.
chmod
(
p
,
os
.
stat
(
p
)
.
st_mode
|
0222
)
else
:
print
"Test is SUID"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment