Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usbguard missing directory preventing service to start up. resulting in any usb to be recognized automatically. #31768

Closed
wibed opened this issue Jul 2, 2021 · 1 comment · Fixed by #31879

Comments

@wibed
Copy link

wibed commented Jul 2, 2021

System

  • xuname:
    Void 5.12.10_1 x86_64-musl AuthenticAMD notuptodate rrFFF

  • package:
    pkgver: usbguard-1.0.0_3

Expected behavior

after install, started service running seamlessly

Actual behavior

fails silently in the background

Steps to reproduce the behavior

xbps-install -Syu usbguard
ln -s /etc/sv/usbguard /var/service/
sv restart usbguard

the error message indicates a missing directory in /etc/usbguard
/etc/usbguard/IPCAccessControl.d

the installation candidate does not setup this directory by itself.

WORKAROUND

just create the directory as root and usbguard will start as expected

@amak79
Copy link
Contributor

amak79 commented Jul 7, 2021

This is caused by xbps-src removing empty directories during post-install.

=> usbguard-1.0.0_3: running post-install hook: 03-remove-empty-dirs ...
=> WARNING: usbguard-1.0.0_3: removed empty dir: /var/log/usbguard
=> WARNING: usbguard-1.0.0_3: removed empty dir: /var/log
=> WARNING: usbguard-1.0.0_3: removed empty dir: /var
=> WARNING: usbguard-1.0.0_3: removed empty dir: /etc/usbguard/IPCAccessControl.d

I fixed this by adding the directory to make_dirs. The template already does this for /var/log/usbguard. I can make a pull request, but I would like to get a comment from a dev first.

ericonr pushed a commit to amak79/void-packages that referenced this issue Jul 17, 2021
The /etc/usbguard/IPCAccessControl.d directory is needed by
usbguard-daemon and it will fail to start without it. The build system
creates it, but it's empty, so it's cleaned up during package creation.

Fixes: void-linux#31768.
ericonr pushed a commit to amak79/void-packages that referenced this issue Jul 17, 2021
The /etc/usbguard/IPCAccessControl.d directory is needed by
usbguard-daemon and it will fail to start without it. The build system
creates it, but it's empty, so it's cleaned up during package creation.

Fixes: void-linux#31768.
ericonr pushed a commit that referenced this issue Jul 17, 2021
The /etc/usbguard/IPCAccessControl.d directory is needed by
usbguard-daemon and it will fail to start without it. The build system
creates it, but it's empty, so it's cleaned up during package creation.

Fixes: #31768.
atweiden added a commit to atweiden/voidpkgs that referenced this issue Jul 18, 2021
The /etc/usbguard/IPCAccessControl.d directory is needed by
usbguard-daemon and it will fail to start without it. The build system
creates it, but it's empty, so it's cleaned up during package creation.

Fixes: void-linux/void-packages#31768.

void-linux/void-packages@ff1eb4f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants