GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Rui Seabra (ruiseabra@mastodon.social)'s status on Sunday, 26-Mar-2023 20:29:41 JST Rui Seabra Rui Seabra

    Turns out locking your screen when you unplug a yubikey (should be similar with other devices) is harder than expected by looking at some examples found online. Maybe they have minimal use for the key and don't do multiple advanced things at the same time.

    I can tell right out of hand that what's on #Fedora Magazine doesn't work properly: https://fedoramagazine.org/how-to-use-a-yubikey-with-fedora-linux/

    In conversation Sunday, 26-Mar-2023 20:29:41 JST from mastodon.social permalink

    Attachments

    1. Domain not in remote thumbnail source whitelist: fedoramagazine.org
      How to use a YubiKey with Fedora Linux - Fedora Magazine
      from Peter Veres
      Discover how to configure Yubico's YubiKey on Fedora Workstation for typical security use-cases.
    • Embed this notice
      Rui Seabra (ruiseabra@mastodon.social)'s status on Sunday, 26-Mar-2023 20:32:39 JST Rui Seabra Rui Seabra
      in reply to

      These two forms work better because they are not run SEVERAL TIMES (which you can see with udevadm monitor --property --udev )

      ACTION=="remove", ENV{SUBSYSTEM}=="hidraw", ENV{ID_FIDO_TOKEN}=="1", RUN+="..."

      ACTION=="add", ENV{ID_FIDO_TOKEN}=="1", RUN+="..."

      In conversation Sunday, 26-Mar-2023 20:32:39 JST permalink
    • Embed this notice
      Rui Seabra (ruiseabra@mastodon.social)'s status on Sunday, 26-Mar-2023 20:36:50 JST Rui Seabra Rui Seabra
      in reply to

      However I sometimes need to unplug and plug the device again in order to force a mode transition and I don't want an immediate lock. So it turns out now I get other complications:

      1) udev RUN action need to be *quick* it can't even wait 5 seconds
      2) so my script forked to another one in background that will do the timeout loop
      3) except even that script is killed before the loop ends so the screen is not locked

      In conversation Sunday, 26-Mar-2023 20:36:50 JST permalink
    • Embed this notice
      Rui Seabra (ruiseabra@mastodon.social)'s status on Sunday, 26-Mar-2023 20:39:58 JST Rui Seabra Rui Seabra
      in reply to

      I tried changing the script calls to systemd oneshot services, but it appears that somehow udev is still tracking all the forks and killing the process mid-loop.

      So now I'm at a loss.

      Any ideas?

      In conversation Sunday, 26-Mar-2023 20:39:58 JST permalink

      Attachments


    • Embed this notice
      Angel of My Dreams :fsfe: (system32@mastodon.social)'s status on Sunday, 26-Mar-2023 20:45:30 JST Angel of My Dreams :fsfe: Angel of My Dreams :fsfe:
      in reply to

      @RuiSeabra
      i wish i could help.

      In conversation Sunday, 26-Mar-2023 20:45:30 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.