Giter Site home page Giter Site logo

Adhere to XDG spec about pam_e4crypt HOT 2 CLOSED

neithernut avatar neithernut commented on May 23, 2024
Adhere to XDG spec

from pam_e4crypt.

Comments (2)

neithernut avatar neithernut commented on May 23, 2024

Yeah, I regularly forget about xdg.
Well, we should still have $HOME as a fallback. XDG_CONFIG_HOME is not set on all systems. But that's what the spec says anyway.

from pam_e4crypt.

neithernut avatar neithernut commented on May 23, 2024

Turns out it isn't that simple. we (usually) are part of the process setting up the session. At the point the module is invoked, the user environment may not be setup. That's one the reasons why we don't query the HOME variable but look up the home directory through libpam, by the way.

In my use case, for example, the module is invoked very early in the login process. Sourcing the bash profile and setting environment variables like XDG_CONFIG_HOME, on the other hand, is pretty much the last thing in that process.

The even bigger issue is that the salts are loaded during authentication and not during session-setup. We do this because the password entered by the user is not available during session setup by default. (I decided to rather have the encryption keys shipped from one phase to the other than a user password in clear text.)

So while you brought up a very good point, this is pretty much a "won't fix". Sorry for that.

from pam_e4crypt.

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.