unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#34630: slock: unable to disable OOM killer. Make sure to suid or sgid slock.
@ 2019-02-23  8:10 Matthew Brooks
  2019-02-24  5:28 ` Carlo Zancanaro
  0 siblings, 1 reply; 5+ messages in thread
From: Matthew Brooks @ 2019-02-23  8:10 UTC (permalink / raw)
  To: 34630

When using the guix installed slock, it doesn't lock the screen, and errors with the following error:
"slock: unable to disable OOM killer. Make sure to suid or sgid slock."

When downloading the source and doing the standard "make && sudo make install", slock does not error, and will properly lock the screen.

The version of slock installed is:
"slock   1.4     out     /gnu/store/0v8kkhpk4qvmyab0wmg9wa7w8xynig01-slock-1.4"

The version of Guix is:
"guix (GNU Guix) 2a1ec7bcf4d754fb8a3cb7037e74fbf9cae88bf5"
which should be from today.


Just in case anyone goes and tests this that is unfamiliar with slock, there is no UI to it, to unlock it just type in your password and hit enter.
A red screen means incorrect password, you've backspaced all the way, or you've stopped typing.
Blue is you're currently typing.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#34630: slock: unable to disable OOM killer. Make sure to suid or sgid slock.
  2019-02-23  8:10 bug#34630: slock: unable to disable OOM killer. Make sure to suid or sgid slock Matthew Brooks
@ 2019-02-24  5:28 ` Carlo Zancanaro
  2019-02-24 21:53   ` Leo Famulari
  0 siblings, 1 reply; 5+ messages in thread
From: Carlo Zancanaro @ 2019-02-24  5:28 UTC (permalink / raw)
  To: Matthew Brooks; +Cc: 34630

Hey Matthew,

I have successfully used slock on a Guix system, but I haven't 
tried using the Guix slock on a foreign distribution. I would 
expect it to not work, and the error message gives us an idea why:

> When using the guix installed slock, it doesn't lock the screen, 
> and errors with the following error: "slock: unable to disable 
> OOM killer. Make sure to suid or sgid slock."

None of the programs in the Guix store (ie. /gnu/store) will have 
setuid or setgid set. On a Guix system you can install a slock 
screen-locker-service, which will provide a setuid binary for 
slock (via the setuid-program-service). This is done automatically 
as part of the default %desktop-services. I don't know of a way to 
do this on a foreign distribution.

Carlo

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#34630: slock: unable to disable OOM killer. Make sure to suid or sgid slock.
  2019-02-24  5:28 ` Carlo Zancanaro
@ 2019-02-24 21:53   ` Leo Famulari
  2019-02-25  6:20     ` Matthew Brooks
  0 siblings, 1 reply; 5+ messages in thread
From: Leo Famulari @ 2019-02-24 21:53 UTC (permalink / raw)
  To: Carlo Zancanaro; +Cc: 34630-done

[-- Attachment #1: Type: text/plain, Size: 724 bytes --]

On Sun, Feb 24, 2019 at 04:28:35PM +1100, Carlo Zancanaro wrote:
> None of the programs in the Guix store (ie. /gnu/store) will have setuid or
> setgid set. On a Guix system you can install a slock screen-locker-service,
> which will provide a setuid binary for slock (via the
> setuid-program-service). This is done automatically as part of the default
> %desktop-services. I don't know of a way to do this on a foreign
> distribution.

On a foreign distro I recommend using the host distro's package manager
for things like this. Guix doesn't support setuid programs on other
distros. Please see the manual section Setuid Programs for more info:

https://www.gnu.org/software/guix/manual/en/html_node/Setuid-Programs.html

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#34630: slock: unable to disable OOM killer. Make sure to suid or sgid slock.
  2019-02-24 21:53   ` Leo Famulari
@ 2019-02-25  6:20     ` Matthew Brooks
  2019-02-25 15:46       ` Leo Famulari
  0 siblings, 1 reply; 5+ messages in thread
From: Matthew Brooks @ 2019-02-25  6:20 UTC (permalink / raw)
  To: 34630-done

Thanks for the info, and sorry for the trouble. This isn't actually a foreign distro, my OS declaration just doesn't use %desktop-services, so the automatic setuid handling wasn't there. Thanks to your info I was able to manually add slock to setuid-programs and it's working fine from /run/setuid-programs now.

Sorry again about the bother, since this wasn't actually a guix problem, and thanks for the help!

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#34630: slock: unable to disable OOM killer. Make sure to suid or sgid slock.
  2019-02-25  6:20     ` Matthew Brooks
@ 2019-02-25 15:46       ` Leo Famulari
  0 siblings, 0 replies; 5+ messages in thread
From: Leo Famulari @ 2019-02-25 15:46 UTC (permalink / raw)
  To: Matthew Brooks; +Cc: 34630-done

[-- Attachment #1: Type: text/plain, Size: 498 bytes --]

On Mon, Feb 25, 2019 at 12:20:40AM -0600, Matthew Brooks wrote:
> Thanks for the info, and sorry for the trouble. This isn't actually a foreign distro, my OS declaration just doesn't use %desktop-services, so the automatic setuid handling wasn't there. Thanks to your info I was able to manually add slock to setuid-programs and it's working fine from /run/setuid-programs now.
> 
> Sorry again about the bother, since this wasn't actually a guix problem, and thanks for the help!

Great! :)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-02-25 15:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-23  8:10 bug#34630: slock: unable to disable OOM killer. Make sure to suid or sgid slock Matthew Brooks
2019-02-24  5:28 ` Carlo Zancanaro
2019-02-24 21:53   ` Leo Famulari
2019-02-25  6:20     ` Matthew Brooks
2019-02-25 15:46       ` Leo Famulari

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).