Github messages for voidlinux
 help / color / mirror / Atom feed
From: abhocetabhac <abhocetabhac@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [ISSUE] Service socklog-unix locks users out of the system if /var/log/socklog does not exist
Date: Mon, 20 Jan 2025 03:28:00 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-54043@inbox.vuxu.org> (raw)

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

New issue by abhocetabhac on void-packages repository

https://github.com/void-linux/void-packages/issues/54043

Description:
### Is this a new report?

Yes

### System Info

Void 6.12.10_1 x86_64-musl 

### Package(s) Affected

socklog-void-20200115_2

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

_No response_

### Expected behaviour

If the directories /var/log/socklog and /var/log/socklog/* do not exist, they should be automatically recreated by the shell script /etc/sv/socklog-unix/run before starting the socklog executable.

### Actual behaviour

If the directories /var/log/socklog and /var/log/socklog/* do not exist when the socklog-unix service starts, it leads to unexpected behavior where all login attempts, including sudo and su, stall indefinitely. This effectively locks users out of the system, rendering it inaccessible for any user interaction. The socklog-unix service seems to depend on the existence of its log directories for normal operation. Without them, processes like login, which need to log activities, hang waiting for the log to be written. This isn't just a minor inconvenience but a critical system access issue, as no user can log in to fix the problem without rebooting into single-user mode or using a live USB to manually disable the service.

Additionally, 'xbps-reconfigure -f socklog-void' fails to recreate the subdirectories of /var/log/socklog. The package must be removed and reinstalled. The socklog-conf executable also seems to fail. 

This issue prohibits the use of socklog on systems that, for example, mount a tmpfs on /var/log, like home PCs.

### Steps to reproduce

1. sudo rm -r /var/log/socklog
2. sudo ln -sf /etc/sv/socklog-unix $MNT/etc/runit/runsvdir/default/socklog-unix
3. su

             reply	other threads:[~2025-01-20  2:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-20  2:28 abhocetabhac [this message]
2025-01-22 16:50 ` dkwo
2025-05-01 15:53 ` vincele
2025-05-04 11:50 ` [ISSUE] [CLOSED] " ahesford
2025-05-04 11:50 ` ahesford
2025-05-04 13:08 ` abhocetabhac
2025-05-04 17:04 ` ahesford

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-54043@inbox.vuxu.org \
    --to=abhocetabhac@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).