Giter Site home page Giter Site logo

SSH-Key validation about proxmox-arm64 HOT 2 CLOSED

jiangcuo avatar jiangcuo commented on July 22, 2024
SSH-Key validation

from proxmox-arm64.

Comments (2)

jiangcuo avatar jiangcuo commented on July 22, 2024 1

Hi, thanks for your help. I tested both arm64 and amd64 platforms, and this patch works fine.I have committed the patch to this project.
I think you can commit patch to proxmox too.

from proxmox-arm64.

peio42 avatar peio42 commented on July 22, 2024

As a sidenote, it looks like O_TMPFILE isn't (correctly ?) defined in perl Fnctl library, and must be the reason it was hardcoded. It's value is composed of the flag itself (0x00400000) and O_DIRECTORY which is the flag that differs on arm64 (0x10000 on amd64 while 0x4000 on arm64).
So maybe an other solution could be to declare

--- /usr/share/perl5/PVE/Tools.pm.orig	2023-04-14 11:29:28.388000000 +0200
+++ /usr/share/perl5/PVE/Tools.pm	2023-04-14 15:26:47.736000000 +0200
@@ -100,7 +100,7 @@

 use constant {O_PATH    => 0x00200000,
               O_CLOEXEC => 0x00080000,
-              O_TMPFILE => 0x00410000}; # This includes O_DIRECTORY
+              O_TMPFILE => 0x00400000 | O_DIRECTORY};

 use constant {AT_EMPTY_PATH => 0x1000,
               AT_FDCWD => -100};

which would work on most architectures.

from proxmox-arm64.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.