diff options
author | Helmut Grohne <helmut@subdivi.de> | 2025-06-03 11:04:17 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2025-06-03 11:04:17 +0200 |
commit | bb6465ac7f68823e63fe53b135e5493906043af5 (patch) | |
tree | b3e63d045caf70ccb6029cd1d5161cea0521ed9c /linuxnamespaces/syscalls.py | |
parent | df414c672b240d114cca67565a1221813420cd46 (diff) | |
download | python-linuxnamespaces-bb6465ac7f68823e63fe53b135e5493906043af5.tar.gz |
Diffstat (limited to 'linuxnamespaces/syscalls.py')
-rw-r--r-- | linuxnamespaces/syscalls.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/linuxnamespaces/syscalls.py b/linuxnamespaces/syscalls.py index b55be37..9c18af5 100644 --- a/linuxnamespaces/syscalls.py +++ b/linuxnamespaces/syscalls.py @@ -366,15 +366,15 @@ class OpenTreeFlags(enum.IntFlag): """This value may be supplied to open_tree(2) as flags.""" NONE = 0 - OPEN_TREE_CLONE = 0x1 - OPEN_TREE_CLOEXEC = os.O_CLOEXEC + CLONE = 0x1 + CLOEXEC = os.O_CLOEXEC AT_SYMLINK_NOFOLLOW = 0x100 AT_NO_AUTOMOUNT = 0x800 AT_EMPTY_PATH = 0x1000 AT_RECURSIVE = 0x8000 ALL_FLAGS = ( - OPEN_TREE_CLONE - | OPEN_TREE_CLOEXEC + CLONE + | CLOEXEC | AT_SYMLINK_NOFOLLOW | AT_NO_AUTOMOUNT | AT_EMPTY_PATH @@ -690,7 +690,7 @@ def open_tree( raise ValueError("invalid flags for open_tree") if ( flags & OpenTreeFlags.AT_RECURSIVE - and not flags & OpenTreeFlags.OPEN_TREE_CLONE + and not flags & OpenTreeFlags.CLONE ): raise ValueError("invalid flags for open_tree") if source.flags & AtFlags.AT_SYMLINK_NOFOLLOW: |