emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#62251: closed ([PATCH] gnu: Add physlock.)


From: GNU bug Tracking System
Subject: bug#62251: closed ([PATCH] gnu: Add physlock.)
Date: Sun, 26 Mar 2023 06:06:02 +0000

Your message dated Sun, 26 Mar 2023 08:05:42 +0200
with message-id <9d63e0093af39b81b68375d3df380608889900e3.camel@gmail.com>
and subject line Re: [PATCH v2] gnu: Add physlock.
has caused the debbugs.gnu.org bug report #62251,
regarding [PATCH] gnu: Add physlock.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
62251: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62251
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: Add physlock. Date: Sat, 18 Mar 2023 09:20:48 +0100
* gnu/packages/xdisorg.scm (physlock): New variable.
---
 gnu/packages/xdisorg.scm | 45 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index 308fa131d6..6c6b6b2c90 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -2314,6 +2314,51 @@ (define-public xss-lock
       (home-page "https://bitbucket.org/raymonad/xss-lock";)
       (license license:expat))))
 
+(define-public physlock
+  (package
+    (name "physlock")
+    (version "13")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/xyb3rt/physlock";)
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1mz4xxjip5ldiw9jgfq9zvqb6w10bcjfx6939w1appqg8f521a7s"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:tests? #f                      ;no tests
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure)
+
+         (add-after 'unpack 'fix-makefile
+           (lambda _
+             (substitute* "Makefile" (("-m 4755 -o root -g root") "")))))
+
+       #:make-flags
+       (list "HAVE_SYSTEMD=0" "HAVE_ELOGIND=1"
+             (string-append "CC=" ,(cc-for-target))
+             (string-append "PREFIX=" %output))))
+    (native-inputs (list linux-pam elogind))
+    (synopsis
+     "Control physical access to a linux computer by locking all of its
+virtual terminals.")
+    (description
+     "physlock only allows the user of the active session (the user logged in
+on the foreground virtual terminal) and the root user to unlock the computer
+and uses PAM for authentication.
+
+physlock uses 3 mechanisms to detect the user of the active session:
+- Querying elogind(8)
+- Searching the utmp file for an entry whose ut_line field is the base name of
+the active tty device file
+- Using the owner of the active tty device file typically set by login(1)")
+    (home-page "https://github.com/xyb3rt/physlock";)
+    (license license:gpl2)))
+
 (define-public python-pyperclip
   (package
     (name "python-pyperclip")
-- 
2.39.2




--- End Message ---
--- Begin Message --- Subject: Re: [PATCH v2] gnu: Add physlock. Date: Sun, 26 Mar 2023 08:05:42 +0200 User-agent: Evolution 3.46.0
Am Samstag, dem 18.03.2023 um 15:28 +0100 schrieb Sergey Trofimov:
> * gnu/packages/xdisorg.scm (physlock): New variable.
Pushed.

Thanks


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]