Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
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
Chen Yisong
lxc
Commits
e1a2f898
Commit
e1a2f898
authored
Nov 27, 2013
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
python3: Export some missing constants
Signed-off-by:
Stéphane Graber
<
stgraber@ubuntu.com
>
Acked-by:
Serge E. Hallyn
<
serge.hallyn@ubuntu.com
>
parent
bb711f39
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
12 deletions
+25
-12
__init__.py
src/python-lxc/lxc/__init__.py
+25
-12
No files found.
src/python-lxc/lxc/__init__.py
View file @
e1a2f898
...
@@ -474,19 +474,32 @@ def arch_to_personality(arch):
...
@@ -474,19 +474,32 @@ def arch_to_personality(arch):
arch
=
str
(
arch
,
'utf-8'
)
arch
=
str
(
arch
,
'utf-8'
)
return
_lxc
.
arch_to_personality
(
arch
)
return
_lxc
.
arch_to_personality
(
arch
)
# Some constants for attach
# namespace flags (no other python lib exports this)
LXC_ATTACH_KEEP_ENV
=
_lxc
.
LXC_ATTACH_KEEP_ENV
CLONE_NEWIPC
=
_lxc
.
CLONE_NEWIPC
CLONE_NEWNET
=
_lxc
.
CLONE_NEWNET
CLONE_NEWNS
=
_lxc
.
CLONE_NEWNS
CLONE_NEWPID
=
_lxc
.
CLONE_NEWPID
CLONE_NEWUSER
=
_lxc
.
CLONE_NEWUSER
CLONE_NEWUTS
=
_lxc
.
CLONE_NEWUTS
# attach: environment variable handling
LXC_ATTACH_CLEAR_ENV
=
_lxc
.
LXC_ATTACH_CLEAR_ENV
LXC_ATTACH_CLEAR_ENV
=
_lxc
.
LXC_ATTACH_CLEAR_ENV
LXC_ATTACH_MOVE_TO_CGROUP
=
_lxc
.
LXC_ATTACH_MOVE_TO_CGROUP
LXC_ATTACH_KEEP_ENV
=
_lxc
.
LXC_ATTACH_KEEP_ENV
# attach: attach options
LXC_ATTACH_DEFAULT
=
_lxc
.
LXC_ATTACH_DEFAULT
LXC_ATTACH_DROP_CAPABILITIES
=
_lxc
.
LXC_ATTACH_DROP_CAPABILITIES
LXC_ATTACH_DROP_CAPABILITIES
=
_lxc
.
LXC_ATTACH_DROP_CAPABILITIES
LXC_ATTACH_SET_PERSONALITY
=
_lxc
.
LXC_ATTACH_SET_PERSONALITY
LXC_ATTACH_LSM_NOW
=
_lxc
.
LXC_ATTACH_LSM_NOW
LXC_ATTACH_LSM_EXEC
=
_lxc
.
LXC_ATTACH_LSM_EXEC
LXC_ATTACH_LSM_EXEC
=
_lxc
.
LXC_ATTACH_LSM_EXEC
LXC_ATTACH_LSM_NOW
=
_lxc
.
LXC_ATTACH_LSM_NOW
LXC_ATTACH_MOVE_TO_CGROUP
=
_lxc
.
LXC_ATTACH_MOVE_TO_CGROUP
LXC_ATTACH_REMOUNT_PROC_SYS
=
_lxc
.
LXC_ATTACH_REMOUNT_PROC_SYS
LXC_ATTACH_REMOUNT_PROC_SYS
=
_lxc
.
LXC_ATTACH_REMOUNT_PROC_SYS
LXC_ATTACH_DEFAULT
=
_lxc
.
LXC_ATTACH_DEFAULT
LXC_ATTACH_SET_PERSONALITY
=
_lxc
.
LXC_ATTACH_SET_PERSONALITY
CLONE_NEWUTS
=
_lxc
.
CLONE_NEWUTS
CLONE_NEWIPC
=
_lxc
.
CLONE_NEWIPC
# clone: clone flags
CLONE_NEWUSER
=
_lxc
.
CLONE_NEWUSER
LXC_CLONE_COPYHOOKS
=
_lxc
.
LXC_CLONE_COPYHOOKS
CLONE_NEWPID
=
_lxc
.
CLONE_NEWPID
LXC_CLONE_KEEPMACADDR
=
_lxc
.
LXC_CLONE_KEEPMACADDR
CLONE_NEWNET
=
_lxc
.
CLONE_NEWNET
LXC_CLONE_KEEPNAME
=
_lxc
.
LXC_CLONE_KEEPNAME
CLONE_NEWNS
=
_lxc
.
CLONE_NEWNS
LXC_CLONE_SNAPSHOT
=
_lxc
.
LXC_CLONE_SNAPSHOT
# create: create flags
LXC_CREATE_QUIET
=
_lxc
.
LXC_CREATE_QUIET
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