[pve-devel] [PATCH common 2/5] tools: add AT_FDCWD and extend exports
Wolfgang Bumiller
w.bumiller at proxmox.com
Fri Nov 8 11:06:11 CET 2019
Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
---
src/PVE/Tools.pm | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/src/PVE/Tools.pm b/src/PVE/Tools.pm
index 076c18a..801977d 100644
--- a/src/PVE/Tools.pm
+++ b/src/PVE/Tools.pm
@@ -50,6 +50,14 @@ file_copy
get_host_arch
O_PATH
O_TMPFILE
+AT_EMPTY_PATH
+AT_FDCWD
+CLONE_NEWNS
+CLONE_NEWUTS
+CLONE_NEWIPC
+CLONE_NEWUSER
+CLONE_NEWPID
+CLONE_NEWNET
);
my $pvelogdir = "/var/log/pve";
@@ -86,7 +94,8 @@ use constant {CLONE_NEWNS => 0x00020000,
use constant {O_PATH => 0x00200000,
O_TMPFILE => 0x00410000}; # This includes O_DIRECTORY
-use constant {AT_EMPTY_PATH => 0x1000};
+use constant {AT_EMPTY_PATH => 0x1000,
+ AT_FDCWD => -100};
sub run_with_timeout {
my ($timeout, $code, @param) = @_;
--
2.20.1
More information about the pve-devel
mailing list